An automatic cell type annotation tool for PBMC scRNA-seq data.
Project description
Additional dependency
Please install pyDeepInsight at the same time. This additional dependency has not been published to PyPI and will not be installed automatically.
python3 -m pip -q install git+https://github.com/alok-ai-lab/pyDeepInsight.git#egg=pyDeepInsight
Introduction of scDeepInsight
scDeepInsight provides pre-trained cell type annotation model for scRNA-seq data. For further illustrations and vignettes, please refer to: scDeepInsight. A sample of how to use this package is also available in tutorial. Users can directly use this tool to annotate PBMC datasets without performing training by themselves. 31 cell types (celltype.l2) including the Doublet can be recognized through this pre-trained model. In future, we will provide more pretrained models for other types of tissues.
Defined functions
- ImageTransform(query_path:str, barcode_path:str, image_path:str)
query_path: The absolute path of the target scRNA-seq dataset (end with .h5ad).
barcode_path: The absolute path where you wish to store the generated barcode file (end with .csv).
image_path: The absolute path where you wish to store the generated image file (end with .npy).
- Annotate (barcode_path:str, image_path:str, batch_size:int = 128)
barcode_path: The absolute path where you have stored the generated barcode file (end with .csv).
image_path: The absolute path where you have stored the generated image file (end with .npy).
batch_size: The batch size you wish to load to the converted image dataset when using the pretrained model for annotation. Default value is 128.
Precautions for GPU users
This package has built-in pretrained model trained by Efficientnet-b3 for annotation. scDeepInsight allows loading the model to GPU or GPU. Specifically, when loading the pretrained model to GPU, please make sure the correct version of PyTorch that matches the CUDA version has been installed previously: PyTorch versions.
scdeepinsight (version 0.3.2): The default PyTorch version assigned in the dependencies of scdeepinsight is: 1.12.0, and the torchvision is 0.13.0, which is compatible with CUDA 10.2, 11.3, 11.6.
scdeepinsight (version 1.3.2): The default PyTorch version assigned in the dependencies of scdeepinsight is: 1.13.0, and the torchvision is 0.14.0, which is compatible with CUDA 11.6, 11.7.
scdeepinsight (version 2.3.2): The default PyTorch version assigned in the dependencies of scdeepinsight is: 2.0.0, and the torchvision is 0.15.0, which is compatible with CUDA 11.7, 11.8.
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
Hashes for scdeepinsight-1.3.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ae262871f24c568924a2a6ec7159643b055f2165a3aa97764a390f80f2f75aef |
|
MD5 | 5ce5e0fb68fe77c41c82fbbde5773eb3 |
|
BLAKE2b-256 | e3a0fa348f149410ec4d87bdf013337d8dff8409164b7fc6326cd9653468a3c9 |