Hi, I'm writing a Nextflow module for a CNV caller, and I'm having issues with the input files. It requires 2 input files from other processes which have been ported into channels, but when I try to call the required channels I get the error
Multiple channels are not allowed on 'from' input declaration
Is there a way to combine channels? I have tried joining the channels but it still came back with the error. The full code block is below. This is written in DSL1.
// Calculate Copy Number Variation from RNAseq data
process runRNAseqCNV {
tag { filename + ' - RNAseq CNV Caller' }
publishDir "${params.outDir}/${group}/${filename}/RNAseqCNV", mode: 'copy'
label 'rEnv'
input:
set group,
sample,
filename
file(vcf) from results_GATK
file("counts.Rdata") from ch_counts
output:
file("cnv_metadata.csv"),
file("config"),
file("estimations_table.tsv"),
file("manual_an_table.tsv"),
file("sampleCounts.csv"),
set group,
sample,
filename
script:
"""
${workflow.projectDir}/scripts/nf-cnv_caller.R \
-f ${filename} \
-g ${group} \
-o ${params.outDir}
"""
}
You are using the old deprecated DSL1 syntax. A recent nextflow will not de-facto accept your code.