Skip to content

Commit

Permalink
quotes
Browse files Browse the repository at this point in the history
  • Loading branch information
tdayris committed Dec 2, 2024
1 parent fa5f2fb commit c488618
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions bio/ngscheckmate/makesnvpattern/wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,18 +25,18 @@

# Ensure user can name each file according to their need
output_mapping = {
"bowtie": f"'{tempdir}/snake_out.bowtieout'",
"fasta": f"'{tempdir}/snake_out.fasta'",
"ntm": f"'{tempdir}/snake_out.ntm'",
"pattern": f"'{tempdir}/snake_out.pt'",
"pattern_text": f"'{tempdir}/snake_out.pt-txt'",
"pattern_sorted": f"'{tempdir}/snake_out.pt-txt.sorted'",
"text": f"'{tempdir}/snake_out.txt'",
"uniq": f"'{tempdir}/snake_out.uniq.txt'",
"txt_sorted": f"'{tempdir}/snake_out.uniq.txt.sorted'",
"bowtie": f"{tempdir}/snake_out.bowtieout",
"fasta": f"{tempdir}/snake_out.fasta",
"ntm": f"{tempdir}/snake_out.ntm",
"pattern": f"{tempdir}/snake_out.pt",
"pattern_text": f"{tempdir}/snake_out.pt-txt",
"pattern_sorted": f"{tempdir}/snake_out.pt-txt.sorted",
"text": f"{tempdir}/snake_out.txt",
"uniq": f"{tempdir}/snake_out.uniq.txt",
"txt_sorted": f"{tempdir}/snake_out.uniq.txt.sorted",
}

for output_key, temp_file in output_mapping.items():
output_path = snakemake.output.get(output_key)
if output_path:
shell(f"mv --verbose {temp_file:q} {output_path:q} {log}")
shell("mv --verbose {temp_file:q} {output_path:q} {log}")

0 comments on commit c488618

Please sign in to comment.