Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
BioFlow-Insight
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
shareFAIR
BioFlow-Insight
Commits
dd319afc
Commit
dd319afc
authored
5 months ago
by
George Marchment
Browse files
Options
Downloads
Patches
Plain Diff
Started added workflow rewrite
parent
470cb7c2
No related branches found
No related tags found
No related merge requests found
Pipeline
#14372
failed with stage
Stage:
in 2 minutes and 33 seconds
Changes
3
Pipelines
1
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/main.py
+43
-0
43 additions, 0 deletions
src/main.py
src/root.py
+7
-1
7 additions, 1 deletion
src/root.py
src/workflow.py
+440
-8
440 additions, 8 deletions
src/workflow.py
with
490 additions
and
9 deletions
src/main.py
+
43
−
0
View file @
dd319afc
...
@@ -48,6 +48,49 @@ class Main(Nextflow_Building_Blocks):
...
@@ -48,6 +48,49 @@ class Main(Nextflow_Building_Blocks):
dico
=
{}
dico
=
{}
self
.
root
.
get_all_calls_in_subworkflow
(
calls
=
dico
)
self
.
root
.
get_all_calls_in_subworkflow
(
calls
=
dico
)
return
list
(
dico
.
keys
())
return
list
(
dico
.
keys
())
def
get_all_executors_in_subworkflow
(
self
):
dico
=
{}
self
.
root
.
get_all_executors_in_subworkflow
(
calls
=
dico
)
return
list
(
dico
.
keys
())
#TODO -> write tests to test this method
def
get_all_calls_in_workflow
(
self
):
all_calls
=
self
.
get_all_calls_in_subworkflow
()
dico
=
{}
for
c
in
all_calls
:
sub
=
c
.
get_first_element_called
()
if
(
sub
.
get_type
()
==
"
Subworkflow
"
):
if
(
c
not
in
dico
):
sub_calls
=
sub
.
get_all_calls_in_workflow
()
for
sub_c
in
sub_calls
:
dico
[
sub_c
]
=
""
for
c
in
all_calls
:
dico
[
c
]
=
""
return
list
(
dico
.
keys
())
#TODO -> write tests to test this method
def
get_all_executors_in_workflow
(
self
):
all_executors
=
self
.
get_all_executors_in_subworkflow
()
dico
=
{}
for
e
in
all_executors
:
if
(
e
.
get_type
()
==
"
Call
"
):
for
c
in
e
.
get_all_calls
():
sub
=
c
.
get_first_element_called
()
if
(
sub
.
get_type
()
==
"
Subworkflow
"
):
if
(
c
not
in
dico
):
sub_calls
=
sub
.
get_all_executors_in_workflow
()
for
sub_c
in
sub_calls
:
dico
[
sub_c
]
=
""
#Case it's an operation
else
:
dico
[
e
]
=
""
for
e
in
all_executors
:
dico
[
e
]
=
""
return
list
(
dico
.
keys
())
def
check_includes
(
self
):
def
check_includes
(
self
):
...
...
This diff is collapsed.
Click to expand it.
src/root.py
+
7
−
1
View file @
dd319afc
...
@@ -220,7 +220,13 @@ class Root(Nextflow_Building_Blocks):
...
@@ -220,7 +220,13 @@ class Root(Nextflow_Building_Blocks):
calls
[
c
]
=
''
calls
[
c
]
=
''
#if(c.get_first_element_called().get_type()=="Subworkflow"):
#if(c.get_first_element_called().get_type()=="Subworkflow"):
# c.get_first_element_called().root.get_all_calls(calls = calls)
# c.get_first_element_called().root.get_all_calls(calls = calls)
def
get_all_executors_in_subworkflow
(
self
,
calls
=
{}):
all_executors
=
self
.
get_executors_same_level
()
+
self
.
get_inside_executors
()
for
e
in
all_executors
:
calls
[
e
]
=
''
#############
#############
# PROCESSES
# PROCESSES
...
...
This diff is collapsed.
Click to expand it.
src/workflow.py
+
440
−
8
View file @
dd319afc
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment