Glass CLI quickstart for single-cell RNA-seq

Copy this into your agent

Install the Glass CLI using this command:

curl -fsSL https://demo.glass.bio/api/scripts/install-glass.sh | \
  bash -s -- --api-base https://demo.glass.bio/api/v1
export PATH="$HOME/.local/bin:$PATH"

Read https://demo.glass.bio/api/scripts/glass-skill.md for the command guide.

Find public datasets

Find public human lung fibrosis datasets. If sign-in is required, help me sign in with glass auth login --no-browser.

glass datasets search --query "lung fibrosis" --organism Homo_sapiens \
  --limit 10 --output studies.json

Summarize the studies in studies.json.

Find clusters by gene

Find human clusters that match these T-cell marker genes:

glass datasets clusters search --genes CD3D CD3E CD3G TRAC IL7R \
  --organism Homo_sapiens --limit 10 --output hits.json

If the search returns hits, inspect the first cluster:

glass datasets clusters get --from hits.json --rank 1 \
  --include metadata --include markers --output cluster.json

Show me the source study and the cluster’s marker evidence.

Export Astral expression

Export human Astral cluster expression for IL7R and CD3D to Parquet.

glass astral get --organism human --genes IL7R CD3D \
  --output astral-expression.parquet