Skip to content
Snippets Groups Projects
Commit 8073319f authored by Dominik Brilhaus's avatar Dominik Brilhaus
Browse files

fix heatmap cwl

parent 910f809e
No related branches found
No related tags found
No related merge requests found
......@@ -3,11 +3,11 @@ import plotly.express as px
import sys
# Read command line arguments
MeasurementTableCSV=sys.argv[0]
FigureFileName=sys.argv[1]
MeasurementTableCSV=sys.argv[1]
FigureFileName=sys.argv[2]
# Read the CSV file
data = pd.read_csv(MeasurementTableCSV, index_col=0)
data = pd.read_csv(MeasurementTableCSV, index_col=0, on_bad_lines='skip')
# Create a heatmap
fig = px.imshow(data,
......@@ -17,5 +17,3 @@ fig = px.imshow(data,
# Save heatmap to file
fig.write_image(FigureFileName + ".svg")
......@@ -2,9 +2,6 @@
cwlVersion: v1.2
class: CommandLineTool
# hints:
# DockerRequirement:
# dockerPull:
requirements:
- class: InitialWorkDirRequirement
listing:
......@@ -13,7 +10,7 @@ requirements:
$include: heatmap.py
- class: NetworkAccess
networkAccess: true
baseCommand: [python, heatmap.py]
baseCommand: [python3, heatmap.py]
inputs:
MeasurementTableCSV:
type: File
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment