Skip to main content

OmicsLab SDK

Python SDK and CLI for the RIVER (OmicsLab) Platform.

  • CLI: omicslab (alias omx) — interact with the platform from your terminal
  • Python SDK: omicslab.Client — integrate programmatically

Installation

pip install omicslab

Or from source:

git clone https://github.com/gianglabs/omicslab-platform
cd omicslab-platform/sdk
pip install -e .

Quick Start

1. Authenticate

Create an API token in the web UI (Settings → API Tokens), then:

omicslab auth login --token omx_abc123...

2. Set your context

# Interactive mode — picks org, workspace, and folder
omicslab use

# Or set explicitly
omicslab use --org-id <org_id> --workspace-id <ws_id> --prefix data/

3. Navigate storage like a filesystem

omicslab ls                          # list files
omicslab cd results/                 # change folder
omicslab pwd                         # show current folder
omicslab upload ./data.csv           # upload a file
omicslab download results/output.txt # download a file
omicslab rm old_file.txt             # delete a file
omicslab mv source.txt dest.txt      # move/rename

4. Launch a job

omicslab jobs launch --workspace <ws_id> --analysis <id> --compute <id> --params '{"threads": 8}'
omicslab jobs list --workspace <ws_id>
omicslab jobs logs <job_id> --workspace <ws_id>

CLI Reference

Command group Description Examples
auth Login/logout omicslab auth login --token ...
token API token management create, list, revoke
orgs Organization CRUD list, create, get, update, delete, members
ws Workspace management list, create, get, update, delete, members
jobs Launch & manage jobs launch, list, get, logs, terminate
analysis Analysis tool catalog list, create, get, update, delete, pin, schema, tags
studio Studio tool catalog list, create, get, update, delete, pin, schema, tags
use Set active context Interactive or --org-id, --workspace-id, --prefix
— File commands ls, cd, pwd, rm, mv, upload, download, env, whoami

Python SDK

from omicslab import Client

client = Client()  # reads OMICSLAB_TOKEN env or config

# List workspaces
workspaces = client.workspaces.list()

# Launch a job
job = client.jobs.launch_analysis(
    workspace_id="...",
    analysis_id="...",
    compute_id="...",
    params={"threads": 8},
)

# Storage operations
files = client.storage.list("workspace_id", prefix="data/")
url = client.storage.get_upload_url("workspace_id", "data/input.fastq")

Environment Variables

Variable Purpose
OMICSLAB_TOKEN API token (overrides config file)
OMICSLAB_BASE_URL API base URL (default: https://platform.omicslab.io/api)

Configuration is stored at ~/.omicslab/config.json and supports multiple named profiles.

Metadata

Release files for omicslab 1.4.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for omicslab 1.4.0
File Size Uploaded
omicslab-1.4.0.tar.gz 97.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for omicslab 1.4.0
File Interpreter ABI Platform
omicslab-1.4.0-py3-none-any.whl Python 3 none any Details

Total release size: 175.9 kB

Release files / omicslab-1.4.0.tar.gz

Download URL omicslab-1.4.0.tar.gz
Size 97.5 kB
Tags Source
SHA-256 checksum
How to use checksums
0c2b67cd97565166563f17b3fe8100f668c16aa35297c73c27a4f049c12ffe35
BLAKE2b-256 checksum
How to use checksums
f0c9cb3d5875e2cd8e6a6113f94d6fbc6c1b165fb8d56c3c17005cc921651c24
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Release files / omicslab-1.4.0-py3-none-any.whl

Download URL omicslab-1.4.0-py3-none-any.whl
Size 78.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fba790441d7a5812fd36111cb7c23d579ec029b69fedadce77ce7b05120ec779
BLAKE2b-256 checksum
How to use checksums
4ca38f40826ea4d44486af1b5524a96270e15b3d17a26ebfea1057df332c4180
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Release history Release notifications | RSS feed

2.1.0

2 release files

2.0.0

2 release files

1.5.0

2 release files

This release

1.4.0 This release

2 release files

1.3.0

2 release files

1.2.0

2 release files

1.1.0

2 release files

1.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page