Quick Start: Run Locally¶
This quick start runs run_together with a local installation of CartLoader, on the same two examples as the Docker quick start.
Use Cases
Use a local installation to follow the latest code on GitHub, to modify CartLoader, or when Docker is not available.
Requirements
CartLoaderand its tools installed and built as described in the Installation Guide, includingbash build.shinsubmodules/.- For the second example: about 10 GB of free disk (a 1.5 GB download plus about 8 GB of outputs); it took about 11 minutes on a 12-core laptop with
--threads 4 -j 4.
Check the Installation¶
Activate the environment you installed CartLoader into, then check that every dependency is found:
1 | |
run_together uses the tools built under submodules/ (punkst, spatula, pmpoint, tippecanoe, pmtiles, geotiff2pmtiles), so you never pass tool paths to it.
After updating CartLoader, reinstall and rebuild
The pipeline expects the Python packages and tool versions pinned by the repository. After git pull, reinstall the Python dependencies and rebuild the submodules; otherwise a step may fail with a missing-package error (for example requires the 'imagecodecs' package), an "unknown option" error, or a usage message:
1 2 3 | |
Example 1: Mouse Hippocampus (Seq-Scope)¶
Input¶
Download the starter dataset, a mouse hippocampus SGE already converted to the FICTURE-compatible transcript format by sge_convert:
1 2 3 4 5 | |
transcripts.unsorted.tsv.gz: transcript-indexed SGE in TSV
1 2 3 4 | |
X: X coordinates in umY: Y coordinates in umgene: gene symbolscount: expression count per pixel per gene
feature.clean.tsv.gz: UMI counts on a per-gene basis in TSV
1 2 3 4 | |
gene: gene symbols
* gene_id: gene IDs
* count: expression count per gene
coordinate_minmax.tsv: X Y min/max coordinates
1 2 3 4 | |
xminxmax: min and max X coordinates in umyminymax: min and max Y coordinates in um
Run¶
1 2 3 4 5 6 7 8 | |
| Option | Meaning |
|---|---|
--platform seqscope |
Use the Seq-Scope platform profile for defaults. |
--in-transcript |
An already-converted transcript TSV, so the SGE conversion step is skipped. |
--out-dir, --id |
Output directory and the sample ID used to name the packaged assets. |
--width, --n-factor |
FICTURE hexagon width (µm) and the number(s) of factors; one model per combination. |
--threads, -j |
Threads per job and number of parallel jobs. |
The deployable result is out/seqscope_hippo/cartl/seqscope_hippo/: a catalog.yaml plus the PMTiles it references. See Outputs for the full layout.
Example 2: Xenium Human Kidney (full pipeline)¶
This example starts from raw Xenium output, so every stage runs: SGE conversion, FICTURE, two cell analyses (CartLoader's own, from the Xenium cell boundaries, and an import of the Xenium Ranger clusters), the DAPI image, and packaging.
Input¶
A human kidney section from GSE264334, repackaged in the standard Xenium output layout and hosted on the AWS Open Data Registry (no AWS account needed):
1 2 3 4 5 6 7 | |
Run¶
1 2 3 4 5 6 7 | |
Without --width/--n-factor, the Xenium profile's defaults apply (12 µm hexagons; 12, 24, and 48 factors). --bin-count 50 groups genes into 50 bins for the point layers instead of the default 500, which makes packaging faster for a quick test. The deployable result is out/gse264334/cartl/gse264334/.
Interrupted or failed run?
Rerun the same command: finished steps are skipped. Add --restart to rebuild everything. See Resume or Restart.
Next Steps¶
- Run your own data: platform tutorials and Specifying Inputs.
- Analyze several samples jointly: Multiple Samples with run_together.
- Publish to S3 and annotate factors with an LLM: Publishing.
- Run the stages one at a time: Step-by-step.