Single Sample with run_together¶
run_together runs a complete CartoScope pipeline with a single command: SGE conversion → FICTURE → cell analyses → background images → asset packaging → (optional) publishing. It builds one Makefile and runs it, so the pipeline is resumable and parallel out of the box.
This guide processes a public 10x Xenium human lung cancer dataset (a full section, larger than the quick start examples).
The recommended entry point
run_together is the recommended way to run CartLoader on any supported platform, for one sample or many. The individual commands remain available for step-by-step use; the older run_xenium / run_visiumhd orchestrators are legacy. See Which interface should I use?.
Prepare Input¶
Download the Xenium Ranger output from the 10x Genomics Dataset portal and unzip it:
1 2 3 4 5 6 | |
${work_dir}/raw is now the Xenium Ranger output directory. The 10x_xenium profile reads its standard layout automatically, so you do not list these files yourself:
1 2 3 4 5 6 | |
See the Xenium platform page for every path the profile looks for.
Define ID and Parameters¶
1 2 3 4 | |
Run the Pipeline¶
Requires a local installation, including the tools built by submodules/build.sh; run_together finds them there, so it takes no tool-path options.
1 2 3 4 5 6 7 8 | |
Uses the prebuilt image, which includes every tool (see Quick Start with Docker).
1 2 3 4 5 6 7 8 9 10 11 | |
With this profile, one run produces: the converted SGE; one FICTURE model per --width × --n-factor combination with pixel-level decoding; two cell analyses (cartloader, a FICTURE analysis of the segmented cells, and xeniumranger, an import of the Xenium Ranger clusters); the four morphology images; and the packaged PMTiles.
Preview before running
Add --dry-run to write the Makefile and print every command (make -n) without executing. Inspect ${work_dir}/output/${DATA_ID}/run_together.mk and run_together.resolved.json to see exactly what will run.
Projection-only Mode¶
To reuse models from a previous FICTURE run instead of training new ones, point --project-models at that run's FICTURE directory. run_together reads its ficture.params.json and re-projects every model it lists; no LDA training runs.
1 2 3 | |
Output¶
1 2 3 4 5 6 7 | |
The packaged directory is named <out-dir name>-<id>, shortened to <id> when the two are equal, as in the command above. Without --id, the sample ID is rep1, so the directory would be cartl/xenium-v1-humanlung-cancer-ffpe-rep1/.
The catalog.yaml plus its PMTiles is the deployable CartoScope asset. A joint multi-sample run produces one such directory per sample plus a cartl/multi-catalog.yaml; see Multiple Samples with run_together. For per-stage output details, see sge_convert, run_ficture2_multi, and run_cartload2.
Resume, Re-run, and Publish¶
- Resume after a failure: re-run the same command (or
make -f .../run_together.mk -j N). Completed stages are skipped via their flag files. - Run part of the pipeline:
--only ingest,fictureor--skip images. Excluded upstream stages are assumed already done. - Force a clean rebuild:
--restart(make -B). - Publish (opt-in): AI annotation and S3 upload are separate flags:
--annoor--anno-deep(with--tissue/--organism) and--s3-upload. See Publishing.
Next Steps¶
- Process several sections under one joint FICTURE model: Multiple Samples with run_together.
- Every option and configuration key:
run_togetherreference. - The exact inputs each platform expects: Platforms.