Platform: Generic (--platform generic)¶
Built-in profile (assets/run_together_profiles/generic.json) for spatial data from any source that can be expressed as a transcript table: one row per molecule (or per spatial bin and gene) with X, Y, gene, and optionally a count and a cell id. Use it for platforms without a dedicated profile, or for data you have already converted yourself.
A sample's transcript comes in one of two forms:
- Already ingested — a TSV in CartLoader's transcript layout; ingest is skipped.
- Raw — a CSV/TSV converted by
sge_convert --platform genericat ingest.
Expected inputs¶
| Role | Auto-detected under --in-dir |
CLI flag / column | Format |
|---|---|---|---|
| Transcript (already ingested) | transcripts.tsv.gz |
--in-transcript / transcript (tsv) |
Tab-separated with a header row X Y gene count, optionally a fifth cell_id column; coordinates in µm. Ingest filters, --jitter-xy and --units-per-um do not apply to it. |
| Transcript (raw) | — | --raw-transcript / raw_transcript |
Defaults: tab-separated, columns X, Y, gene, no count column (each row counts 1), coordinates in µm. Override with --colname-transcript-x/-y/-feature/-count, --units-per-um, and ingest.extra_flags (e.g. ["--csv-delim ,"] for a comma-separated file). A .parquet is converted to .csv.gz first. |
| Cell centroids | cells.csv.gz |
--in-cell-xy / xy (cell_xy) |
Columns X, Y, and a cell id (--colname-cell or --colname-xy-cell, else cell_id). |
| Cell boundaries | cell_boundaries.csv.gz |
--in-cell-boundary / boundaries |
Comma-separated; the first three columns are cell_id, vertex_x, vertex_y (µm), vertices grouped by cell. Used to render cell polygons. |
| Cell-feature MEX | — | mex (mex_dir) or mex_bcd / mex_ftr / mex_mtx; or cellxgene (cell_by_gene, --in-cellxgene), converted to a MEX at ingest for a raw-transcript sample |
Barcodes are the cell ids. |
Only a transcript is required. With --in-dir, a directory without transcripts.tsv.gz has no transcript source and the run stops; give the file with --in-transcript or --raw-transcript instead.
Defaults: FICTURE width=12, n_factor=12,24,48, single-molecule mode; packaging with --use-pmpoint --bin-count 500; no images (attach them with --image / --images).
Cell-level analysis¶
The cartloader cell analysis is selected explicitly, for all samples of a run at once:
| Cell-count source | How to turn it on |
|---|---|
A cell_id column in the transcript (column 5) |
--colname-cell <name> (or top-level colname_cell in --config). The column is read by position; the name is also the default cell-id column of the xy file. For a raw transcript, also pass --colname-transcript-cell <raw column> so ingest carries that column to position 5. |
| A MEX in every sample | Provide mex (or cellxgene) for each sample; no flag needed. |
Giving both is an error; with neither, cell analysis is skipped and the run is pixel-level (FICTURE → packaging). When present, xy and boundaries are added to the decode (cell centroids, polygons). --colname-boundary-* has no effect on this platform.
1. Single sample (direct CLI)¶
A directory holding the already-ingested files under their standard names:
1 2 3 4 | |
1 2 3 | |
A raw comma-separated file with its own column names:
1 2 3 4 5 | |
1 | |
As on every platform, a lone --out-dir sample is rep1 unless --id is given, and its packaged directory is OUT/cartl/<OUT basename>-rep1/.
2. Multi-sample (sample sheet)¶
One joint FICTURE model across samples sharing --out-dir. Here every sample has a cell-feature MEX, so the cell analysis is MEX-based:
1 2 3 | |
1 2 | |
3. Full config (JSON)¶
1 2 3 4 5 6 7 8 9 10 | |
1 | |
Notes¶
- A different
sge_convertpreset. To read a raw file with another platform'ssge_convertpreset (e.g.pixel_seq,nova_st), setingest.sge_platformin a--configor a--platform-jsonfile; see Supported Platforms → Custom profiles. - Coordinates must be in µm after ingest. Boundary and centroid files are never rescaled.
See also¶
- Specifying Inputs · Image Modalities · Overview
sge_convert— thegenericCSV/TSV ingest options.- Unsupported platform?