Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
I
imaging_compress_pipeline
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
LDV
imaging_compress_pipeline
Commits
a7e450aa
Commit
a7e450aa
authored
9 months ago
by
Timo Millenaar
Browse files
Options
Downloads
Patches
Plain Diff
Properly specify pipeline outputs in aggregate_and_plot.cwl
parent
33212664
Branches
improve-docs
Branches containing commit
Tags
Tags containing commit
1 merge request
!18
Scatter and aggregate
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
aggregate_and_plot.cwl
+13
-1
13 additions, 1 deletion
aggregate_and_plot.cwl
aggregate_and_plot.py
+4
-4
4 additions, 4 deletions
aggregate_and_plot.py
aggregate_and_plot.sh
+1
-1
1 addition, 1 deletion
aggregate_and_plot.sh
with
18 additions
and
6 deletions
aggregate_and_plot.cwl
+
13
−
1
View file @
a7e450aa
...
@@ -15,4 +15,16 @@ inputs:
...
@@ -15,4 +15,16 @@ inputs:
inputBinding:
inputBinding:
position: 1 # The first argument after the script will be the workdir
position: 1 # The first argument after the script will be the workdir
outputs: []
outputs:
- id: plots
type: File[]
outputBinding:
glob: "*.png"
- id: outputs
type: File
outputBinding:
glob: "outputs.txt"
- id: inspect
type: File
outputBinding:
glob: "inspect.h5"
This diff is collapsed.
Click to expand it.
aggregate_and_plot.py
+
4
−
4
View file @
a7e450aa
...
@@ -31,14 +31,14 @@ def main():
...
@@ -31,14 +31,14 @@ def main():
logging
.
info
(
f
"
Could not find the following input file:
{
line
}
"
)
logging
.
info
(
f
"
Could not find the following input file:
{
line
}
"
)
logging
.
info
(
f
"
Found
{
len
(
h5_paths
)
}
h5 files
"
)
logging
.
info
(
f
"
Found
{
len
(
h5_paths
)
}
h5 files
"
)
h5_output_path
=
workdir
/
"
inspect.h5
"
h5_output_path
=
"
inspect.h5
"
join_inspect_ds
(
h5_paths
,
h5_output_path
)
join_inspect_ds
(
h5_paths
,
h5_output_path
)
plot_paths
=
plot_inspect_ds
(
h5_output_path
,
workdir
,
min_elevation
=
15
)
plot_paths
=
plot_inspect_ds
(
h5_output_path
,
workdir
,
min_elevation
=
15
)
with
open
(
workdir
/
"
outputs.txt
"
,
"
w
"
)
as
file
:
with
open
(
"
outputs.txt
"
,
"
w
"
)
as
file
:
file
.
write
(
str
(
h5_output_path
.
absolute
()
)
+
"
\n
"
)
file
.
write
(
str
(
h5_output_path
)
+
"
\n
"
)
for
file_path
in
plot_paths
:
for
file_path
in
plot_paths
:
path
=
Path
(
file_path
)
.
absolute
()
path
=
Path
(
file_path
)
file
.
write
(
str
(
path
)
+
"
\n
"
)
file
.
write
(
str
(
path
)
+
"
\n
"
)
if
__name__
==
"
__main__
"
:
if
__name__
==
"
__main__
"
:
...
...
This diff is collapsed.
Click to expand it.
aggregate_and_plot.sh
+
1
−
1
View file @
a7e450aa
...
@@ -14,4 +14,4 @@ else
...
@@ -14,4 +14,4 @@ else
fi
fi
export
SINGULARITY_BIND
=
"/project:/project"
export
SINGULARITY_BIND
=
"/project:/project"
export
TOIL_SLURM_ARGS
=
""
export
TOIL_SLURM_ARGS
=
""
toil-cwl-runner
"
${
SCRIPT_DIR
}
/imaging_compress_pipeline.git/aggregate_and_plot.cwl"
--workdir
$SCRIPT_DIR
--logDebug
--singularity
--batchSystem
slurm
--batchLogsDir
./logs
--jobStore
./job_store
toil-cwl-runner
"
${
SCRIPT_DIR
}
/imaging_compress_pipeline.git/aggregate_and_plot.cwl"
--workdir
$SCRIPT_DIR
--outdir
$SCRIPT_DIR
--logDebug
--singularity
--batchSystem
slurm
--batchLogsDir
./logs
--jobStore
./job_store
--clean
always
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