RepositoryPython
scverse

scverse/infercnvpy

Infer copy number variation (CNV) from scRNA-seq data.

204stars
33forks
2issues
3views

Featured achievements

The project's latest awards

1
TINIX TRENDING·Topic: cnv

#1 Repository of the week

1
TINIX TRENDING·Topic: scverse

#1 Repository of the week

2
TINIX TRENDING·Topic: single-cell

#2 Repository of the week

infercnvpy: Scanpy plugin to infer copy number variation (CNV) from single-cell transcriptomics data

Tests Documentation PyPI

Infercnv is a scalable python library to infer copy number variation (CNV) events from single cell transcriptomics data. It is heavily inspired by InferCNV, but plays nicely with scanpy and is much more scalable.

The main result of infercnv

The results look similar, but not identical, to those of R inferCNV. We are happy about feedback and contributions.

Getting started

Please refer to the documentation. In particular, the

Installation

You need Python 3.13 or newer. There are several options to install infercnvpy:

  1. Install the latest release of infercnvpy from PyPI:
pip install infercnvpy
  1. Install the latest development version:
pip install git+https://github.com/scverse/infercnvpy.git@main

To (optionally) run the copyKAT algorithm, you need a working R installation and the copykat package installed. Usually, if R is in your PATH, rpy2 automatically detects your R installation. If you get an error message while importing infercnvpy, try setting the R_HOME environment variable before importing infercnvpy:

import os

os.environ["R_HOME"] = "/usr/lib/R"
import infercnvpy

Release notes

See the release notes on GitHub.

Contact

For questions and help requests, you can reach out in the scverse discourse. If you found a bug, please use the issue tracker.

Citation

See the citation page of the documentation.

Similar Projects

Discover other similar projects and AI models.

RepositoryPython
scverse/rapids-singlecell

rapids-singlecell: GPU-accelerated framework for scRNA analysis

413
Dec 2, 2026
RepositoryPython
scverse/pertpy

Single-cell perturbation analysis

362
Nov 30, 2026
RepositoryPython
scverse/decoupler

Python package to perform enrichment analysis from omics data.

302
Dec 1, 2026
RepositoryPython
scverse/scanpy

Single-cell analysis in Python. Scales to >100M cells.

2.6k
Nov 30, 2026
RepositoryPython
scverse/scvi-tools

Deep probabilistic analysis of single-cell and spatial omics data

1.7k
Nov 26, 2026
RepositoryPython
omicverse/omicverse

A python library for multi omics included bulk, single cell and spatial RNA-seq analysis.

1.4k
Nov 25, 2026
RepositoryPython
scverse/anndata

Annotated data.

789
Dec 2, 2026
RepositoryPython
cafferychen777/mLLMCelltype

Cell type annotation for single-cell RNA-seq using multi-LLM consensus

663
Nov 9, 2026
RepositoryPython
scverse/squidpy

Spatial Single Cell Analysis in Python

618
Nov 30, 2026