Skip to content

Commit

Permalink
only provide contaminant and mashmap location if we have something to…
Browse files Browse the repository at this point in the history
… screen
  • Loading branch information
skoren committed Nov 21, 2023
1 parent f7ddfb1 commit 7aa9f7f
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/Snakefiles/7-combineConsensus.sm
Original file line number Diff line number Diff line change
Expand Up @@ -90,16 +90,19 @@ echo ""
echo "--------------------"
echo "Filtering short/disconnected and contaminants."
echo ""
screen=""
if [ "x{params.screens}" != "x" ]; then
screen="--contaminant {params.screens} --mashmap {params.MASHMAP}"
fi

{PERL} {VERKKO}/scripts/screen-assembly.pl \\\\
--assembly combined.fasta \\\\
--graph ../{input.graph} \\\\
--graphmap ../{input.scfmap} \\\\
--hifi-coverage ../{input.hificov} \\\\
--minlength {params.short_len} \\\\
--contaminant {params.screens} \\\\
--output assembly \\\\
--mashmap {params.MASHMAP} \\\\
\$screen \\\\
--threads {threads} \\\\
> ./screen-assembly.out 2> ./screen-assembly.err

Expand Down

0 comments on commit 7aa9f7f

Please sign in to comment.