@@ -354,7 +354,12 @@ class Process(Nextflow_Building_Blocks):
#Case there is a single channel as an input -> doesn't use from to import channel -> uses file (see https://github.com/nextflow-io/nextflow/blob/45ceadbdba90b0b7a42a542a9fc241fb04e3719d/docs/process.rst)
pattern=constant.FILE
formatchinre.finditer(pattern,line+"\n"):
extracted=match.group(1).strip()
#In the first case it's "file ch" in the second "file (ch)"
try:
extracted=match.group(1).strip()
except:
extracted=match.group(2).strip()
add_channel(extracted)
self.raw_input_names.append(extracted)
...
...
@@ -581,6 +586,8 @@ class Process(Nextflow_Building_Blocks):
forlineincode.split("\n"):
line=line.replace(" into ",", emit: ")
line=line.replace(" mode flatten","")
#Remove optionnal true #TODO check if this breaks soemthing
line=line.replace("optional true","")
line=process_2_DSL2(line)
lines.append(line)
code="\n".join(lines)
...
...
@@ -590,8 +597,7 @@ class Process(Nextflow_Building_Blocks):