-
Notifications
You must be signed in to change notification settings - Fork 657
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
21 changed files
with
316 additions
and
31 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
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,49 @@ | ||
process BACPHLIP { | ||
tag "$meta.id" | ||
label 'process_high' | ||
|
||
conda "bioconda::bacphlip=0.9.6 conda-forge::numpy=1.23.5 bioconda::hmmer=3.3.2" | ||
container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ? | ||
'https://depot.galaxyproject.org/singularity/mulled-v2-e16bfb0f667f2f3c236b32087aaf8c76a0cd2864:c64689d7d5c51670ff5841ec4af982edbe7aa406-0': | ||
'biocontainers/mulled-v2-e16bfb0f667f2f3c236b32087aaf8c76a0cd2864:c64689d7d5c51670ff5841ec4af982edbe7aa406-0' }" | ||
|
||
input: | ||
tuple val(meta), path(fasta) | ||
|
||
output: | ||
tuple val(meta), path("*.bacphlip") , emit: bacphlip_results | ||
tuple val(meta), path("*.hmmsearch.tsv") , emit: hmmsearch_results | ||
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}" | ||
def VERSION = '0.9.6' // WARN: Version information not provided by tool on CLI. Please update this string when bumping container versions. | ||
""" | ||
bacphlip \\ | ||
-i $fasta \\ | ||
$args | ||
cat <<-END_VERSIONS > versions.yml | ||
"${task.process}": | ||
bacphlip: $VERSION | ||
END_VERSIONS | ||
""" | ||
|
||
stub: | ||
def args = task.ext.args ?: '' | ||
def prefix = task.ext.prefix ?: "${meta.id}" | ||
def VERSION = '0.9.6' // WARN: Version information not provided by tool on CLI. Please update this string when bumping container versions. | ||
""" | ||
touch ${fasta}.bacphlip | ||
touch ${fasta}.hmmsearch.tsv | ||
cat <<-END_VERSIONS > versions.yml | ||
"${task.process}": | ||
bacphlip: $VERSION | ||
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,50 @@ | ||
name: "bacphlip" | ||
description: A bacteriophage lifestyle prediction tool | ||
keywords: | ||
- phage | ||
- lifestyle | ||
- temperate | ||
- virulent | ||
- bacphlip | ||
- hmmsearch | ||
tools: | ||
- "bacphlip": | ||
description: "A Random Forest classifier to predict bacteriophage lifestyle" | ||
homepage: https://github.com/adamhockenberry/bacphlip | ||
documentation: https://github.com/adamhockenberry/bacphlip | ||
tool_dev_url: https://github.com/adamhockenberry/bacphlip | ||
doi: 10.7717/peerj.11396 | ||
licence: "['MIT']" | ||
|
||
input: | ||
- meta: | ||
type: map | ||
description: | | ||
Groovy Map containing sample information | ||
e.g. [ id:'test', single_end:false ] | ||
- fasta: | ||
type: file | ||
description: FASTA file containing phage contigs/scaffolds/chromosomes (if it is a multi-FASTA file be sure to add the `--multi_fasta` argument) | ||
pattern: "*.{fasta,fna,fa}" | ||
|
||
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" | ||
- bacphlip_results: | ||
type: file | ||
description: TSV file containing Temperate and Virulent scores for each phage sequence | ||
pattern: "*.bacphlip" | ||
- hmmsearch_results: | ||
type: file | ||
description: TSV file containing binary output indicating gene presence/absence based on hmmsearch results | ||
pattern: "*.hmmsearch.tsv" | ||
|
||
authors: | ||
- "@CarsonJM" |
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
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,15 @@ | ||
#!/usr/bin/env nextflow | ||
|
||
nextflow.enable.dsl = 2 | ||
|
||
include { BACPHLIP } from '../../../../modules/nf-core/bacphlip/main.nf' | ||
|
||
workflow test_bacphlip { | ||
|
||
input = [ | ||
[ id:'test', single_end:false ], // meta map | ||
file(params.test_data['candidatus_portiera_aleyrodidarum']['genome']['genome_fasta'], checkIfExists: true) | ||
] | ||
|
||
BACPHLIP ( 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,5 @@ | ||
process { | ||
|
||
publishDir = { "${params.outdir}/${task.process.tokenize(':')[-1].tokenize('_')[0].toLowerCase()}" } | ||
|
||
} |
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,19 @@ | ||
- name: bacphlip test_bacphlip | ||
command: nextflow run ./tests/modules/nf-core/bacphlip -entry test_bacphlip -c ./tests/config/nextflow.config -c ./tests/modules/nf-core/bacphlip/nextflow.config | ||
tags: | ||
- bacphlip | ||
files: | ||
- path: output/bacphlip/genome.fasta.bacphlip | ||
md5sum: 3d07000f244d3a44b45c37adb2bcac4a | ||
- path: output/bacphlip/genome.fasta.hmmsearch.tsv | ||
md5sum: e4f0f3d4a75300ab4ee1d760cbded532 | ||
- path: output/bacphlip/versions.yml | ||
|
||
- name: bacphlip test_bacphlip_stub | ||
command: nextflow run ./tests/modules/nf-core/bacphlip -entry test_bacphlip -c ./tests/config/nextflow.config -c ./tests/modules/nf-core/bacphlip/nextflow.config -stub-run | ||
tags: | ||
- bacphlip | ||
files: | ||
- path: output/bacphlip/genome.fasta.bacphlip | ||
- path: output/bacphlip/genome.fasta.hmmsearch.tsv | ||
- path: output/bacphlip/versions.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
Oops, something went wrong.