Skip to content

scaffolds sample_name #9

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jan 31, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion qp_spades/qp_spades.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ def spades(qclient, job_id, parameters, out_dir):
outfiles = []
for run_prefix, sname in prep_info.items():
scaffold = join(out_dir, run_prefix, 'scaffolds.fasta')
new_scaffold = join(out_dir, run_prefix, f'{run_prefix}.fasta')
new_scaffold = join(out_dir, run_prefix, f'{sname}.fasta')
if exists(scaffold):
run(['mv', scaffold, new_scaffold], stdout=PIPE)
else:
Expand Down
4 changes: 2 additions & 2 deletions qp_spades/tests/test_spades.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,9 +176,9 @@ def test_spades(self):
self.assertTrue(success)
self.assertEqual(1, len(ainfo))
self.assertEqual(ainfo[0].files,
[(f'{out_dir}/S22205_S104/S22205_S104.fasta',
[(f'{out_dir}/S22205_S104/1.SKB8.640193.fasta',
'preprocessed_fasta'),
(f'{out_dir}/S22282_S102/S22282_S102.fasta',
(f'{out_dir}/S22282_S102/1.SKD8.640184.fasta',
'preprocessed_fasta')])


Expand Down