Seeking DSL2 help using sample DSL1 code

53 views
Skip to first unread message

whatsina...@gmail.com

unread,
Dec 10, 2021, 4:45:39 AM12/10/21
to Nextflow
Hi all

Seeking DSL2 help: I have this below DSL1 code - process Two will not work even then and was told DSL2 would be neededA bunch of *.csv files will be output from process One - each of those csv files need to be a separate process and used with file x_predictor
process One { executor 'local' input: file y_target from input_csv_y_target_ch output: path('*.csv') into predict_ml_ch script: """ awk -F, '{ for (i=1; i < NF; i++) print \$1, \$(i+1) > i ".csv"}' $y_target """ } process Two { cpus 10 memory '100 GB' conda 'path_to_conda' input: file x_predictor from input_csv_x_predictor_ch file split_csv_file from predict_ml_ch.flatten() script: """ pyscript.py $x_predictor $split_csv_file """ }
Thanks in advance

drhp...@gmail.com

unread,
Dec 14, 2021, 4:41:09 AM12/14/21
to Nextflow

Hi Anand,

Did you manage to figure this out via the help on nf-core Slack? Be great if you can post your eventual solution here.

Cheers,

Harshil

Reply all
Reply to author
Forward
0 new messages