Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mulled biocontainer for vardict-java and htslib #5920

Merged
merged 9 commits into from
Jul 5, 2024
Merged
Show file tree
Hide file tree
Changes from 6 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions modules/nf-core/vardictjava/environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@ channels:
- bioconda
- defaults
dependencies:
- bioconda::htslib=1.20
- bioconda::vardict-java=1.8.3
12 changes: 7 additions & 5 deletions modules/nf-core/vardictjava/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,16 @@ process VARDICTJAVA {

conda "${moduleDir}/environment.yml"
container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ?
'https://depot.galaxyproject.org/singularity/vardict-java:1.8.3--hdfd78af_0':
'biocontainers/vardict-java:1.8.3--hdfd78af_0' }"
'https://depot.galaxyproject.org/singularity/mulled-v2-731b8c4cf44d76e9aa181af565b9eee448d82a8c:edd70e76f3529411a748168f6eb1a61f29702123-0' :
'biocontainers/mulled-v2-731b8c4cf44d76e9aa181af565b9eee448d82a8c:edd70e76f3529411a748168f6eb1a61f29702123-0' }"

input:
tuple val(meta), path(bams), path(bais), path(bed)
tuple val(meta2), path(fasta)
tuple val(meta3), path(fasta_fai)

output:
tuple val(meta), path("*.vcf"), emit: vcf
tuple val(meta), path("*.vcf.gz"), emit: vcf
path "versions.yml" , emit: versions

when:
Expand All @@ -22,6 +22,7 @@ process VARDICTJAVA {
script:
def args = task.ext.args ?: '-c 1 -S 2 -E 3'
def args2 = task.ext.args2 ?: ''
def args3 = task.ext.args3 ?: ''
def prefix = task.ext.prefix ?: "${meta.id}"

def somatic = bams instanceof List && bams.size() == 2 ? true : false
Expand All @@ -39,7 +40,7 @@ process VARDICTJAVA {
| ${filter} \\
| ${convert_to_vcf} \\
${args2} \\
> ${prefix}.vcf
| bgzip ${args3} --threads ${task.cpus} > ${prefix}.vcf.gz

cat <<-END_VERSIONS > versions.yml
"${task.process}":
Expand All @@ -51,10 +52,11 @@ process VARDICTJAVA {
stub:
def args = task.ext.args ?: '-c 1 -S 2 -E 3'
def args2 = task.ext.args2 ?: ''
def args3 = task.ext.args3 ?: ''
def prefix = task.ext.prefix ?: "${meta.id}"

"""
touch ${prefix}.vcf
echo '' | gzip > ${prefix}.vcf.gz

cat <<-END_VERSIONS > versions.yml
"${task.process}":
Expand Down
Loading