Xenium Pipeline Add-on Modules¶
Overview¶
CartLoader provides add-on modules to support the Xenium pipeline orchestrator:
load_xenium_rangerscans a 10x Xenium Ranger output directory and writes a JSON manifest of detected assets.
Add-on Modules¶
Introduction¶
load_xenium_ranger scans a 10x Xenium Ranger output directory and writes a JSON manifest of detected assets. The manifest consolidates paths for Spatial Gene Expression (SGE), cell analysis outputs (cells, boundaries, clusters, DE, embeddings), and morphology images (OME‑TIFFs).
Typical next steps use this manifest as input for downstream commands such as run_xenium, sge_convert, import_cell, and import_image.
Requirements¶
- Xenium Ranger output directory (unpacked) containing standard files and subfolders.
- Optional: a writable directory for temporary archive extraction when using
--unzip-dir.
Example Usage¶
1 2 3 4 | |
Actions¶
Detect standard Xenium Ranger assets under --in-dir and build a structured JSON manifest (SGE, CELLS, IMAGES). Paths are resolved from files and supported archives (via --unzip-dir); only present items are included:
- SGE:
- Required:
TRANSCRIPT—transcripts.csv.gzortranscripts.parquet
- Required:
- CELLS:
- Required:
CELL—cells.csv.gzorcells.parquet - Required:
BOUNDARY—cell_boundaries.csv.gz - Optional:
CELL_FEATURE_MEX—cell_feature_matrix/(alsocell_feature_matrix.tar.gz) - Required:
CLUSTER—analysis/clustering/gene_expression_graphclust/clusters.csv(also withinanalysis.tar.gz) - Required:
DE—analysis/diffexp/gene_expression_graphclust/differential_expression.csv(also withinanalysis.tar.gz) - Optional:
PCA_PROJ—analysis/pca/gene_expression_*/projection.csv(also withinanalysis.tar.gz) - Optional:
PCA_VAR—analysis/pca/gene_expression_*/variance.csv(also withinanalysis.tar.gz) - Optional:
UMAP_PROJ—analysis/umap/gene_expression_*/projection.csv(also withinanalysis.tar.gz)
- Required:
- IMAGES (OME‑TIFF, all optional):
DAPI_OME—morphology_focus.ome.tiformorphology_focus/morphology_focus_0000.ome.tifBOUNDARY_OME—morphology_focus/morphology_focus_0001.ome.tifINTERIOR_RNA_OME—morphology_focus/morphology_focus_0002.ome.tifINTERIOR_PROTEIN_OME—morphology_focus/morphology_focus_0003.ome.tifDAPI_MIP_OME—morphology_mip.ome.tif
Note: Exact availability varies by dataset and pipeline options. Missing entries are omitted; zip archives listed above are unpacked or scanned when --unzip-dir is provided.
Parameters¶
--in-dir(str, required): Xenium Ranger output directory to scan.--out-json(str, required): Path to write the generated assets JSON.--unzip-dir(str, optional): Directory to extract archives found under--in-dir(defaults to--in-dir).--overwrite(flag): Overwrite--out-jsonif it already exists.
Output¶
Writes a JSON manifest at --out-json.
Example: includes/xenium_ranger_assets.human_lung_cancer.json
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | |