Skip to content

Commit

Permalink
Sort after updating node names
Browse files Browse the repository at this point in the history
  • Loading branch information
skoren committed Sep 16, 2024
1 parent ff591ba commit 4ac7c64
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Snakefiles/7-combineConsensus.sm
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ if [ "{params.haveBAM}" = "True" ]; then
echo ""
mem_per_core=\`expr {resources.mem_gb} \/ {threads} | awk '{{if (\$1 < 1) print "1G"; else print \$1"G"}}'\`

{params.SAMTOOLS} merge -f -O bam --reference combined.fasta -@{threads} -u - {params.packbam} | {params.SAMTOOLS} sort -m \$mem_per_core -@{threads} | {PYTHON} {VERKKO}/scripts/bam_rename.py ../{input.scfmap} ../{input.tigmap} {params.packcns} > ../{output.bam} 2> sortBAM.err
{params.SAMTOOLS} merge -f -O bam --reference combined.fasta -@{threads} -u - {params.packbam} | {PYTHON} {VERKKO}/scripts/bam_rename.py ../{input.scfmap} ../{input.tigmap} {params.packcns} | {params.SAMTOOLS} sort -m \$mem_per_core -@{threads} -o ../{output.bam}
else
touch ../{output.bam}
fi
Expand Down

0 comments on commit 4ac7c64

Please sign in to comment.