Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
AthalianaColdStressSugar
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
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
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
Training
AthalianaColdStressSugar
Commits
aff77ff5
Commit
aff77ff5
authored
5 months ago
by
Dominik Brilhaus
Browse files
Options
Downloads
Patches
Plain Diff
add cwl
parent
81ade67a
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
runs/heatmap-run/job.yml
+4
-0
4 additions, 0 deletions
runs/heatmap-run/job.yml
workflows/heatmap/heatmap.py
+21
-0
21 additions, 0 deletions
workflows/heatmap/heatmap.py
workflows/heatmap/workflow.cwl
+32
-0
32 additions, 0 deletions
workflows/heatmap/workflow.cwl
with
57 additions
and
0 deletions
runs/heatmap-run/job.yml
0 → 100644
+
4
−
0
View file @
aff77ff5
MeasurementTableCSV
:
class
:
File
path
:
../../assays/SugarMeasurement/dataset/sugar_result.csv
FigureFileName
:
heatmap
\ No newline at end of file
This diff is collapsed.
Click to expand it.
workflows/heatmap/heatmap.py
0 → 100644
+
21
−
0
View file @
aff77ff5
import
pandas
as
pd
import
plotly.express
as
px
import
sys
# Read command line arguments
MeasurementTableCSV
=
sys
.
argv
[
0
]
FigureFileName
=
sys
.
argv
[
1
]
# Read the CSV file
data
=
pd
.
read_csv
(
MeasurementTableCSV
,
index_col
=
0
)
# Create a heatmap
fig
=
px
.
imshow
(
data
,
labels
=
dict
(
x
=
"
Columns
"
,
y
=
"
Rows
"
,
color
=
"
Value
"
),
x
=
data
.
columns
,
y
=
data
.
index
)
# Save heatmap to file
fig
.
write_image
(
FigureFileName
+
"
.svg
"
)
This diff is collapsed.
Click to expand it.
workflows/heatmap/workflow.cwl
0 → 100644
+
32
−
0
View file @
aff77ff5
#!/usr/bin/env cwl-runner
cwlVersion: v1.2
class: CommandLineTool
# hints:
# DockerRequirement:
# dockerPull:
requirements:
- class: InitialWorkDirRequirement
listing:
- entryname: heatmap.py
entry:
$include: heatmap.py
- class: NetworkAccess
networkAccess: true
baseCommand: [python, heatmap.py]
inputs:
MeasurementTableCSV:
type: File
inputBinding:
position: 1
FigureFileName:
type: string
inputBinding:
position: 2
outputs:
output:
type: File
outputBinding:
glob: "*.svg"
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