mirror of
https://github.com/MillironX/nf-core_modules.git
synced 2024-12-22 11:08:17 +00:00
[fix] hicap module allow optional outputs (#937)
* make hicap outputs optional * update test data * typo * Update main.nf * use mkfifo * Update main.nf Co-authored-by: Gisela Gabernet <gisela.gabernet@gmail.com> Co-authored-by: FriederikeHanssen <Friederike.hanssen@qbic.uni-tuebingen.de> Co-authored-by: Harshil Patel <drpatelh@users.noreply.github.com>
This commit is contained in:
parent
d5f6985607
commit
bc8899f1bf
2 changed files with 4 additions and 5 deletions
|
@ -24,9 +24,9 @@ process HICAP {
|
||||||
path model_fp
|
path model_fp
|
||||||
|
|
||||||
output:
|
output:
|
||||||
tuple val(meta), path("*.gbk"), emit: gbk
|
tuple val(meta), path("*.gbk"), emit: gbk, optional: true
|
||||||
tuple val(meta), path("*.svg"), emit: svg
|
tuple val(meta), path("*.svg"), emit: svg, optional: true
|
||||||
tuple val(meta), path("*.tsv"), emit: tsv
|
tuple val(meta), path("*.tsv"), emit: tsv, optional: true
|
||||||
path "versions.yml" , emit: versions
|
path "versions.yml" , emit: versions
|
||||||
|
|
||||||
script:
|
script:
|
||||||
|
@ -39,7 +39,6 @@ process HICAP {
|
||||||
if [ "$is_compressed" == "true" ]; then
|
if [ "$is_compressed" == "true" ]; then
|
||||||
gzip -c -d $fasta > $fasta_name
|
gzip -c -d $fasta > $fasta_name
|
||||||
fi
|
fi
|
||||||
|
|
||||||
hicap \\
|
hicap \\
|
||||||
--query_fp $fasta_name \\
|
--query_fp $fasta_name \\
|
||||||
$database_args \\
|
$database_args \\
|
||||||
|
|
|
@ -7,7 +7,7 @@ include { HICAP } from '../../../modules/hicap/main.nf' addParams( options: [:]
|
||||||
workflow test_hicap {
|
workflow test_hicap {
|
||||||
|
|
||||||
input = [ [ id:'test', single_end:false ], // meta map
|
input = [ [ id:'test', single_end:false ], // meta map
|
||||||
file("https://github.com/bactopia/bactopia-tests/raw/main/data/species-specific/haemophilus-influenzae/GCF_900478275.fna.gz", checkIfExists: true) ]
|
file("https://github.com/bactopia/bactopia-tests/raw/main/data/species/haemophilus_influenzae/genome/GCF_900478275.fna.gz", checkIfExists: true) ]
|
||||||
|
|
||||||
database_dir = []
|
database_dir = []
|
||||||
model_fp = []
|
model_fp = []
|
||||||
|
|
Loading…
Reference in a new issue