Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

scdeepinsight-2.3.2.tar.gz (41.3 MB view hashes)

Uploaded Source

Built Distribution

scdeepinsight-2.3.2-py3-none-any.whl (41.4 MB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page