From c73047aa8ff5c51e2dff4139c51b4712411af892 Mon Sep 17 00:00:00 2001 From: Dominik Brilhaus <brilhaus@nfdi4plants.org> Date: Thu, 14 Nov 2024 11:19:33 +0100 Subject: [PATCH] remove cwl examples from main --- runs/heatmap-run/job.yml | 4 ---- workflows/heatmap/heatmap.py | 19 ------------------- workflows/heatmap/workflow.cwl | 29 ----------------------------- 3 files changed, 52 deletions(-) delete mode 100644 runs/heatmap-run/job.yml delete mode 100644 workflows/heatmap/heatmap.py delete mode 100644 workflows/heatmap/workflow.cwl diff --git a/runs/heatmap-run/job.yml b/runs/heatmap-run/job.yml deleted file mode 100644 index 0117e64..0000000 --- a/runs/heatmap-run/job.yml +++ /dev/null @@ -1,4 +0,0 @@ -MeasurementTableCSV: - class: File - path: ../../assays/SugarMeasurement/dataset/sugar_result.csv -FigureFileName: heatmap \ No newline at end of file diff --git a/workflows/heatmap/heatmap.py b/workflows/heatmap/heatmap.py deleted file mode 100644 index facb405..0000000 --- a/workflows/heatmap/heatmap.py +++ /dev/null @@ -1,19 +0,0 @@ -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") diff --git a/workflows/heatmap/workflow.cwl b/workflows/heatmap/workflow.cwl deleted file mode 100644 index 5ccb946..0000000 --- a/workflows/heatmap/workflow.cwl +++ /dev/null @@ -1,29 +0,0 @@ -#!/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" - -- GitLab