Skip to content

Collections

Listing collections

List all public collections from CELLxGene Discover:

cxg collection list

# Limit the number of results
cxg collection list --limit 10

# As JSON
cxg collection list --output json

# Force-refresh the cache
cxg collection list --refresh

Collection details

Retrieve details for a specific collection using its UUID or numeric index from cxg collection list:

# By UUID
cxg collection view COLLECTION_ID

# By numeric index
cxg collection view 12

# As JSON
cxg collection view COLLECTION_ID --output json

# Force-refresh the cache before lookup
cxg collection view COLLECTION_ID --refresh

# Open this collection on cellxgene.cziscience.com
cxg collection view COLLECTION_ID -w