CLI Tool(bioctl)
Bio-OS provides the bioctl command-line tool for communication with the Bio-OS control plane.
Installation
Step1 - Download Bioctl
Download the Bio-OS release package from GitHub (https://github.com/Bio-OS/bioos/releases) and extract it locally.
Step2 - Bioctl Config
Move the bioctl binary to the executable directory, which is typically
/usr/local/binon macOS or Linux.Create a .bioctl folder in the User directory, which on macOS is typically located at
/Users/username.
# Create the ./bioctl directory
mkdir /Users/username/.bioctlIn the .bioctl folder, create a bioctl.yaml file and copy the following code into the YAML file.
client:
serverAddr: xx.xx.xxx.xxx/apiserver
serverName: localhost
insecure: true
username: admin
password: admin
method: http
timeout: 10
```In the bioctl.yaml file, change the
serverAddrIP address (xx.xx.xxx.xxx) to the server address of your deployed Bio-OS.After completing the above steps, you can run
bioctlin the command line and view the help information.
Usage
Bioctl supports two usage modes: interactive and command-line.
Interactive: When you enter certain command groups (e.g.,
bioctl,bioctl workspace,bioctl workflow,bioctl submission, orbioctl datamodel), Bioctl enters interactive mode and displays options to choose from.Command-line: You can also execute commands directly, for example:
to run the command immediately.
Workspace Commands
Import Workspace
workspacexxx.yaml demo
In the YAML file, the path values for datamodel, workflow, and notebook must be specified relative to the location of the YAML file. An example of folder organization is shown below:
|--workspacexxx.yaml
|--data
|--sample.csv
|--sample_sheet.csv
|--workspace_data.csv
|--workflow
|--Cram-to-Bam
|--CramToBam.wdl
|--notebook
|--__dashboard__.ipynb
|--First-Notebooks.ipynb
Create Workspace
Delete Workspace
List Workspace
Workflow Commands
Create workflow
Import workflow
List workflow
Submission Commands
Submit workflow
The following is the JSON format for input and output files
Terminate workflow
Query submission status
Query submission outputs
The output follows this rule: if the value is a string, the content is displayed directly; if it is a file, the corresponding file path is provided.
Datamodel Commands
Last updated