Copy-number inference (inferCNV)
Infer copy-number variation from single-cell or spatial transcriptomics relative to a normal reference population, with optional identification and scoring of putative tumor clones.
Infer copy-number variation from single-cell or spatial transcriptomics relative to a normal reference population, with optional identification and scoring of putative tumor clones.
Copy-number variation inference
Description
Analysis summary
Infers large-scale copy-number gains and losses from single-cell or spatial transcriptomics by smoothing expression along the genome relative to a normal reference population. Optionally clusters the CNV profiles into putative tumour clones (Leiden) and scores each clone by its CNV magnitude.
Computation
Expression is pivoted into a cell/spot x gene matrix and smoothed along the genome in sliding windows of genes (infercnvpy's implementation of the inferCNV method; window size and step configurable; wider windows suit noisier spatial spots), relative to the y_group categories named as the normal reference. The result is a per-cell/spot CNV profile over genomic bins, signed: positive = inferred gain, negative = inferred loss. Per-gene genomic positions come from the consumer-configured GTF, matched by gene symbol; the analysis hard-fails when fewer than half the genes map, which almost always means the query's gene nomenclature does not match the GTF. A per-category summary is always returned — one row per y_group category with its size and overall CNV magnitude plus the signed mean CNV per chromosome, giving an at-a-glance view of which categories look CNV-altered and on which chromosomes. When clustering is enabled, the CNV profiles are additionally clustered into putative clones (PCA, neighbours, Leiden at a configurable resolution — higher gives more, smaller clones) and each clone is scored by its mean |CNV|, constant within a clone: every cell/spot is annotated with its clone and clone score, a per-clone summary is returned (size, score, the fraction of the clone coming from the reference categories, and the clone's composition per category), and the high-score clones are the putative tumour clones.
When to use
Use for copy-number questions on transcriptomics: whether tumor cells/spots carry CNV gains or losses and on which chromosomes, and — with clustering — to call putative tumour clones and rank them by CNV score. For measured DNA-level copy number or mutations, use the genomic-alterations analyses (oncoprint, mutation frequency) or WES-based features instead.
Caveats
The CNV is an inference from expression smoothed over gene windows — not a DNA measurement; bands suggest gains and losses but do not replace sequencing-based copy-number calling. The reference choice drives everything: whatever the reference categories are defines 'normal', so a contaminated reference flattens the contrasts. The scatter's UMAP positions are a 2-D rendering of the CNV profiles: clusters and scores are computed on the full dataset, only the displayed positions are subsampled on very large data.
inferCNV — the original method inferring copy-number variation from transcriptomics (Broad Institute): code https://github.com/broadinstitute/inferCNV/ and wiki https://github.com/broadinstitute/inferCNV/wiki. infercnvpy — its Python implementation, used by this analysis: https://infercnvpy.readthedocs.io/en/latest/infercnv.html.
Example questions
Input columns
Visualizations
genomic_mapHow to read: Rows are cells/spots grouped by reference and split into per-group facet panels; columns are genomic bins placed along a genome axis. Red = inferred gain, blue = inferred loss. The rows' grouping, subdivision, order and annotation strip are display params (facet_row / split_within / order_rows_by / color_rows_by); reference levels are always left whole when subdividing. The view opens as a one-row-per-cell heatmap or a butterfly view (cells stacked by CNV level, one bar per bin), switchable in the plot. Very large results are display-subsampled, stratified per category with a per-group floor — the result table keeps every row. The native engine is ECharts; under Plotly the same map is drawn as a chromosome-faceted heatmap, honouring only the category facet.scatterHow to read: A 2-D UMAP of the CNV profiles, computed on demand at render time rather than stored in the result, coloured by the clone label or by the y_group category (cell type for single-cell, tumor/normal for spatial) — switch the colouring by re-rendering with a different color_by. Points of the same clone share a colour; clusters of high-score clone points are the putative tumour clones. Requires the analysis to have run with clustering enabled; on very large data the displayed points are subsampled, stratified per clone so every clone keeps points — clone labels and scores are always computed on the full dataset.
Example analysis 1
Name — Inferred Copy-Number Variation in Spatial Spots (Mesothelioma, tumor vs normal by deconvolution, 2 oldest patients)
Analysis parameters
Visualization — genomic_map

Output table
Example analysis 2
Name — InferCNV clones (Leiden) UMAP coloured by clone in Single Cells (Bladder, 2 oldest patients)
Analysis parameters
Visualization — scatter

Output table
Last updated
Was this helpful?