Skip to content

Commit

Permalink
fix: add process to container
Browse files Browse the repository at this point in the history
  • Loading branch information
dnousome committed Jan 2, 2025
1 parent 55d5915 commit 3064fb6
Showing 1 changed file with 37 additions and 34 deletions.
71 changes: 37 additions & 34 deletions modules/local/deepvariant.nf
Original file line number Diff line number Diff line change
Expand Up @@ -129,41 +129,8 @@ process bcfconcat {
}


//Combined DeepVariant
process deepvariant_combined {
module = ['deepvariant/1.6.0']

input:
tuple val(samplename), path(bam), path(bai)

output:
tuple val(samplename), path("${samplename}.gvcf.gz"), path("${samplename}.gvcf.gz.tbi"),
path("${samplename}.vcf.gz"), path("${samplename}.vcf.gz.tbi")


script:
"""
run_deepvariant \
--model_type=WGS \
--ref=$GENOMEREF \
--reads=${bam} \
--output_gvcf=${samplename}.gvcf.gz \
--output_vcf=${samplename}.vcf.gz \
--num_shards=16
"""


stub:
"""
touch ${samplename}.vcf.gz ${samplename}.vcf.gz.tbi
touch ${samplename}.gvcf.gz ${samplename}.gvcf.gz.tbi
"""


}

process glnexus {
module = ['glnexus/1.4.1','bcftools/1.19']
container = "${params.containers.logan}"

input:
path(gvcfs)
Expand Down Expand Up @@ -199,3 +166,39 @@ process glnexus {
touch germline.norm.vcf.gz.tbi
"""
}




//Combined DeepVariant
process deepvariant_combined {
module = ['deepvariant/1.6.0']

input:
tuple val(samplename), path(bam), path(bai)

output:
tuple val(samplename), path("${samplename}.gvcf.gz"), path("${samplename}.gvcf.gz.tbi"),
path("${samplename}.vcf.gz"), path("${samplename}.vcf.gz.tbi")


script:
"""
run_deepvariant \
--model_type=WGS \
--ref=$GENOMEREF \
--reads=${bam} \
--output_gvcf=${samplename}.gvcf.gz \
--output_vcf=${samplename}.vcf.gz \
--num_shards=16
"""


stub:
"""
touch ${samplename}.vcf.gz ${samplename}.vcf.gz.tbi
touch ${samplename}.gvcf.gz ${samplename}.gvcf.gz.tbi
"""


}

0 comments on commit 3064fb6

Please sign in to comment.