This is a test version of Biostars. For the public version, visit https://www.biostars.org.
Error in executing nextflow script

The workflow was given as -

workflow {

mapping(Channel.fromPath('TRIM.out', 'buildIndex.out'))

}

The process is written as -

process mapping {
input: path 'TRIM.out' path 'buildIndex.out'

"""
bowtie2 -x $buildIndex.out $TRIM.out -S accepted_hits.sam
"""
}

ERROR

nextflow

Could you format your code as code block?

1 answer

the process mapping taks as input TWO path while Channel.fromPath('TRIM.out', 'buildIndex.out') is a stream of data, each data contains ONE path.

you want something like:

mapping(file('TRIM.out'),file('buildIndex.out'))

Log in to answer this question.