cell2sentence: create cell sentences from sequencing data
Project description
cell2sentence
Reframing cells as sentences of genes, ordered by expression. Please read the manuscript on bioRxiv for methodological details and examples.
(https://www.biorxiv.org/content/10.1101/2022.09.18.508438)
Stable Setup
Install cell2sentence from PyPI with
pip install cell2sentence
Convert Anndata Object to Cell Sentences
After your data is loaded into a standard AnnData adata object, you may
create a cell2sentence object with:
import cell2sentence as cs
csdata = cs.transforms.csdata_from_adata(adata)
and generate a list of cell sentences with:
sentences = csdata.create_sentence_lists()
A tutorial script showing how to use pretrained word vectors to analyze
the pbmc3k dataset used by Seurat and scanpy in their guided clustering
tutorials is available at
tutorials/pbmc3k_cell_sentences.py
Development Setup
Create a conda environment using python3 using
anaconda with:
conda create -n cell2sentence python=3.8
and activate the environment with
conda activate cell2sentence
finally, you can install the latest development version of cell2sentence by
running
make install
which simply uses pip -e.
Loading Data
All data used in the bioRxiv manuscript are publicly available, and details
are outlined in the DATA.md file in this repository.
Project details
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file cell2sentence-0.0.1.tar.gz.
File metadata
- Download URL: cell2sentence-0.0.1.tar.gz
- Upload date:
- Size: 14.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9f836700aa7c6afaaaf45cdb5dcb52ad15d5178f443a7f7b3247f9bc4bfc3708
|
|
| MD5 |
78bce210dd4eea7410b2e07634da1438
|
|
| BLAKE2b-256 |
4a11d1805eb0fcf80e9e8224727e2c4dc4ec36a46168c9bd5169f2762c5c440b
|
File details
Details for the file cell2sentence-0.0.1-py3-none-any.whl.
File metadata
- Download URL: cell2sentence-0.0.1-py3-none-any.whl
- Upload date:
- Size: 15.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f06dcced8ca7dbf47fecbbf751c802d5170f2417a945dfae4d756588a0bbe5f0
|
|
| MD5 |
fe6fb977646797c3f8549f6c9e28e10c
|
|
| BLAKE2b-256 |
ceb34e4f88db0f7c22640de01e9f5ab6886bd0d719f7a6f299aab7dbb28738d6
|