forked from nf-core/modules
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
New ensemblvep/download module (nf-core#2847)
* ensemblvep -> ensemblvep/vep + add ensemblvep/download * update tags * lint * fix subworkflow tag * update exclude matrix * proper stub
- Loading branch information
Showing
15 changed files
with
229 additions
and
104 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
process ENSEMBLVEP_DOWNLOAD { | ||
tag "$meta.id" | ||
label 'process_medium' | ||
|
||
conda "bioconda::ensembl-vep=108.2" | ||
container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ? | ||
'https://depot.galaxyproject.org/singularity/ensembl-vep:108.2--pl5321h4a94de4_0' : | ||
'quay.io/biocontainers/ensembl-vep:108.2--pl5321h4a94de4_0' }" | ||
|
||
input: | ||
tuple val(meta), val(assembly), val(species), val(cache_version) | ||
|
||
output: | ||
tuple val(meta), path("vep_cache"), emit: cache | ||
path "versions.yml" , emit: versions | ||
|
||
when: | ||
task.ext.when == null || task.ext.when | ||
|
||
script: | ||
def args = task.ext.args ?: '' | ||
""" | ||
vep_install \\ | ||
--CACHEDIR vep_cache \\ | ||
--SPECIES $species \\ | ||
--ASSEMBLY $assembly \\ | ||
--CACHE_VERSION $cache_version \\ | ||
$args | ||
cat <<-END_VERSIONS > versions.yml | ||
"${task.process}": | ||
ensemblvep: \$( echo \$(vep --help 2>&1) | sed 's/^.*Versions:.*ensembl-vep : //;s/ .*\$//') | ||
END_VERSIONS | ||
""" | ||
|
||
stub: | ||
""" | ||
mkdir vep_cache | ||
cat <<-END_VERSIONS > versions.yml | ||
"${task.process}": | ||
ensemblvep: \$( echo \$(vep --help 2>&1) | sed 's/^.*Versions:.*ensembl-vep : //;s/ .*\$//') | ||
END_VERSIONS | ||
""" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
name: ENSEMBLVEP_DOWNLOAD | ||
description: Ensembl Variant Effect Predictor (VEP). The cache downloading options are controlled through `task.ext.args`. | ||
keywords: | ||
- annotation | ||
tools: | ||
- ensemblvep: | ||
description: | | ||
VEP determines the effect of your variants (SNPs, insertions, deletions, CNVs | ||
or structural variants) on genes, transcripts, and protein sequence, as well as regulatory regions. | ||
homepage: https://www.ensembl.org/info/docs/tools/vep/index.html | ||
documentation: https://www.ensembl.org/info/docs/tools/vep/script/index.html | ||
licence: ["Apache-2.0"] | ||
input: | ||
- meta: | ||
type: map | ||
description: | | ||
Groovy Map containing sample information | ||
e.g. [ id:'test', single_end:false ] | ||
- assembly: | ||
type: value | ||
description: | | ||
Genome assembly | ||
- species: | ||
type: value | ||
description: | | ||
Specie | ||
- cache_version: | ||
type: value | ||
description: | | ||
cache version | ||
output: | ||
- cache: | ||
type: file | ||
description: cache | ||
pattern: "*" | ||
- versions: | ||
type: file | ||
description: File containing software versions | ||
pattern: "versions.yml" | ||
authors: | ||
- "@maxulysse" |
2 changes: 1 addition & 1 deletion
2
modules/nf-core/ensemblvep/main.nf → modules/nf-core/ensemblvep/vep/main.nf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
process ENSEMBLVEP { | ||
process ENSEMBLVEP_VEP { | ||
tag "$meta.id" | ||
label 'process_medium' | ||
|
||
|
2 changes: 1 addition & 1 deletion
2
modules/nf-core/ensemblvep/meta.yml → modules/nf-core/ensemblvep/vep/meta.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/usr/bin/env nextflow | ||
|
||
nextflow.enable.dsl = 2 | ||
|
||
include { ENSEMBLVEP_DOWNLOAD } from '../../../../../modules/nf-core/ensemblvep/download/main.nf' | ||
|
||
workflow test_ensemblvep_download { | ||
input = [[id:"test"], "WBcel235", "caenorhabditis_elegans", "108"] | ||
|
||
ENSEMBLVEP_DOWNLOAD(input) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
process { | ||
|
||
publishDir = { "${params.outdir}/${task.process.tokenize(':')[-1].tokenize('_')[0].toLowerCase()}" } | ||
|
||
withName: ENSEMBLVEP_DOWNLOAD { | ||
ext.args = '--AUTO c --CONVERT --NO_BIOPERL --NO_HTSLIB --NO_TEST --NO_UPDATE' | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
- name: ensemblvep test_ensemblvep_download | ||
command: nextflow run ./tests/modules/nf-core/ensemblvep/download -entry test_ensemblvep_download -c ./tests/config/nextflow.config -c ./tests/modules/nf-core/ensemblvep/download/nextflow.config | ||
tags: | ||
- ensemblvep | ||
- ensemblvep/download | ||
files: | ||
- path: output/ensemblvep/vep_cache/caenorhabditis_elegans/108_WBcel235/ |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.