Skip to content
Snippets Groups Projects
Commit 9b7b4e3f authored by George Marchment's avatar George Marchment
Browse files

Update the conversion from DSL1 to DSL2 -> there was a problem with the inputs and outputs

parent 6f43247f
No related branches found
No related tags found
No related merge requests found
Pipeline #14450 failed with stage
in 2 minutes and 36 seconds
...@@ -438,7 +438,11 @@ class Process(Nextflow_Building_Blocks): ...@@ -438,7 +438,11 @@ class Process(Nextflow_Building_Blocks):
self.initialise_inputs_outputs() self.initialise_inputs_outputs()
def convert_input_code_to_DSL2(self): def convert_input_code_to_DSL2(self):
code = self.input_code code = "\n"+self.get_input_code()+"\n"
code = remove_jumps_inbetween_parentheses(code)
code = remove_jumps_inbetween_curlies(code)
#Simplying the inputs -> when there is a jump line '.' -> it turns it to '.'
code = re.sub(constant.JUMP_DOT, '.', code)
#code = process_2_DSL2(code) #code = process_2_DSL2(code)
lines = [] lines = []
for line in code.split("\n"): for line in code.split("\n"):
...@@ -448,7 +452,9 @@ class Process(Nextflow_Building_Blocks): ...@@ -448,7 +452,9 @@ class Process(Nextflow_Building_Blocks):
return code return code
def convert_output_code_to_DSL2(self): def convert_output_code_to_DSL2(self):
code = self.output_code code = self.get_output_code()
code = remove_jumps_inbetween_parentheses(code)
code = remove_jumps_inbetween_curlies(code)
lines = [] lines = []
for line in code.split("\n"): for line in code.split("\n"):
line = line.replace(" into ", ", emit: ") line = line.replace(" into ", ", emit: ")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment