API#
Preprocessing#
|
Convert a 10x Xenium SpatialData object's transcripts and table to the troutpy-expected format. |
|
Convert a CosMx multi-FOV SpatialData object into a unified single-coordinate-system object. |
|
Generate a grid of square polygons covering the transcript space. |
|
Aggregate urna transcript counts into a grid of squares. |
|
Compute observed and expected transcript counts, log fold-ratio over baseline, and codeword category per gene for extracellular transcripts. |
|
Identify extracellular RNA (uRNA) transcripts by classifying each transcript based on the specified segmentation method. |
|
Classify transcripts as extracellular (uRNA) via a Bayesian probability from grid-interpolated KDEs. |
Classify transcripts as extracellular (uRNA) from image-staining intensity similarity. |
|
|
Classify transcripts into a hierarchy of intracellular/extracellular categories. |
|
Filter xRNA genes based on quality and significance thresholds, retaining only genes that pass all active criteria. |
|
Assign a per-bin cell type and uRNA probability via SAiNSC segmentation-free analysis. |
Find the optimal bin size for transcript aggregation by maximizing separability between intracellular and extracellular gene signatures. |
|
|
Extract cell morphology metrics from a labels layer and add them to |
|
Processes and formats AnnData and transcripts by loading data, merging cell information,applying spatial filters, and saving the processed data to a dummy output directory. |