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

remove cwl examples from main

parent 35e050b7
No related branches found
No related tags found
No related merge requests found
Pipeline #5452 passed
MeasurementTableCSV:
class: File
path: ../../assays/SugarMeasurement/dataset/sugar_result.csv
FigureFileName: heatmap
\ No newline at end of file
import pandas as pd
import plotly.express as px
import sys
# Read command line arguments
MeasurementTableCSV=sys.argv[1]
FigureFileName=sys.argv[2]
# Read the CSV file
data = pd.read_csv(MeasurementTableCSV, index_col=0, on_bad_lines='skip')
# 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")
#!/usr/bin/env cwl-runner
cwlVersion: v1.2
class: CommandLineTool
requirements:
- class: InitialWorkDirRequirement
listing:
- entryname: heatmap.py
entry:
$include: heatmap.py
- class: NetworkAccess
networkAccess: true
baseCommand: [python3, heatmap.py]
inputs:
MeasurementTableCSV:
type: File
inputBinding:
position: 1
FigureFileName:
type: string
inputBinding:
position: 2
outputs:
output:
type: File
outputBinding:
glob: "*.svg"
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