@@ -261,6 +261,7 @@ class Process(Nextflow_Building_Blocks):
...
@@ -261,6 +261,7 @@ class Process(Nextflow_Building_Blocks):
forlineincode.split("\n"):
forlineincode.split("\n"):
placed=False
#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)
#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)
patterns=[constant.FILE,constant.PATH]
patterns=[constant.FILE,constant.PATH]
...
@@ -271,25 +272,30 @@ class Process(Nextflow_Building_Blocks):
...
@@ -271,25 +272,30 @@ class Process(Nextflow_Building_Blocks):
extracted=match.group(1).strip()
extracted=match.group(1).strip()
except:
except:
extracted=match.group(2).strip()
extracted=match.group(2).strip()
placed=True
add_channel(extracted)
add_channel(extracted)
self.raw_input_names.append(extracted)
self.raw_input_names.append(extracted)
if(notplaced):
#Case there are multiple channels as input (e.g. channel1.mix(channel2))
#Case there are multiple channels as input (e.g. channel1.mix(channel2))