Skip to main content

CNVkit

A command-line toolkit and Python library for detecting copy number variations and alterations from targeted DNA sequencing.

Read the full documentation at: http://cnvkit.readthedocs.org

https://travis-ci.org/etal/cnvkit.svg?branch=master

Installation

The script cnvkit.py requires no installation and can be used in-place. Just install the dependencies.

To install the script and Python library (and some associated scripts), use setup.py as usual:

python setup.py build
python setup.py install

Python dependencies

Install these via pip or conda:

On Ubuntu or Debian Linux:

sudo apt-get install python-numpy python-matplotlib python-reportlab python-pip
sudo pip install biopython pysam pyvcf --upgrade

On Mac OS X you may instead find it much easier to install the Anaconda distribution (https://store.continuum.io/cshop/anaconda/ or http://repo.continuum.io/miniconda/), which includes most of the dependencies already:

conda install numpy matplotlib reportlab biopython pysam pyvcf

Otherwise, we recommend using Homebrew (http://brew.sh/) or MacPorts to install an up-to-date Python (e.g. brew install python) and as many of the Python packages as possible (primarily numpy, scipy and matplotlib). Then, proceed with pip:

sudo pip install numpy matplotlib reportlab biopython pysam pyvcf

R dependencies

Copy number segmentation currently depends on R packages.

In CRAN:

  • PSCBS

  • matrixStats (for pruneByHClust in PSCBS)

PSCBS depends on the package DNAcopy which part of Bioconductor, and cannot be installed through CRAN directly. To use it, you must first install Bioconductor, then DNAcopy, then the PSCBS package as shown below.

Within R:

> source("http://bioconductor.org/biocLite.R")
> biocLite("DNAcopy")
> install.packages(c("PSCBS", "matrixStats", "cghFLasso"))

Testing

You can test your installation by running the CNVkit pipeline on the example files in the test/ directory. The pipeline is implemented as a Makefile and can be run with the make command (standard on Unix/Linux/Mac OS X systems):

cd test/
make

If this pipeline completes successfully (it should take less than a minute), you’ve installed CNVkit correctly.

To run the pipeline on additional, larger example file sets (named TR and EX), do this:

make all

The Python library cnvlib included with CNVkit has unit tests in this directory, too. To run the test suite:

python test_cnvlib.py

Citation

We are in the process of publishing a manuscript describing CNVkit. A preprint is available here: http://dx.doi.org/10.1101/010876

If you use this software in a publication, for now, please cite it by this DOI like so:

Eric Talevich, A. Hunter Shain, Boris C. Bastian (2014) CNVkit: Copy number detection and visualization for targeted sequencing using off-target reads. bioRxiv doi: 10.1101/010876

A recent poster presentation is also available on F1000 Posters: http://f1000.com/posters/browse/summary/1096236

Metadata

Release files for CNVkit 0.2.4

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

Source distribution (sdist)

Source distribution for CNVkit 0.2.4
File Size Uploaded
CNVkit-0.2.4.tar.gz 67.9 kB Details

Release files / CNVkit-0.2.4.tar.gz

Download URL CNVkit-0.2.4.tar.gz
Size 67.9 kB
Tags Source
SHA-256 checksum
How to use checksums
46e219c47250f872f5e8a5c811810f22dbb83782482296d9352b014dddc6ec06
BLAKE2b-256 checksum
How to use checksums
5c8b13bb9d9c7aded4fc72ef8826e6a753bf63803abcc780d7ddf472f4e5bfe7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

0.9.12

2 release files

0.9.11

1 release file

0.9.10

2 release files

0.9.9

1 release file

0.9.8

1 release file

0.9.7

1 release file

0.9.6

1 release file

0.9.5

1 release file

0.9.4

1 release file

0.9.3

1 release file

0.9.1

1 release file

0.9.0

1 release file

0.8.5

1 release file

0.8.4

1 release file

0.8.3

1 release file

0.8.2

1 release file

0.8.1

1 release file

0.8.0

1 release file

0.7.11

1 release file

0.7.10

1 release file

0.7.9

1 release file

0.7.8

1 release file

0.7.7

1 release file

0.7.6

1 release file

0.7.5

1 release file

0.7.4

1 release file

0.7.3

1 release file

0.7.2

1 release file

0.7.1

1 release file

0.7.0

1 release file

0.6.1

1 release file

0.6.0

1 release file

0.5.2

1 release file

0.5.1

1 release file

0.5.0

1 release file

0.4.1

1 release file

0.4.0

1 release file

0.3.5

1 release file

0.3.4

1 release file

0.3.3

1 release file

0.3.2

1 release file

0.3.1

1 release file

0.3.0

1 release file

0.2.5

1 release file

This release

0.2.4 This release

1 release file

0.2.3

1 release file

0.2.2

1 release file

0.2.1

1 release file

0.2

1 release file

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