-
Notifications
You must be signed in to change notification settings - Fork 752
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'nfcore/master' into main
- Loading branch information
Showing
43 changed files
with
558 additions
and
60 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 |
---|---|---|
|
@@ -38,3 +38,4 @@ output: | |
pattern: "versions.yml" | ||
authors: | ||
- "@yumisims" | ||
- "@gq2" |
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
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,33 @@ | ||
process GENOTYPHI_PARSE { | ||
tag "$meta.id" | ||
label 'process_low' | ||
|
||
conda (params.enable_conda ? "bioconda::genotyphi=1.9.1" : null) | ||
container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ? | ||
'https://depot.galaxyproject.org/singularity/genotyphi:1.9.1--hdfd78af_1': | ||
'quay.io/biocontainers/genotyphi:1.9.1--hdfd78af_1' }" | ||
|
||
input: | ||
tuple val(meta), path(json) | ||
|
||
output: | ||
tuple val(meta), path("*.tsv"), emit: tsv | ||
path "versions.yml" , emit: versions | ||
|
||
when: | ||
task.ext.when == null || task.ext.when | ||
|
||
script: | ||
def args = task.ext.args ?: '' | ||
def prefix = task.ext.prefix ?: "${meta.id}" | ||
""" | ||
parse_typhi_mykrobe.py \\ | ||
--jsons $json \\ | ||
--prefix ${prefix} | ||
cat <<-END_VERSIONS > versions.yml | ||
"${task.process}": | ||
genotyphi: \$(echo \$(genotyphi --version 2>&1) | sed 's/^.*GenoTyphi v//;' ) | ||
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,42 @@ | ||
name: "genotyphi_parse" | ||
description: Genotype Salmonella Typhi from Mykrobe results | ||
keywords: | ||
- genotype | ||
- Salmonella Typhi | ||
tools: | ||
- "genotyphi": | ||
description: "Assign genotypes to Salmonella Typhi genomes based on VCF files (mapped to Typhi CT18 reference genome)" | ||
homepage: "https://github.com/katholt/genotyphi" | ||
documentation: "https://github.com/katholt/genotyphi" | ||
tool_dev_url: "https://github.com/katholt/genotyphi" | ||
doi: "https://github.com/katholt/genotyphi" | ||
licence: "['GPL v3']" | ||
|
||
input: | ||
- meta: | ||
type: map | ||
description: | | ||
Groovy Map containing sample information | ||
e.g. [ id:'test', single_end:false ] | ||
- json: | ||
type: file | ||
description: JSON formatted file of Mykrobe results | ||
pattern: "*.json" | ||
|
||
output: | ||
- meta: | ||
type: map | ||
description: | | ||
Groovy Map containing sample information | ||
e.g. [ id:'test', single_end:false ] | ||
- versions: | ||
type: file | ||
description: File containing software versions | ||
pattern: "versions.yml" | ||
- tsv: | ||
type: file | ||
description: A tab-delimited file of predicted genotypes | ||
pattern: "*.tsv" | ||
|
||
authors: | ||
- "@rpetit3" |
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,41 @@ | ||
process MYKROBE_PREDICT { | ||
tag "$meta.id" | ||
label 'process_low' | ||
|
||
conda (params.enable_conda ? "bioconda::mykrobe=0.11.0" : null) | ||
container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ? | ||
'https://depot.galaxyproject.org/singularity/mykrobe:0.11.0--py39h2add14b_1': | ||
'quay.io/biocontainers/mykrobe:0.11.0--py39h2add14b_1' }" | ||
|
||
input: | ||
tuple val(meta), path(seqs) | ||
val species | ||
|
||
output: | ||
tuple val(meta), path("${prefix}.csv") , emit: csv | ||
tuple val(meta), path("${prefix}.json"), emit: json | ||
path "versions.yml" , emit: versions | ||
|
||
when: | ||
task.ext.when == null || task.ext.when | ||
|
||
script: | ||
def args = task.ext.args ?: '' | ||
prefix = task.ext.prefix ?: "${meta.id}" | ||
""" | ||
mykrobe \\ | ||
predict \\ | ||
$args \\ | ||
--species $species \\ | ||
--threads $task.cpus \\ | ||
--sample $prefix \\ | ||
--format json_and_csv \\ | ||
--output ${prefix} \\ | ||
--seq $seqs | ||
cat <<-END_VERSIONS > versions.yml | ||
"${task.process}": | ||
mykrobe: \$(echo \$(mykrobe --version 2>&1) | sed 's/^.*mykrobe v//' ) | ||
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,51 @@ | ||
name: "mykrobe_predict" | ||
description: AMR predictions for supported species | ||
keywords: | ||
- fastq | ||
- bam | ||
- antimicrobial resistance | ||
tools: | ||
- "mykrobe": | ||
description: "Antibiotic resistance prediction in minutes" | ||
homepage: "http://www.mykrobe.com/" | ||
documentation: "https://github.com/Mykrobe-tools/mykrobe/wiki" | ||
tool_dev_url: "https://github.com/Mykrobe-tools/mykrobe" | ||
doi: "10.1038/ncomms10063" | ||
licence: "['MIT']" | ||
|
||
input: | ||
- meta: | ||
type: map | ||
description: | | ||
Groovy Map containing sample information | ||
e.g. [ id:'test', single_end:false ] | ||
- seqs: | ||
type: file | ||
description: BAM or FASTQ file | ||
pattern: "*.{bam,fastq.gz,fq.gz}" | ||
- species: | ||
type: string | ||
description: Species to make AMR prediction against | ||
pattern: "*" | ||
|
||
output: | ||
- meta: | ||
type: map | ||
description: | | ||
Groovy Map containing sample information | ||
e.g. [ id:'test', single_end:false ] | ||
- versions: | ||
type: file | ||
description: File containing software versions | ||
pattern: "versions.yml" | ||
- csv: | ||
type: file | ||
description: AMR predictions in CSV format | ||
pattern: "*.csv" | ||
- json: | ||
type: file | ||
description: AMR predictions in JSON format | ||
pattern: "*.json" | ||
|
||
authors: | ||
- "@rpetit3" |
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
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,39 @@ | ||
process SEROBA_RUN { | ||
tag "$meta.id" | ||
label 'process_low' | ||
|
||
conda (params.enable_conda ? "bioconda::seroba=1.0.2" : null) | ||
container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ? | ||
'https://depot.galaxyproject.org/singularity/seroba:1.0.2--pyhdfd78af_1': | ||
'quay.io/biocontainers/seroba:1.0.2--pyhdfd78af_1' }" | ||
|
||
input: | ||
tuple val(meta), path(reads) | ||
|
||
output: | ||
tuple val(meta), path("${prefix}/${prefix}.tsv") , emit: tsv | ||
tuple val(meta), path("${prefix}/detailed_serogroup_info.txt"), optional: true, emit: txt | ||
path "versions.yml" , emit: versions | ||
|
||
when: | ||
task.ext.when == null || task.ext.when | ||
|
||
script: | ||
def args = task.ext.args ?: '' | ||
prefix = task.ext.prefix ?: "${meta.id}" | ||
""" | ||
seroba \\ | ||
runSerotyping \\ | ||
$reads \\ | ||
$prefix \\ | ||
$args | ||
# Avoid name collisions | ||
mv ${prefix}/pred.tsv ${prefix}/${prefix}.tsv | ||
cat <<-END_VERSIONS > versions.yml | ||
"${task.process}": | ||
seroba: \$(seroba version) | ||
END_VERSIONS | ||
""" | ||
} |
Oops, something went wrong.