-
Hello, community, Trying to lean nexflow, hence tried to encapsulate my bash one-liners, I used for an analysis. However, I stumbled upon interesting issue I am not sure how to tackle, It seems that
My nf file:
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Where is process CAZY_DBCAN {
publishDir params.outdir, mode: 'copy'
conda "envs/dbcan.yml"
input:
path faa_file
path HMMs
output:
path "${faa_file}.dm"
script:
"""
hmmscan --domtblout ${faa_file}.dm $HMMs $faa_file > result.out
"""
} workflow {
inputs = Channel.fromPath(params.input_file)
HMMs = Channel.fromPath('./data/dbcan_data/dbCAN-fam-HMMs.txt')
dbcan = CAZY_DBCAN(inputs, HMMs)
CAZY_DBCAN_FILTER(dbcan)
} |
Beta Was this translation helpful? Give feedback.
-
Thank you, worked like a charm! The only thing is that the program also needed directory alongside the file, so configuration like that worked:
With directory as an input for the channel in the workflow:
|
Beta Was this translation helpful? Give feedback.
Where is
./data/dbcan_data/dbCAN-fam-HMMs.txt
located? To use it in your process you need to include it in as an input to your process: