Skip to content

Commit

Permalink
workflow: add logging to sc2rf_recombinants for issue #34
Browse files Browse the repository at this point in the history
  • Loading branch information
Katherine Eaton committed Jun 21, 2022
1 parent 6d28577 commit d3604a9
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions workflow/Snakefile
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,6 @@ def _inputs_sc2rf(build):
else:
inputs["alignment"] = "results/{build}/nextclade/recombinants.fasta".format(build=build)


return inputs


Expand Down Expand Up @@ -512,12 +511,13 @@ rule sc2rf_recombinants:
--outdir {params.outdir} \
--aligned {input.alignment} \
--issues {input.issues} \
--log {log} \
{params.motifs} \
2> {log};
>> {log} 2>&1;
# Cleanup
mv -f {params.outdir}/recombinants.tsv {params.outdir}/stats.tsv
rm -f {params.outdir}/recombinants.exclude.tsv;
mv -f {params.outdir}/recombinants.tsv {params.outdir}/stats.tsv >> {log} 2>&1;
rm -f {params.outdir}/recombinants.exclude.tsv >> {log} 2>&1;
"""

# -----------------------------------------------------------------------------
Expand Down Expand Up @@ -625,7 +625,7 @@ rule faToVcf:
shell:
"""
# Add the reference genome
cat {input.reference} {input.alignment} > {output.alignment};
cat {input.reference} {input.alignment} > {output.alignment} 2> {log};
# Construct VCF
faToVcf -ambiguousToN -maskSites={input.prob_sites} {output.alignment} {params.prefix} >> {log} 2>&1;
Expand Down

0 comments on commit d3604a9

Please sign in to comment.