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
307054a1
Commit
307054a1
authored
1 year ago
by
George Marchment
Browse files
Options
Downloads
Patches
Plain Diff
add option to get file extension
parent
12ce6da1
No related branches found
No related tags found
No related merge requests found
Pipeline
#13386
passed with stage
in 1 minute and 5 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/process.py
+21
-0
21 additions, 0 deletions
src/process.py
with
21 additions
and
0 deletions
src/process.py
+
21
−
0
View file @
307054a1
...
...
@@ -216,6 +216,27 @@ class Process(Nextflow_Building_Blocks):
#Method that returns the input part of the process code
def
get_output_code
(
self
):
return
self
.
output_code
def
get_file_extensions_outputs
(
self
):
code
=
self
.
get_output_code
()
extensions
=
[]
for
match
in
re
.
finditer
(
r
"
(\.\w+)+|\.\w+
"
,
code
):
extensions
.
append
(
match
.
group
(
0
))
return
extensions
def
get_input_parameters
(
self
):
code
=
self
.
get_input_code
()
parameters
=
[]
for
match
in
re
.
finditer
(
r
"
\w+
"
,
code
):
parameters
.
append
(
match
.
group
(
0
))
parameters
=
list
(
set
(
parameters
))
#Here we can a unique cause a parameter can only be given once in any case
words_2_remove
=
[
"
path
"
,
"
val
"
,
"
tuple
"
,
"
into
"
,
"
stageAs
"
,
"
emit
"
]
for
word
in
words_2_remove
:
try
:
parameters
.
remove
(
word
)
except
:
None
return
parameters
def
get_modules
(
self
):
return
self
.
modules
...
...
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