Skip to main content

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 heavliy inspired by InferCNV, but plays nicely with scanpy and is much more scalable.

The main result of infercnv

WARNING:

This package is still experimental. The results have not been validated, except in that they look similar, but not identical, to the results of InferCNV.

We are happy about feedback and welcome contributions!

Getting started

Please refer to the documentation. In particular, the

Installation

You need to have Python 3.10 or newer installed on your system. If you don't have Python installed, we recommend installing Mambaforge.

There are several alternative options to install infercnvpy:

  1. Install the latest release of infercnvpy from PyPI <https://pypi.org/project/infercnvpy/>_:
pip install infercnvpy
  1. Install the latest development version:
pip install git+https://github.com/icbi-lab/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 changelog.

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

n/a

Release files for infercnvpy 0.6.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for infercnvpy 0.6.1
File Size Uploaded
infercnvpy-0.6.1.tar.gz 8.5 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for infercnvpy 0.6.1
File Interpreter ABI Platform
infercnvpy-0.6.1-py3-none-any.whl Python 3 none any Details

Total release size: 12.3 MB

Release files / infercnvpy-0.6.1.tar.gz

Download URL infercnvpy-0.6.1.tar.gz
Size 8.5 MB
Tags Source
SHA-256 checksum
How to use checksums
c0dbfd6af3c11f2a2a92628033dc377ed51ad86950afb05da17c27475d4acff1
BLAKE2b-256 checksum
How to use checksums
185b9475787edad1e9db0c05a86f2d054f66c5cd2f8224e2ad0321e3289ee124
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 1, 2025.

Transparency log

Release files / infercnvpy-0.6.1-py3-none-any.whl

Download URL infercnvpy-0.6.1-py3-none-any.whl
Size 3.8 MB
Tags Python 3
SHA-256 checksum
How to use checksums
42f12f92897f21ff1e09524cf57741807dd60aba4efb8356f4df89db698115d6
BLAKE2b-256 checksum
How to use checksums
c798a7e59473efa091ef812a20470e38350ae6c113bc90a8b80e8c127830bcdb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 1, 2025.

Transparency log

Release history Release notifications | RSS feed

This release

0.6.1 This release

2 release files

0.6.0

2 release files

0.5.0

2 release files

0.4.5

2 release files

0.4.4

2 release files

0.4.3

2 release files

0.4.2

2 release files

0.4.1

2 release files

0.4.0

2 release files

0.3.0

2 release files

0.2.0

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page