_____ _ _ _ _____ _____ _ _ _
/ ___| (_)| | | ||_ _| / __ \| |(_) | |
\ `--. ___ _ | | | | | | _ __ | / \/| | _ ___ _ __ | |_
`--. \ / __|| || |/\| | | | | '_ \ | | | || | / _ \| '_ \ | __|
/\__/ /| (__ | |\ /\ / _| |_| | | | | \__/\| || || __/| | | || |_
\____/ \___||_| \/ \/ \___/|_| |_| \____/|_||_| \___||_| |_| \__|
Client tool for Scientific Workflow Infrastructure (SciWIn)
Documentation: https://fairagro.github.io/m4.4_sciwin_client/
init Initializes project folder structure and repository
create Creates a new CWL File or Workflow
list Lists either all CWL Files or details to a given file [aliases: ls]
remove Removes a CWL File from the workflows Directory [aliases: rm]
connect Connects a workflow node
disconnect Disconnects a workflow node
visualize Visualizes a workflow
install Installs a workflow as submodule [aliases: i]
uninstall Removes an installed workflow
execute Execution of CWL Files locally or on remote servers [aliases: ex]
annotate Annotate CWL files
completions Generate shell completions
help Print this message or the help of the given subcommand(s)
-V, --version Print version
$ s4n create python calculation.py --population population.csv --speakers speakers.csv
📂 The current working directory is /home/ubuntu/sciwin_test
▶️ Executing command: python calculation.py --population population.csv --speakers speakers.csv
Total population: 7694245029
language speakers percentage
0 Bangla 300000000 3.899018
1 Egyptian Arabic 100542400 1.306722
2 English 1132366680 14.717060
3 German 134993040 1.754468
4 Indonesian 198996550 2.586304
5 Japanese 128000000 1.663581
6 Portuguese 475300000 6.177344
7 Punjabi 125000000 1.624591
8 Russian 154000000 2.001496
9 Standard Mandarin 1090951810 14.178803
📄 Created CWL file workflows/calculation/calculation.cwl
$ s4n create python plot.py --results results.csv
📂 The current working directory is /home/ubuntu/sciwin_test
▶️ Executing command: python plot.py --results results.csv
📄 Created CWL file workflows/plot/plot.cwl
📄 Created new Workflow file: workflows/main/main.cwl
1 | + #!/usr/bin/env cwl-runner
$ s4n connect main --from @inputs/speakers --to calculation/speakers
➕ Added step calculation to workflow
➕ Added or updated connection from inputs.speakers to calculation/speakers in workflow
✔️ Updated Workflow workflows/main/main.cwl!
16 | + run: ../calculation/calculation.cwl
$ s4n execute local workflows/main/main.cwl inputs.yml
🚲 Executing Tool "workflows/main/../calculation/calculation.cwl" ...
📁 Created staging directory: "/tmp/.tmpAz2l9s"
⏳ Executing Command: `python workflows/calculation/calculation.py --population /tmp/.tmpAz2l9s/data/population.csv --speakers /tmp/.tmpAz2l9s/data/speakers_revised.csv`
Total population: 7694245029
language speakers percentage
0 Bangla 300000000 3.899018
1 Egyptian Arabic 100542400 1.306722
2 English 1132366680 14.717060
3 German 134993040 1.754468
4 Indonesian 198996550 2.586304
5 Japanese 128000000 1.663581
6 Portuguese 475300000 6.177344
7 Punjabi 125000000 1.624591
8 Russian 154000000 2.001496
9 Standard Mandarin 1090951810 14.178803
📜 Wrote output file: "/tmp/.tmpmzpkus/results.csv"
✔️ Tool "workflows/main/../calculation/calculation.cwl" executed successfully in 623ms!
🚲 Executing Tool "workflows/main/../plot/plot.cwl" ...
📁 Created staging directory: "/tmp/.tmprbR7MR"
⏳ Executing Command: `python workflows/plot/plot.py --results /tmp/.tmprbR7MR/.tmpmzpkus/results.csv`
📜 Wrote output file: "/tmp/.tmpmzpkus/results.svg"
✔️ Tool "workflows/main/../plot/plot.cwl" executed successfully in 2s!
✔️ Workflow "workflows/main/main.cwl" executed successfully in 2s!
"location": "file:///mnt/hello_world/results.svg",
"path": "/mnt/hello_world/results.svg",
"basename": "results.svg",
"checksum": "sha1$8e59fcb5729b9576c7f721ef9f63057b09e738f8",