Glass CLI
Search, read and download Glass Bio's hosted, preprocessed single-cell data from a terminal or a coding agent. Noninteractive commands print one JSON envelope by default. Use --humanfor a terminal summary.
Single-cell RNA-seq quickstart for the demo · Markdown install guide for the demo
Install
Requires Python 3.11 or later on Linux or macOS.
curl -fsSL 'https://demo.glass.bio/api/scripts/install-glass.sh' | bash -s -- --api-base 'https://demo.glass.bio/api/v1'Connect an agent
glass auth login
glass auth tokens create --name my-agent --scope read --scope submit
export GLASS_TOKEN=glass_pat_...
glass cli statusTokens carry only the scopes you grant: read, submit (paid jobs) and delete. Give your agent the Glass skill by saving it as glass-toolkit/SKILL.md in its skills directory.
Commands
--output results.json saves the complete JSON envelope and prints a small json_file receipt. Read the saved file for the result. Binary downloads save the artifact itself.
Full CLI reference and migration guide
| Read the Astral manifest | glass astral get --representation manifest --organism human |
| Download Astral expression | glass astral get --organism human --genes IL7R CD3D --output expression.parquet |
| Score an Astral gene set | glass astral score --input score.json |
| Search catalog datasets | glass datasets search --query "lung fibrosis" |
| List clinical filter values | glass datasets values list --field material |
| Rank catalog clusters by genes | glass datasets clusters search --genes-file genes.txt --organism Homo_sapiens |
| Find similar catalog clusters | glass datasets clusters search --similar-to cluster.json --output hits.json |
| Compare a cluster with the atlas | glass datasets clusters compare --from hits.json --rank 1 |
| Prepare a donor cohort | glass cohorts prepare --from hits.json --rank 1 --genes-file gene-ids.txt --atlas-version ATLAS_VERSION --output cohort.json |
| Bundle donor comparison evidence | glass cohorts bundle --from results.json --output evidence.zip |
| List datasets | glass datasets list --all --query lung |
| Show a dataset | glass datasets get DATASET_ID |
| List clusters | glass datasets clusters list DATASET_ID |
| Show a cluster | glass datasets clusters get --from hits.json --rank 1 --include markers |
| Download an H5AD | glass datasets get DATASET_ID --representation h5ad --output data.h5ad --wait |
| Upload an H5AD | glass datasets upload data.h5ad --name sample --reference grch38-gencode-v32 --wait |
| Annotate cell types | glass datasets annotations create DATASET_ID --context "lung, IPF" --wait |
| Subset clusters | glass datasets subset DATASET_ID --cluster 0 --cluster 4 --name t-cells --wait |
| Subset search hits | glass datasets subset --from hits.json --ranks 1,2,5 --name t-cells --wait |
| Merge datasets | glass datasets merge DATASET_A DATASET_B --name combined --wait |
| Find and wait for jobs | glass jobs list |
Commands that take a dataset ID use its latest version unless you pass --version. Run glass COMMAND --help for details. Read atlasVersion from the Astral manifest and use that value for ATLAS_VERSION.