#So that means there are the 2 nodes which form the cycle edge in the relevant processes
#-> it means we need to regenerated relevant processes
...
...
@@ -788,6 +800,15 @@ George Marchment, Bryan Brancotte, Marie Schmit, Frédéric Lemoine, Sarah Cohen
returnmatch.group(1)
returnre.sub(f"(\w+)_GG_\d+",replacer,code)
defcheck_multiple_subworkflow(self):
seen=[]
forsubinself.get_subworkflows_called():
if(sub.get_code()inseen):
raiseBioFlowInsightError(f"The subworkflow '{sub.get_name()}' is called multiple times in the workflow, I cannot rewritte it. Try defining the workflow in a different way.",type="Rewrite Error")
else:
seen.append(sub.get_code())
#Method which rewrites the workflow follwong the user view
#Conert workflow to user_view only makes sense when the option duplicate is activated -> otherwise is doesn't make sense + it makes the analysis way more complicated