Skip to content

Commit

Permalink
fixed mothur gotcha where R1 must come before R2 in make.contig file.…
Browse files Browse the repository at this point in the history
…file
  • Loading branch information
didillysquat committed Mar 7, 2019
1 parent ddfc3ba commit aa2d9db
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion data_loading.py
Original file line number Diff line number Diff line change
Expand Up @@ -569,9 +569,16 @@ def make_dot_stability_file_inferred(self):
for sample_name in self.list_of_samples_names:
temp_list = []
temp_list.append(sample_name.replace('-', '[dS]'))
fwd_file_path = None
rev_file_path = None
for file_path in return_list_of_file_paths_in_directory(self.temp_working_directory):
if sample_name in ntpath.basename(file_path):
temp_list.append(file_path)
if 'R1' in file_path:
fwd_file_path = file_path
if 'R2' in file_path:
rev_file_path = file_path
temp_list.append(fwd_file_path)
temp_list.append(rev_file_path)
assert (len(temp_list) == 3)
sample_fastq_pairs.append('\t'.join(temp_list))
write_list_to_destination(r'{0}/stability.files'.format(self.temp_working_directory), sample_fastq_pairs)
Expand Down

0 comments on commit aa2d9db

Please sign in to comment.