covarying neighborhood analysis
Project description
cna
Covarying neighborhood analysis is a method for finding structure in- and conducting association analysis with multi-sample single-cell datasets. cna
does not require a pre-specified transcriptional structure such as a clustering of the cells in the dataset. It aims instead to flexibly identify differences of all kinds between samples. cna
is fast, does not require parameter tuning, produces measures of statistical significance for its association analyses, and allows for covariate correction.
cna
is built on top of scanpy
and offers a scanpy
-like interface for ease of use.
If you prefer R, there is an R implementation maintained separately by Ilya Korsunsky. (Though the R implementation may occasionally lag behind this implementation as updates are made.)
installation
To use cna
, you can either install it directly from the Python Package Index by running, e.g.,
pip install cna
or if you'd like to manipulate the source code you can clone this repository and add it to your PYTHONPATH
.
demo
Take a look at our tutorial to see how to get started with a small synthetic data set.
talk
You can learn more about cna
by watching our talk at the Broad Institute's Models, Inference, and Algorithms seminar, which is preceded by a primer by Dylan Kotliar on nearest-neighbor graphs.
notices
- January 20, 2022: It has come to our attention that a bug introduced on July 16, 2021 caused
cna
to behave incorrectly for users withanndata
version 0.7.2 or later, possibly resulting in false positive or false negative results. This bug was fixed incna
version 0.1.4. We strongly recommend that any users withanndata
version 0.7.2 or later either re-clone CNA or runpip install --upgrade cna
and re-run all analyses that may have been affected.
citation
If you use cna
, please cite
[Reshef, Rumker], et al., Co-varying neighborhood analysis identifies cell populations associated with phenotypes of interest from single-cell transcriptomics. [...] contributed equally
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file cna-0.1.6.tar.gz
.
File metadata
- Download URL: cna-0.1.6.tar.gz
- Upload date:
- Size: 24.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c5b0bc18e25219bf8b0b58cd55bcdd063d949cdb5c7f8f80ecf650af30a77732 |
|
MD5 | c023a36227074894165d28e528fc2298 |
|
BLAKE2b-256 | 5f8a9dcc5a1212c48c8bca5e44ef40c081355df5a19857fabf39d7f9d119626c |
File details
Details for the file cna-0.1.6-py3-none-any.whl
.
File metadata
- Download URL: cna-0.1.6-py3-none-any.whl
- Upload date:
- Size: 24.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 468f3be40d27a02d4955560eed5fc956765cc7232235ab4fa433260f194c99c4 |
|
MD5 | e136df9f6b485f1097729ca580c4f0e5 |
|
BLAKE2b-256 | ae50992cd38f30a4aa4e9bdb754c342e907e549ee26177fd8288b9eedc77961e |