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

Update ampcombi 2.0.1 #7142

Merged
merged 18 commits into from
Dec 11, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
10 changes: 9 additions & 1 deletion modules/nf-core/ampcombi2/parsetables/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ process AMPCOMBI2_PARSETABLES {
path gbk_input
val opt_amp_db
path opt_amp_db_dir
path opt_interproscan

output:
tuple val(meta), path("${meta.id}/") , emit: sample_dir
Expand All @@ -34,14 +35,18 @@ process AMPCOMBI2_PARSETABLES {
script:
def args = task.ext.args ?: ''
def prefix = task.ext.prefix ?: "${meta.id}"
def db_dir = opt_amp_db_dir? "--amp_database_dir $opt_amp_db_dir": ""
def interpro = opt_interproscan? "--interproscan_output $opt_interproscan": ""

"""
ampcombi parse_tables \\
--path_list '${amp_input.collect { "${it}" }.join("' '")}' \\
Darcy220606 marked this conversation as resolved.
Show resolved Hide resolved
--faa ${faa_input} \\
--gbk ${gbk_input} \\
--sample_list ${prefix} \\
--amp_database ${opt_amp_db} \\
Darcy220606 marked this conversation as resolved.
Show resolved Hide resolved
--amp_database_dir ${opt_amp_db_dir} \\
${db_dir} \\
${interpro} \\
${args} \\
--threads ${task.cpus}
Darcy220606 marked this conversation as resolved.
Show resolved Hide resolved

Expand All @@ -54,6 +59,9 @@ process AMPCOMBI2_PARSETABLES {
stub:
def args = task.ext.args ?: ''
def prefix = task.ext.prefix ?: "${meta.id}"
def db_dir = opt_amp_db_dir? "--amp_database_dir $opt_amp_db_dir": ""
def interpro = opt_interproscan? "--interproscan_output $opt_interproscan": ""

"""
mkdir -p ${prefix}
mkdir -p ${prefix}/contig_gbks
Expand Down
5 changes: 5 additions & 0 deletions modules/nf-core/ampcombi2/parsetables/meta.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ keywords:
- amptransformer
- DRAMP
- MMseqs2
- InterProScan
tools:
- ampcombi2/parsetables:
description: "A parsing tool to convert and summarise the outputs from multiple
Expand Down Expand Up @@ -60,6 +61,10 @@ input:
type: directory
description: The path to the folder containing the fasta and tsv database files.
pattern: "path/to/amp_*_database"
- - opt_interproscan:
type: directory
description: The path to the file corresponding to the respective tsv files containing the protein classifications of the annotated CDSs. The file must be the raw output from InterProScan and have an extension of '.tsv'.
pattern: "*.faa.tsv"
Darcy220606 marked this conversation as resolved.
Show resolved Hide resolved
output:
- sample_dir:
- meta:
Expand Down
2 changes: 2 additions & 0 deletions modules/nf-core/ampcombi2/parsetables/tests/main.nf.test
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ nextflow_process {
input[2] = gbk_input
input[3] = 'DRAMP'
input[4] = []
input[5] = []
"""
}
}
Expand Down Expand Up @@ -72,6 +73,7 @@ nextflow_process {
input[2] = gbk_input
input[3] = 'DRAMP'
input[4] = []
input[5] = []
"""
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"nf-test": "0.9.2",
"nextflow": "24.10.2"
},
"timestamp": "2024-12-05T13:02:52.664971407"
"timestamp": "2024-12-11T13:58:57.988191067"
},
"ampcombi2_parsetables - metagenome - stub": {
"content": [
Expand Down
3 changes: 2 additions & 1 deletion modules/nf-core/ampcombi2/parsetables/tests/nextflow.config
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ process {
"--hmmsearch_file 'candidates.txt'",
"--ampgram_file '.tsv'",
"--amptransformer_file '.txt'",
"--log true"
"--log true",
"--interproscan_filter 'nonsense'"
].join(' ')

ext.prefix = "sample_1"
Expand Down
Loading