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 ...@@ -3,11 +3,11 @@ import plotly.express as px
import sys import sys
# Read command line arguments # Read command line arguments
MeasurementTableCSV=sys.argv[0] MeasurementTableCSV=sys.argv[1]
FigureFileName=sys.argv[1] FigureFileName=sys.argv[2]
# Read the CSV file # 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 # Create a heatmap
fig = px.imshow(data, fig = px.imshow(data,
...@@ -17,5 +17,3 @@ fig = px.imshow(data, ...@@ -17,5 +17,3 @@ fig = px.imshow(data,
# Save heatmap to file # Save heatmap to file
fig.write_image(FigureFileName + ".svg") fig.write_image(FigureFileName + ".svg")
...@@ -2,9 +2,6 @@ ...@@ -2,9 +2,6 @@
cwlVersion: v1.2 cwlVersion: v1.2
class: CommandLineTool class: CommandLineTool
# hints:
# DockerRequirement:
# dockerPull:
requirements: requirements:
- class: InitialWorkDirRequirement - class: InitialWorkDirRequirement
listing: listing:
...@@ -13,7 +10,7 @@ requirements: ...@@ -13,7 +10,7 @@ requirements:
$include: heatmap.py $include: heatmap.py
- class: NetworkAccess - class: NetworkAccess
networkAccess: true networkAccess: true
baseCommand: [python, heatmap.py] baseCommand: [python3, heatmap.py]
inputs: inputs:
MeasurementTableCSV: MeasurementTableCSV:
type: File 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