diff --git a/runs/FSharpArcCapsule.yml b/runs/FSharpArcCapsule.yml index 6ecc43b77793c3fdd10abaf2a1f39e3a683a962d..8ee0ab0898e942f7ba1257129c12e41728bb3884 100644 --- a/runs/FSharpArcCapsule.yml +++ b/runs/FSharpArcCapsule.yml @@ -1,3 +1,7 @@ arcDirectory: class: Directory path: ../ +firstArg: + class: File + path: ../assays/measurement1/dataset/table.csv +secondArg: ./result.csv diff --git a/workflows/.gitkeep b/workflows/.gitkeep deleted file mode 100644 index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..0000000000000000000000000000000000000000 diff --git a/workflows/FSharpArcCapsule.cwl b/workflows/FSharpArcCapsule.cwl deleted file mode 100644 index f3aa1c3f95a5738b6ef96e0dfa546651bc739c0c..0000000000000000000000000000000000000000 --- a/workflows/FSharpArcCapsule.cwl +++ /dev/null @@ -1,29 +0,0 @@ -cwlVersion: v1.2 -class: CommandLineTool -hints: - DockerRequirement: - dockerImageId: "devcontainer" - dockerFile: {$include: "FSharpArcCapsule/Dockerfile"} -requirements: - - class: InitialWorkDirRequirement - listing: - - entryname: arc - entry: $(inputs.arcDirectory) - writable: true - - class: EnvVarRequirement - envDef: - - envName: DOTNET_NOLOGO - envValue: "true" - - envName: CWL - envValue: "true" - - class: NetworkAccess - networkAccess: true -baseCommand: [dotnet, fsi, "./arc/workflows/FSharpArcCapsule/script.fsx"] -inputs: - arcDirectory: - type: Directory -outputs: - output: - type: File - outputBinding: - glob: "./arc/runs/fsResult1/result.csv" \ No newline at end of file diff --git a/workflows/FSharpArcCapsule/.config/dotnet-tools.json b/workflows/FSharpArcCapsule/.config/dotnet-tools.json deleted file mode 100644 index b0e38abdace3ec27cf077fc88770357028cf3bb6..0000000000000000000000000000000000000000 --- a/workflows/FSharpArcCapsule/.config/dotnet-tools.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "version": 1, - "isRoot": true, - "tools": {} -} \ No newline at end of file diff --git a/workflows/FSharpArcCapsule/.devcontainer/devcontainer.json b/workflows/FSharpArcCapsule/.devcontainer/devcontainer.json deleted file mode 100644 index 71ac9e75d231e62f12ced7a5e95f7316bb345f71..0000000000000000000000000000000000000000 --- a/workflows/FSharpArcCapsule/.devcontainer/devcontainer.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "name": "F#ARC-Capsule", - "dockerFile": "../Dockerfile", - "appPort": [8080], - "extensions": [ - "ionide.ionide-fsharp", - "ms-vscode.csharp", - "editorconfig.editorconfig", - "ionide.ionide-paket", - "ionide.ionide-fake" - ], - "mounts": [ - "source=${localWorkspaceFolder}/../../,target=/arc,type=bind,consistency=cached" - ] -} \ No newline at end of file diff --git a/workflows/FSharpArcCapsule/.devcontainer/settings.vscode.json b/workflows/FSharpArcCapsule/.devcontainer/settings.vscode.json deleted file mode 100644 index 5b238faefffe25e67dc04d1001fa101f2e7f55d1..0000000000000000000000000000000000000000 --- a/workflows/FSharpArcCapsule/.devcontainer/settings.vscode.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "FSharp.fsacRuntime":"netcore" -} \ No newline at end of file diff --git a/workflows/FSharpArcCapsule/Dockerfile b/workflows/FSharpArcCapsule/Dockerfile deleted file mode 100644 index 982b4cd63f891c635c7e9be78e8e0c6462935e9c..0000000000000000000000000000000000000000 --- a/workflows/FSharpArcCapsule/Dockerfile +++ /dev/null @@ -1,10 +0,0 @@ -#FROM rocker/r-ver:3.4.4 -FROM mcr.microsoft.com/dotnet/sdk:6.0 -#FROM r-base -# Copy endpoint specific user settings into container to specify -# .NET Core should be used as the runtime. -COPY *.devcontainer/settings.vscode.json /root/.vscode-remote/data/Machine/settings.json - -# Install git, process tools -RUN apt-get update && apt-get -y install git procps - diff --git a/workflows/FSharpArcCapsule/script.fsx b/workflows/FSharpArcCapsule/script.fsx deleted file mode 100644 index 155693f823fcdcccff9a5ac13dca26566792945d..0000000000000000000000000000000000000000 --- a/workflows/FSharpArcCapsule/script.fsx +++ /dev/null @@ -1,20 +0,0 @@ -#r "nuget: FSharp.Data, 5.0.2" - -open FSharp.Data -open System.IO - -printfn "%A" (System.IO.Directory.GetCurrentDirectory()) - -let data = - CsvFile - .Load(Path.Combine(System.IO.Directory.GetCurrentDirectory(),"./arc/assays/measurement1/dataset/table.csv")) - .Cache() - -let r = - [ - yield "Sum_1-2" - for row in data.Rows do - yield sprintf "%f" ((row.["value_1"].AsFloat()) + (row.["value_2"].AsFloat())) - ] - -System.IO.File.WriteAllLines("./arc/runs/fsResult1/result.csv",r) \ No newline at end of file