Classify scRNA-seq profiling with highly resolved cell cycle phases.
Project description
ccAF: cell cycle ASU-Fred Hutch neural network based scRNA-seq cell cycle classifier
The ability to accurately assign a cell cycle phase based on a transcriptome profile has many potential uses in single cell studies and beyond. We have developed a cell cycle classifier based on a scRNA-seq optimized Neural Network (NN) based machine learning algorithm ACTINN. The ACTINN code was adapted from: https://github.com/mafeiyang/ACTINN
Dependencies
There are four dependencies that must be met for ccAF to classify cell cycle states:
Python dependency installation commands:
NOTE! pip may need to be replaced with pip3 depending upon your setup.
pip3 install numpy scipy scanpy tensorflow
Installation of ccAF classifier
The ccAF classifier can be installed with the following command:
pip install ccAF
Alternatively use the ccAF Docker container
We facilitate the use of ccAF by providing a Docker Hub container cplaisier/ccAF which has all the dependencies and libraries required to run the ccAF classifier. To see how the Docker container is configured please refer to the Dockerfile. Please install Docker and then from the command line run:
docker pull cplaisier/ccaf
Then run the Docker container using the following command (replace with the directory where you have the scRNA-seq data to be classified):
docker run -it -v '<path to scRNA-seq profiles directory>:/files' cplaisier/ccaf
This will start the Docker container in interactive mode and will leave you at a command prompt. You will then want to change directory to where you have your scRNA-seq or transcriptome profiling data.
Running ccAF against your scRNA-seq data
The first step in using ccAF is to import your scRNA-seq profiling data into scanpy. A scanpy data object is the expected input into the ccAF classifier:
import scanpy
import ccAF
# Load WT U5 hNSC data used to train classifier as a loom file
set1_scanpy = sc.read_loom('data/WT.loom')
# Predict cell cycle phase labels
predictedLabels = ccAF.predict_labels(set1_scanpy)
More complete example is available as test.py on the GitHub page.
Contact
For issues or comments please contact: Chris Plaisier
Citation
Neural G0: a quiescent-like state found in neuroepithelial-derived cells and glioma. Samantha A. O'Connor, Heather M. Feldman, Chad M. Toledo, Sonali Arora, Pia Hoellerbauer, Philip Corrin, Lucas Carter, Megan Kufeld, Hamid Bolouri, Ryan Basom, Jeffrey Delrow, Jose L. McFaline-Figueroa, Cole Trapnell, Steven M. Pollard, Anoop Patel, Patrick J. Paddison, Christopher L. Plaisier. bioRxiv 446344; doi: https://doi.org/10.1101/446344
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 ccAF-1.0.1.tar.gz
.
File metadata
- Download URL: ccAF-1.0.1.tar.gz
- Upload date:
- Size: 611.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.6.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 96f068ce9f8adeca390acfdd56acabfd6e7e3a1be125f5fef5c14df0b7b33320 |
|
MD5 | da29ed46a99fc80fb7cab6d524dae1dc |
|
BLAKE2b-256 | a7fff2e13d9bc4fb3ca627ad9f5882a4a56761fa6d970df0fda2a540dfc2d83a |
File details
Details for the file ccAF-1.0.1-py3-none-any.whl
.
File metadata
- Download URL: ccAF-1.0.1-py3-none-any.whl
- Upload date:
- Size: 610.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.6.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 349030aad2a5d26096561b76d4ccc2fdc98b4849f3aceaf0f511ef1db436d29a |
|
MD5 | e3e623dcc4c94a453dc9663b6edadf11 |
|
BLAKE2b-256 | 1681f85b7dc7dad946c773d4681c46a73b1a0b8e1fc2e1e20c7813a80f59d474 |