how to understand file and into command #3085
-
process splitLetters {
} how should I understand the file and into command, I tried to find such grammar in groove,but failed. another thing, is there any recommended reference to learn groove for better usage of nextflow, thanks a lot process convertToUpper {
} |
Beta Was this translation helpful? Give feedback.
Replies: 9 comments 9 replies
-
You should now use |
Beta Was this translation helpful? Give feedback.
-
@mribeirodantas though it has a DSL2 part, but it is stiil very hard for me to know which part has been deprecated since this does not mention (file, iinto ) have been deprecated . if I want to learn DSL2, I see the link https://www.nextflow.io/docs/latest/dsl2.html , but it does not mention basic operator and other concepts, I still need to read the doc from beginning, it is hard to choose. I can still see **from** in DSL part  though the last part say, Operator print and println have been deprecated by DSL2 syntax. Use [view](https://www.nextflow.io/docs/latest/operator.html#operator-view) instead. but println still appeared 
N E X T F L O W ~ version 21.10.6 when add nextflow.enable.dsl=2 in the header
|
Beta Was this translation helpful? Give feedback.
-
@mribeirodantas
outout is: it does not print Hello', 'Hola', 'Bonjour one by one in the screen The shell block; does it support python or R block ?  is there a plan to supplort Chinese cloud, like aliyun, huawei |
Beta Was this translation helpful? Give feedback.
-
thanks a lot.it works. |
Beta Was this translation helpful? Give feedback.
-
thanks a lot. I just want to test if the script work as expected.
N E X T F L O W ~ version 21.10.6 Launching `n4.nf` [exotic_lovelace] - revision: 91a787e2d3 executor > local (3) [87/59ba05] process > myTask (1) [100%] 3 of 3 ✔ why still not sdout? |
Beta Was this translation helpful? Give feedback.
-
thanks a lot. |
Beta Was this translation helpful? Give feedback.
-
thanks a lot. how can this work?
|
Beta Was this translation helpful? Give feedback.
-
@mribeirodantas thanks a lot for your kind help. Scripts à la carte You can use your favourite scripting language (e.g. Perl, Python, Ruby, R, etc), or even mix them in
and why there is extra \n and my default python is python3, even the script is following, it does not say error (in python3, print need parentheses) ``` nextflow.enable.dsl=2 process myTask { input: val str
} workflow {
|
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
file
,into
andfrom
are part of Nextflow, a Domain Specific Language built on top of Groovy. That's why you did not find it in Groovy documentation. You should look for it in the official documentation of Nextflow. However, I must warn you, these are deprecated now since recently we moved to DSL2 as the default.You should now use
path
instead offile
, and use the workflow function instead of using the into/from. The * inchunck_*
is a blob, capture everything that starts with chunck_. Knowing groovy is useful, but you should focus to learn Nextflow instead. For Groovy, check here.