Skip to content

Commit

Permalink
fix genome_percent_coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
sage-wright committed Nov 12, 2024
1 parent e4cc386 commit fa19395
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tasks/species_typing/mycobacterium/task_tbp_parser.wdl
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ task tbp_parser {
echo 0.0 > AVG_DEPTH

# get genome percent coverage for the entire reference genome length over min_depth
genome=$(samtools depth -J ~{tbprofiler_bam} | awk -F "\t" '{if ($3 >= ~{min_depth}) print;}' | wc -l )
genome=$(samtools depth -J ~{tbprofiler_bam} | awk -F "\t" -v min_depth=~{min_depth} '{if ($3 >= min_depth) print;}' | wc -l )
python3 -c "print ( ($genome / 4411532 ) * 100 )" | tee GENOME_PC

# get genome average depth
Expand Down

0 comments on commit fa19395

Please sign in to comment.