Running Tools
This page explains how to run analyses with the OmicsBox Engine: how to inspect a tool, provide its inputs, control where results go and reconnect to long-running cloud jobs. For the flags shared by every tool, see Global Options. For the utility commands, see Built-in Commands.
Inspect, compose, run
Running a tool always follows the same loop:
omicsbox describe <tool> # 1. see the exact inputs, parameters and defaults
omicsbox <tool> [options] # 2. run it
describe is generated in real time from the tool, so it is a reliable source for a tool's command line. Flags, parameters and the values offered by cloud-backed options, such as --database, can change between versions and between accounts.
The plain describe <tool> output lists the inputs, parameters, outputs and parameter relationships. Add --output-format json for the same information as JSON, or --full for the complete specification in either format: types, defaults, numeric ranges, accepted values and argument groups.
omicsbox describe kraken2 # human-readable
omicsbox describe kraken2 --output-format json # machine-readable
omicsbox describe kraken2 --output-format json --full # complete machine-readable spec
To see the accepted values of a single option, use --param:
omicsbox describe kraken2 --param --database
describe --save-template <path> writes a YAML skeleton that you can fill in and pass back with --config. See Configuration files.
Providing inputs
Every input flag is prefixed --i-. An input value can be a local file, a file already in your OmicsCloud storage or an explicit URI. The Engine detects which one you gave:
| Form | Example | Resolves to |
|---|---|---|
| Local file | --i-input-files ./reads.fastq.gz |
a file on your machine, uploaded automatically for cloud runs |
| Cloud path | --i-input-files /cloud/async_inputs/reads.fastq.gz or --i-input-files cloud:async_inputs/reads.fastq.gz |
a file already in your OmicsCloud storage |
| Explicit URI | --i-input-files s3://bucket/identity/reads.fastq.gz |
the exact object referenced by the URI |
| Bare path | --i-input-files async_inputs/reads.fastq.gz |
a local file if it exists, otherwise the matching file in your cloud storage |
Cloud tools read cloud inputs in place, without making a local copy. Tools that run on your machine download them first. For how the CLI shares your cloud storage with OmicsBox Web and the desktop application, see Your cloud storage.
To see what is in your cloud storage, and to get paths you can paste straight into an --i- flag, use:
omicsbox cloud-files # list everything
omicsbox cloud-files async_inputs/fastq # filter by folder
Each line it prints, for example /cloud/async_inputs/fastq/reads.fastq.gz, is a valid input value.
Where results go
There are no --o-* output flags. You choose a destination folder, and the Engine names and places each output automatically:
| Flag | Destination |
|---|---|
--local-folder <path> |
download outputs to this folder on your machine |
--cloud-folder <furi> |
write outputs to this location in the cloud, for example s3://bucket/prefix/ |
You can keep your results locally, in the cloud or in both places. Set --local-folder to download them to your machine, --cloud-folder to write them to the cloud, or both flags to save a copy in each. If you set neither, the run stops and asks for a destination. You can also set a default destination once with config.
Outputs are saved directly in the chosen folder. There is no per-run subfolder. Each file output is named after the output and its file type. When a tool produces a whole folder of files, they are saved in a subfolder named after that output.
Existing files are never overwritten. If a file with the same name is already in the destination folder, the new output gets a numbered name instead. This also keeps runs that share a folder from overwriting each other.
Open the results
Many tools produce .box files: OmicsBox projects, charts and reports. You can:
- open them in the desktop application;
- open them in OmicsBox Web, when they are in your cloud storage, by double-clicking them in the Files page;
- convert charts to PNG, PDF or CSV, and reports to HTML or PDF, with
exportandexport-report.
Other outputs, such as FASTA, BAM or tables, are ordinary files that you can use with any software.
Check a command before running it
Add --validate-only to check a command without running it:
omicsbox kraken2 --i-read-files-single-end reads.fastq.gz --database "…" --local-folder ./out --validate-only
The Engine checks the command line, your subscription, the option values and the inputs, then exits. Nothing is uploaded, submitted or written. This catches most mistakes in seconds. It cannot detect problems that only appear while the job runs in the cloud.
Progress and run IDs
While a tool runs, the Engine prints progress messages, kept separate from the results themselves:
OmicsBox Engine <version>
Resolved command: omicsbox split-fastx --i-input-files-single-end seqs.fasta --split-value-parts 4
Submitting split-fastx...
Run ID: fasta-splitter_20260602_112135_YIMWQG
Status: QUEUED
Status: RUNNING
Output files: part_1.fasta, part_2.fasta
Outputs saved to: ./results/
Resolved command:repeats the full command with the effective value of every flag, including the defaults that were applied, so each run can be reproduced and audited.Run ID:identifies a cloud run. It is the value used bystatus,logsandcancel.
Live cloud log messages are shown on standard error while the job runs. Hide them with --mute, or show more diagnostic detail with --verbose.
Long-running cloud jobs: detach and reconnect
You can detach cloud analyses, so that your terminal returns immediately:
omicsbox kraken2 --i-read-files-single-end reads.fastq.gz --database "…" --detach
This submits the job, prints its Run ID and exits. Reconnect from any shell using that ID:
omicsbox status <runId> # check progress
omicsbox logs <runId> --follow # stream logs
omicsbox status <runId> --download --local-folder ./out # fetch outputs when COMPLETE
omicsbox cancel <runId> # stop the run
Download detached outputs within 7 days
The outputs of a detached run are not downloaded to your machine automatically. They are kept in temporary cloud storage for 7 days. Download them with status <runId> --download before then, or write them straight to permanent storage with --cloud-folder.
--detach applies only to cloud tools. Tools that run on your machine always run to completion in the foreground and ignore it.
Configuration files
Instead of a long command line, you can supply a tool's inputs and parameters from a YAML file:
omicsbox describe kraken2 --save-template ./kraken2.yaml # generate a template
# edit ./kraken2.yaml …
omicsbox kraken2 --config ./kraken2.yaml # run from the file
Values passed on the command line override the file. A template can therefore hold your usual values, while individual runs change specific flags.
This file is different from the CLI configuration in ~/.omicsboxEngine/config.yaml, which sets defaults for the global options. See Global Options.
Automation and pipelines
The Engine is designed to be driven by scripts and workflow managers. For ready-made Nextflow and Snakemake pipelines, see Pipelines.
JSON output. Add --output-format json, or set it once with omicsbox config set output_format JSON. Progress then becomes newline-delimited JSON on standard error, and a single run manifest is printed on standard output when the run succeeds:
{
"runId": "fasta-splitter_20260602_112135_YIMWQG",
"tool": "split-fastx",
"outputLocation": "local",
"outputs": [
{ "key": "output-path", "path": "/abs/results/part_1.fasta" }
],
"exitCode": 0
}
An output entry has a path when it was downloaded locally and a uri when it was written to the cloud. The manifest can also contain warnings, the warnings printed during the run, and message, a closing message from the tool. Both are left out when empty.
Exit codes. Scripts can test the exit code of every command:
| Code | Meaning |
|---|---|
0 |
success |
1 |
error |
2 |
invalid arguments |
3 |
authentication or subscription problem |
4 |
cloud or network problem |
137 |
the process ran out of memory and was stopped by the system |
Cloud-to-cloud chaining. Keep uploaded inputs available for a following step with --keep-inputs-in-cloud, and pass one step's cloud outputs directly as the next step's --i- inputs. This avoids downloading intermediate files.
To generate wrappers from a machine-readable description of any tool, use omicsbox describe <tool> --output-format json --full.