mirror of
https://github.com/MillironX/nf-core_modules.git
synced 2024-11-13 05:13:09 +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
|
||||
|
||||
output:
|
||||
tuple val(meta), path("*.gbk"), emit: gbk
|
||||
tuple val(meta), path("*.svg"), emit: svg
|
||||
tuple val(meta), path("*.tsv"), emit: tsv
|
||||
tuple val(meta), path("*.gbk"), emit: gbk, optional: true
|
||||
tuple val(meta), path("*.svg"), emit: svg, optional: true
|
||||
tuple val(meta), path("*.tsv"), emit: tsv, optional: true
|
||||
path "versions.yml" , emit: versions
|
||||
|
||||
script:
|
||||
|
@ -39,7 +39,6 @@ process HICAP {
|
|||
if [ "$is_compressed" == "true" ]; then
|
||||
gzip -c -d $fasta > $fasta_name
|
||||
fi
|
||||
|
||||
hicap \\
|
||||
--query_fp $fasta_name \\
|
||||
$database_args \\
|
||||
|
|
|
@ -7,7 +7,7 @@ include { HICAP } from '../../../modules/hicap/main.nf' addParams( options: [:]
|
|||
workflow test_hicap {
|
||||
|
||||
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 = []
|
||||
model_fp = []
|
||||
|
|
Loading…
Reference in a new issue