Skip to content

Commit

Permalink
use python3 for float division
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinlibuit committed Mar 30, 2021
1 parent ae454c6 commit 05f705d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tasks/task_consensus_call.wdl
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ task consensus {
echo $num_ACTG | tee NUM_ACTG

# calculate percent coverage (Wu Han-1 genome length: 29903bp)
python -c "print ( round( ($num_ACTG / 29903 ) * 100, 2 ) )" | tee PERCENT_REF_COVERAGE
python3 -c "print ( round( ($num_ACTG / 29903 ) * 100, 2 ) )" | tee PERCENT_REF_COVERAGE

num_degenerate=$( grep -v ">" ${samplename}.consensus.fa | grep -o -E "B|D|E|F|H|I|J|K|L|M|O|P|Q|R|S|U|V|W|X|Y|Z" | wc -l )
if [ -z "$num_degenerate" ] ; then num_degenerate="0" ; fi
Expand Down

0 comments on commit 05f705d

Please sign in to comment.