Skip to content

Commit

Permalink
enforce haploid calling in bcftools
Browse files Browse the repository at this point in the history
  • Loading branch information
WhalleyT committed Dec 20, 2024
1 parent 3859c02 commit 0efd9eb
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions modules/clockworkModules.nf
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ process getRefFromJSON {
script:
"""
ref_string=\$(jq -r '.top_hit.file_paths.ref_fa' ${species_json})
echo "\$ref_string"
#echo "/home/ubuntu/magma/lodestone/resources/tuberculosis.fasta"
echo \${ref_string}
"""

stub:
Expand Down Expand Up @@ -129,7 +130,7 @@ process callVarsMpileup {
bcftools_vcf = "${sample_name}.bcftools.vcf"

"""
bcftools mpileup -Ou -a 'INFO/AD' -f ${ref} ${bam} | bcftools call --threads ${task.cpus} -vm -O v -o ${bcftools_vcf}
bcftools mpileup -Ou -a 'INFO/AD' -f ${ref} ${bam} | bcftools call --threads ${task.cpus} -vm -O v -o ${bcftools_vcf} --ploidy 1
"""

stub:
Expand Down

0 comments on commit 0efd9eb

Please sign in to comment.