phenoscapR 1.0.0
Cap radius-search neighbour estimates before integer conversion so large valid radii remain usable. Ripley and pair-correlation calculations now reject undefined zero-area planar windows rather than report artificial dispersion; the existing target-filtered bounding-box window convention is documented.
Treat machine-precision Moran permutation ties consistently, preserving two-sided theoretical-expectation centering and the Monte Carlo correction. Numerically constant sampled nulls no longer produce artificial z-scores or scale-dependent tail probabilities.
Preserve extra Seurat coordinate annotations by cell-name mapping while exporting only named x/y to the spatial reduction; refuse conflicting metadata instead of overwriting it. SpatialExperiment retains named numeric dimensions across reordered columns and rejects ambiguous names or nonnumeric coordinate annotations explicitly.
Two-dimensional object analyses now project only the named x/y axes. Extra coordinate metadata and column order no longer alter neighbor geometry, weighting, clustering or graph calculations across native and fallback search engines; the original coordinate table remains stored unchanged.
Differential abundance rejects incomplete or dimensioned labels instead of silently excluding unknown phenotypes from denominators. Its declared replication unit remains the sample; descriptive summaries retain unknown categories. Section composition rejects malformed cell/area/flag columns, invalid area divisors and undefined aggregate density areas, and enforces registered subset membership. Missing areas remain unsupported; no imputation is introduced.
Singleton samples no longer contribute zero vectors to neighborhood clustering. Their cells retain NA neighborhood labels and explicit availability records; centers use only defined cell compositions. Empty/all-singleton inputs return zero-row centers without RNG use, and the app reports unavailable compositions explicitly.
Phenotyping requires unique named, finite scalar thresholds. Reject recycled, missing, coerced and duplicate threshold definitions before assigning labels; selected marker columns must be unambiguous. Valid named numeric vectors and the existing empty-threshold behavior remain supported.
Neighborhood and Moran analyses reject malformed sample/phenotype vectors and invalid integer controls before computation or RNG changes. Moran features must be finite real numeric vectors, and inverse-distance weighting explicitly rejects coincident neighbors rather than returning undefined values from infinite weights.
Interaction tables reject missing phenotype labels and malformed coordinates before computing counts or changing RNG state. Previously, missing labels could disappear from observed counts while remaining in frequency denominators. Density and nearest-neighbour tables also reject complex coordinates.
Permutation interaction results no longer report neutral z=0/p=1 when sampled null counts have zero variance but differ from the observation: those undefined normal-approximation statistics are now NA. Matching zero-variance sampled nulls and positive-variance formulas retain their existing behavior.
Interaction calculations now validate nonnegative finite radii before geometry shortcuts and validate permutation counts and signed integer seeds before coercion or RNG changes. At least two permutations are required for the reported variance; analytic methods continue to ignore unused permutation controls.
Interaction scores now preserve complete avoidance as negative infinity when observed counts are zero and expected counts are positive, in both analytic and permutation methods. Present sample identifiers must be complete and nonblank; the optional missing-column single-sample convention is retained. Heatmaps identify infinite scores at colour scale endpoints while retaining the raw values. Permutation calculations now return zero counts for samples with no eligible neighbour edges.
Standalone nearest-neighbour and density tables now require explicit complete sample identifiers and finite coordinates, rejecting malformed columns before any rows can disappear. Empty tables preserve their schema and receive typed empty results.
Patient-level inference rejects matrix and array columns before indexing or coercion, preventing malformed patient identifiers from duplicating observations and malformed endpoints or p-values from being truncated. Ordinary vector inputs retain their existing numerical results.
Contrast and family labels must be nonmissing and nonblank and cannot contain the reserved token
::. This prevents distinct registry pairs from silently sharing a multiple-testing adjustment family.Spatial neighbours exclude the query cell by identity, including with tied coordinates and phenotype filters. Distinct cells at the same coordinates remain neighbours. Targeted nearest-neighbour distances no longer include the query cell itself; a sample with no other target cell returns
NA. Neighbourhood composition, spatial-domain smoothing and the fallback Delaunay graph no longer retain self-neighbours when coordinates coincide.SetPalette(NULL)returns the current palette and leaves it unchanged, as documented. It previously cleared the setting, resetting the palette to"viridis".Tissue maps (
CellMap(),FeaturePlot(),DensityPlot(),SpatialNetworkPlot(),plot_cell_map()andplot_density()) now draw the y axis increasing downward, as in image coordinates (origin at the top left; QuPath, cellspecR), so a map has the orientation of its tissue image. The new argumenty_down = FALSErestores the previous upward axis.Column subsets of classed results (interaction matrices, neighbourhood enrichment, Ripley’s K, pair correlation and differential abundance) print as plain data frames. Previously the summary failed with an error or reported values from columns that were no longer present.
Cell objects require aligned numeric raw and processed measurement matrices, finite numeric coordinates and complete empty-object schemas. Unsupported character measurements can no longer produce lexicographic phenotypes. Empty logical placeholders receive a numeric schema. Header-only imports remain valid, and removing every marker retains cell rows, IDs and coordinates.
Normalisation conditions extreme finite inputs when variance or range arithmetic overflows or loses precision in the subnormal range. Exact patient tests compute an overflowing tie bound without changing its definition; ordinary well-scaled arithmetic and existing missingness rules are retained.
CSV readers bind whole coordinate names and refuse factor-coordinate codes. Declared and reserved identifier columns retain leading zeros, so
001and1remain distinct while measurement columns retain numeric parsing. QuPath retains original Image labels and refuses distinct images that would collapse to one parsed sample identity, including across files.SpatialExperiment and Seurat imports retain available normalized assays and all-missing features, with explicit axis validation. Seurat export refuses marker identifiers that its backend rewrites; SpatialExperiment preserves those names. No normalization method is inferred during conversion.
Figure exports validate distinct destinations and render before replacing files. Reported render or publication failures preserve or restore previous outputs; unsuccessful restoration retains a recoverable backup. Failed graphics-device initialization cannot draw on or close a caller’s device.
The synthetic-data app recovers from empty filters, reports unavailable UMAP and insufficient sample replication explicitly, and keeps tables readable in both themes. Its actual branding requires bslib 0.9.0; descriptive plot alternatives require shiny 1.6.0. These minimum versions are now declared.
Vignette plots have descriptive text alternatives. The documentation site retains scientific plot colours and readable code text in both themes.
The
RunSONG()example runs again (in\donttest{}, only when the optional songR package is installed), and theSetPalette()example restores the previous palette option.
phenoscapR 0.2.0
- Normalisation preserves empty and all-missing markers without warnings. Quantile normalisation assigns a sole observed value 0.5, consistently with a constant marker, instead of producing
NaN. - Resampling functions reject non-numeric observation columns and non-finite draw counts.
PermutationCorrelation()also validates its tolerance and exact-enumeration limit, preventing factor-code analyses, invalid exact p values from negative tolerances, and infinite permutation loops. Pearson permutation correlations are stable for finite observations at very large or small numeric scales. -
RunUMAP()uses one worker thread and base SVD by default;n_threadsandpca_methodcan be changed explicitly. Base SVD avoids an older-R failure in the optional truncated solver during PCA initialisation of disconnected groups. The visualisation vignette also uses a fixed seed. - E. Chteinberg added as an author alongside R. Heller (author and maintainer) and H. Witte (author). All three authors are affiliated with Ulm University. Author names use initials throughout the package metadata, citation, and documentation.
- Patient-level and cell-level analysis exports:
ExactPairedTests()(exact signed-rank test over all sign flips with midranks, exact sign test, direction interval and leave-one-out rows),PairedDifferences(),ContrastPatientEndpoints(),BootstrapMedianInterval(),PermutationCorrelation(),NeighbourTypeCounts()(Delaunay neighbours within a maximum edge length, GEOS or deldir),SummarizeNearestDistances(),SummarizeCellComposition(),ReadCellArrays()and keyed comparisons withCompareTables(),CompareArrays()andSummarizeComparisons(). - Manuscript figures:
ManuscriptStyle(), page composition in millimetres (ComposeFigure(),FigurePanel(),SaveFigure()) and figures rendered from declarative specifications (ReadFigureSpec(),RenderFigure(),WriteFigure()) through registered plot grammars, with plot-data builders for patient-level, matrix, embedding and image panels. - One set of generic plot-data helpers named
PlotData*()(select, reshape, join, bind, recode, summarise, count, rank, compute and write text), withfilterandintoas common argument names, and one template syntax inFormatTemplate(). - Tick placement of common plotting code as
NiceBreaks()(also with intervals that follow the axis length);LegendKeys()gains marker sizes, spacings, column-major filling and diamond and patch keys; figure texts can sit on their baseline; typesetting can be switched off per figure, panel, text or legend, or for single rules; straight quotes stay straight. -
SaveFigure()andWriteFigure()give the same files whatever was drawn before in the session: with ‘ragg’, every PNG is drawn on a new capture device, so rich text is measured afresh for every figure. -
ReadCosMx()matches cells onfovandcell_ID: CosMx numbers cells within each FOV, and cells of later FOVs used to receive the expression of the first.ReadMatrixCoords()takes further id columns incell_id_coland refuses ids that are not unique. -
FindNeighbours(),CellDensity(),nearest_neighbours()andcell_density()return cells in input order; with interleaved samples, values used to be written to the wrong cells. -
BuildExactDelaunayEdges()and the"deldir"engine ofNeighbourTypeCounts()triangulate through the publicdeldir::deldir()instead of deldir’s internal routines, with the same edges. The deldir version pin is gone;backend_contractis no longer needed and is ignored, andmode,initial_madjandmax_retriesno longer change the construction. Frames that need deldir to enlarge its workspace now succeed in every mode; frames of 799,800 or more points are refused. Some degenerate frames that the bounded mode used to triangulate now fail with deldir’s own error (“Bailing out of adjchk.”), for example a centre with 40 points on a circle around it, a regular 150-gon, or 50 collinear points with two points off the line. -
ExactPatientTests()(and soContrastPatientEndpoints()andLeaveOnePatientOut()) computes the observed and the allocated statistics with one formula on centred values and counts differences within the rounding of that arithmetic and of the stored values as ties. p values no longer change when values are rescaled, or shifted while the rounding of the shifted values stays below the spacing of distinct statistics (whole numbers keep their exact p values up to shifts of 1e13). Before, the observed statistic used a different formula and a fixed tolerance, so for values of about 10^3 and above with decimals the observed allocation or its mirror could be missed and p came out too small by 1/allocations, down to 0; such p values now equal exact enumeration. Results for other inputs are unchanged. -
DelaunayNetwork()maps deldir’s points back to cell rows when coordinates repeat; edges used to point to the wrong cells after a duplicate. -
read_spatial()fills a blank QuPathImagevalue with the sample id; the blank used to stay. -
interaction_matrix()counts neighbours in a table withoutsample_idas one sample; it used to return zeros. -
CrossNNDistance()withfromequal totomeasures to the nearest other cell; every cell used to find itself at distance 0. -
PhenotypeCells()andphenotype_cells()treat a missing intensity as not positive; such cells used to get labels such as"CD3+/NA+". - Min-max scaling of a constant marker (
NormaliseData(),normalise_markers()) keeps missing values instead of setting them to 0. - The template format
{n|d}writes every digit (100000, not1e+05). Plain placeholders and thecommaformat write whole numbers of magnitude 2^31 or more with every digit instead of"NA"and a warning. - Heatmaps and dot matrices with zero-width colour limits (a constant matrix) take the first colour of the scale instead of missing fills.
- Horizontal
PlotBars()andPlotStackedBars()place the reference label and the top values on the value axis; their coordinates used to be swapped. -
AlterationMatrixData()puts the genes inlastlast also when they are altered in at leastmin_countsamples. -
PlotDataSummarise()with groups returns no rows whenfilterselects nothing, instead of one row with a missing group;PlotDataCount()without groups returnsn = 0instead of failing. -
PlotDataCrossShares()computes totals and shares for an empty-string level, which used to get missing values. - Zero-row inputs give typed results without a phantom group in
ExactPairedTests(),BootstrapMedianInterval(),PermutationCorrelation(),CompareTables()andSummarizeComparisons(); without group columns they give one unavailable overall row. -
CellPositionsFor()with zero references,SchematicShapes()without shapes andPlotDataQuantiles()with zero rows give typed empty tables; they used to fail, warn or returnNULL. -
PermutationCorrelation()refusesmin_nbelow 2; a group with a single pair used to stop with an unhelpful error. -
PairedDifferences()refusesidornamecolumns calledx,yordifference, which used to produce duplicated column names. -
PairedDifferences()gives zero rows for a zero-row table also for pairs withouty, which used to fail. -
FormatTemplate()writes infinite values of plain placeholders as"n.e."instead of failing. -
RenderFigure()passes the colour keyword"group"(for examplelabel_colour = "group") on to the builder instead of rejecting it. -
PlotDataCount()andPlotDataRankRows()accept data.table input. -
PlotDataDominant()gives a group without any share a missing dominant category instead of failing. -
SummarizeGroupedValues()accepts integer value and weight columns, which used to fail when groups gave different column types. -
AssignFixedGrid()corrects a bin index that the rounded division put one bin off, so coordinates on bin edges (for examplex = 10.7with size 7 and offset 3.7) are assigned instead of failing. - Nearest-neighbour distances of a cell without any other cell in its sample are
NAinstead of an error. -
PhenotypeCells()andphenotype_cells()phenotype a single cell on several markers instead of failing. -
QCFilter()removes cells with a missing area when an area threshold is set, asqc_filter()does; it used to fail. -
CellMap(),plot_cell_map()andDimPlot()colour by a numeric column with a continuous scale instead of failing. - Moran’s I and quadrat results without a defined statistic (no neighbours within the radius, a single quadrat) print as not evaluable instead of failing.
-
as_Seurat()makes cell IDs that repeat across samples unique for the Seurat cell names instead of failing. - ‘png’ moves from Suggests to Imports: image layers rasterise through
png::readPNG()when ‘ragg’ is not installed. -
ExpressionClusters(method = "gmm")no longer attaches ‘mclust’ to the search path; the clusters are the same. -
RunUMAP(densmap = TRUE)uses the densMAP approximation ofuwot::umap()(dens_scale = 1); it used to fail because ‘uwot’ has nodensmap(). - Reading
.npzarchives inCompareArrays()andPlotDataFromArrays()needs a ‘cellspecR’ newer than 1.0.0 (withcs_read_npz()); with ‘cellspecR’ 1.0.0 both functions now say so instead of failing on a missing function. -
RunUMAP(),RunTSNE()andRunSONG()withseedrestore the caller’s random number stream on exit instead of leaving it reseeded; the embeddings for a given seed are unchanged. - The help pages, the README and the
RunSONG()error install ‘cellspecR’ and ‘songR’ from the CTTIR R-universe withinstall.packages(). - The Shiny app takes its fonts (Inter, JetBrains Mono), the light border grey and the dark heading and border colours from the CTTIR design tokens.
phenoscapR 0.1.1
Standardize the named v5 package logo across README, documentation pages and available application headers, with matching light and dark artwork.
Prepare a release with explicit patient-level inference, grouped summaries, spatial-table projection, and the existing single-cell spatial analysis APIs.
Document GitHub access for the optional cellspecR and songR packages and correct the SONG installation hint. Conditional dependency checks remain in place; no analytical algorithms or public function signatures change.
Align package and citation metadata, retain release notes in source archives, and distinguish current release information from earlier development labels.
Historical development notes
The entries below retain the earlier development record. Their original version labels are historical project labels, not a sequence of CRAN releases. The package version for this release is 0.1.1.
Original development label: phenoscapR development
Project explicit spatial-table rows and columns while retaining column metadata, repeated-row order and typed empty results without changing inputs.
Apply supplied group thresholds with strict comparisons, validated reference coverage and separate eligibility and missing-value provenance.
Complete scalar observations against an explicit registry and absent-value policy while preserving observed missingness, metadata and row provenance.
Summarize grouped subset counts with exact bounded count totals, propagated missingness and explicit zero-denominator status before fraction division.
Assemble explicitly registered paired summaries with missing-side, count and value availability retained separately from descriptive contrasts.
Normalize backend DLL paths consistently on Windows while preserving strict package-library containment and native provenance checks.
Build complete explicitly ordered Delaunay geometries with caller-pinned native contracts, full-graph validation before eligibility induction, and pure integer workspace preflight. Unsupported backends or geometry fail without fallback.
LeaveOnePatientOut()evaluates explicitly registered patient omissions using the existing exhaustive exact test, retaining incomplete-full and empty-arm outcomes, availability counts and effect-direction diagnostics.Contrast explicit groups within finite-metric overlap strata while retaining policy, evaluable and matched denominators, per-observation weights, stable effective control counts and separately requested quality criteria.
Count supplied undirected edges between explicit disjoint node sets using complete group/frame registries, stable IDs, isolated-node denominators and separate zero-denominator statuses without claiming geometry reconstruction.
Explicit grouped rank correlations retain paired availability counts, ties and constant-value statuses without manufacturing absent groups.
Grouped summaries expose the available weight total as an explicit denominator, retaining unknown and observed-zero weight totals separately.
Add explicit grouped continuous summaries with separate value/weight availability and caller-declared missingness and minimum-count policies.
Add keyed fixed-grid annotation summaries with explicit unknown category and indicator counts, preserving sample boundaries and incomplete fractions.
Add explicit physical fixed-grid membership with sample/frame validation, deterministic keys, and fail-closed numerical containment checks.
ExactPatientTests()enumerates declared independent-patient contrasts with complete-patient missingness and explicit allocation resolution.AdjustPatientFamilies()retains unavailable hypotheses and reports both finite-only and declared-family BH/BY adjustments. Existing differential abundance methods are unchanged.FromCellspec()preserves canonical feature dictionaries, missing features, cell keys, physical coordinates and original-import provenance. Independent images become separate spatial samples even when biological sample IDs match.Delaunay networks now triangulate each sample independently and preserve full-object row indices. Missing sample IDs and groups with fewer than three cells fail explicitly instead of allowing cross-sample edges.
Cell subsetting clears cached spatial results and neighbour distance/density columns, preventing stale edges and summaries after filtering or reordering. Cluster, neighbourhood and domain labels remain frozen annotations from the original fit for plotting; recompute them to describe the new neighbourhoods. Marker-only subsetting retains spatial results.
Differential abundance rejects missing/empty conditions or sample IDs and conflicting conditions within a sample before aggregating proportions.
Original development label: phenoscapR 2.1.0
- Added an interactive Shiny app, styled 1:1 to the Hugo Coder theme via
bslib/ Bootstrap 5 and a_brand.yml, launched withrun_app(). It covers the core workflow, spatial statistics, cellular neighbourhoods, spatial domains, dimensionality reductions, and differential abundance, with a light/dark colour-mode toggle. The Shiny stack is optional (Suggests), so the core package stays lightweight;run_app()reports any missing app packages. - The app ships in
inst/appas composable Shiny modules over the package’s exported functions, with ashinytest2smoke test (light and dark). - H. Witte is credited as co-author throughout (README, citation, site).
Original development label: phenoscapR 2.0.0
Major feature release: higher-order spatial structure, unsupervised phenotyping, differential testing, platform readers, and ecosystem interop.
-
Cellular neighbourhoods / niches (
CellularNeighbourhoods()): cluster cells by the phenotype composition of their local neighbourhood. -
Spatial domains (
SpatialDomains()): partition tissue into regions of coherent, spatially smoothed expression. -
Unsupervised phenotyping:
ExpressionClusters()gains a Gaussian mixture-model option (method = "gmm", via mclust), andAnnotateClusters()names clusters by their most enriched markers. -
Differential abundance (
DifferentialAbundance()): per-sample phenotype proportions compared across conditions (Wilcoxon / t / Kruskal-Wallis), with BH-adjusted p-values. -
Platform readers:
ReadMatrixCoords()for the general expression-plus- coordinates layout, withReadXenium(),ReadCosMx(), andReadMERSCOPE()presetting each vendor’s cell-level column names. -
Ecosystem interop:
as_Seurat(),as_SpatialExperiment(), andas_SpatialCellData()convert to and from Seurat / SpatialExperiment.
Original development label: phenoscapR 1.2.0
Deeper, more rigorous statistics.
-
RipleysK()gains a"translation"edge correction (each pair weighted by the inverse window/translate overlap) – the rigorous estimator for rectangular windows, alongside the existing"none"and reduced-sample"border". -
MoransI()gains weight schemes (weights = "binary","row"-standardised, or"idw"inverse-distance) and a permutation p-value (n_perm), reported via amethodfield. Non-binary weights use the permutation test automatically. -
InteractionMatrix()gains a permutation null (method = "permutation",n_perm) that shuffles phenotype labels within each sample and addsz_scoreandp_valuecolumns. - PCA now retains variance and loadings:
VarianceExplained()returns the percent variance per component andScreePlot()visualises it. - The translation sweep and Moran weighting are exercised against direct references in the test suite.
Original development label: phenoscapR 1.1.0
API coherence.
- The spatial statistics now return lightweight classed objects (
phenoscapR_ripley,_pcf,_moran,_quadrat,_enrichment,_interaction,_crossnn) that still behave like their underlying data.frame / list / vector, with consistentprintsummaries and ggplot2autoplot()methods for one-line visualisation. - All single-window statistics (
RipleysK,MoransI,QuadratAnalysis,PairCorrelation,NeighbourhoodEnrichment,CrossNNDistance) gain aby_sampleargument: withby_sample = TRUEa multi-sample object is analysed per section and returned as a named list (phenoscapR_by_sample). - Added a project
.lintrconfiguration (the package is lint-clean) and alintGitHub Actions workflow running lintr and goodpractice. - H. Witte added as a package author.
Original development label: phenoscapR 1.0.1
Robustness and scalability hardening.
- The Delaunay fallback (used when
deldiris absent) no longer builds an O(n^2) distance matrix; it now uses the kd-tree k-nearest-neighbour engine. - Ripley’s K and the pair correlation function no longer materialise the full pairwise-distance set. Counting is streamed through the kd-tree in blocks and folded into a difference array over the radius grid — bounded memory, with the search cap seeded from the local density to avoid re-queries.
- Reader /
CreateSpatialObject()robustness: unnamed marker matrices get stable default names and all-NA marker columns are dropped with a warning;ReadSpatial()now shares this handling. Duplicate marker names remain a hard error (renaming them would mask a labelling mistake). - Added large-n and backend-equivalence regression tests.
Original development label: phenoscapR 1.0.0
First stable release. This version consolidates the package onto a single compute engine, hardens the spatial statistics, and ships a reproducible example dataset and comprehensive vignettes.
New features
- Bundled synthetic example dataset
phenoscapR_example(two samples, eight markers, planted spatial niches) used across all examples, tests, and vignettes —data(phenoscapR_example). - Dimensionality reduction:
RunPCA(),RunUMAP(),RunTSNE(),RunSONG()withDimPlot()/EmbeddingPlot()and anEmbeddings()/Reductions()accessor pair. - New Visualisation Gallery vignette demonstrating every plotting function, and a “choosing a spatial statistic” guide in the spatial-analysis vignette.
Correctness and robustness
- Spatial statistics are now sample-aware:
interaction_matrix()and friends never count neighbours across samples, and the single-window statistics (RipleysK(),MoransI(),QuadratAnalysis(),PairCorrelation(),NeighbourhoodEnrichment(),CrossNNDistance()) refuse multi-sample objects with an informative error. -
DelaunayNetwork()builds a real Delaunay triangulation viadeldir(Suggests) instead of an all-pairs placeholder, with amax_edgecap. - Ripley’s K gains a reduced-sample border correction.
- Added input validation and friendly errors throughout (NA coordinates, degenerate samples, missing phenotype/marker columns).
- Fixed the colour palette system: unsupported palette names now fall back to the default instead of erroring; advertised palettes are limited to those the backend actually provides.
Performance
- All neighbour queries route through a shared kd-tree search engine (
RANN, Suggests) with an exact, memory-bounded base-R fallback, replacing the per-function O(n^2) distance matrices. Interaction and enrichment counting are vectorised and the enrichment permutation graph is computed once. Large sections (104–105 cells) that previously needed multi-gigabyte distance matrices now run in seconds.
Original development label: phenoscapR 0.1.0
Fixed selected key names such as
collapse,sepand...in grouped summaries and rank correlations, retaining duplicate-ID validation. Shared key validation now rejects matrix-valued keys across its public consumers.Added
ContrastGroupedRanks()for descriptive grouped Cliff deltas with explicit arm and missingness policies, complete registries and exact available pair counts without allocating cross-pair matrices.Fixed sorting of native-encoded non-ASCII keys in disjoint edge counts, grouped overlap contrasts and exact patient tests while preserving returned keys and numerical results.
Added
CountRadiusSets()for ID-keyed full-frame radius counts of explicit reference sets, with complete query outputs, a required numerical search envelope, and installed backend fingerprints.Initial release.
Read single-cell spatial biology data with
read_spatial().Quality control with
qc_filter().Marker normalisation with
normalise_markers().Cell phenotyping with
phenotype_cells()andsummarise_phenotypes().Spatial analysis:
nearest_neighbours(),cell_density(),interaction_matrix(),spatial_clusters().Visualisation:
plot_cell_map(),plot_density(),plot_heatmap(),plot_interactions().