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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file scdeepinsight-2.3.2.tar.gz.

File metadata

  • Download URL: scdeepinsight-2.3.2.tar.gz
  • Upload date:
  • Size: 41.3 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.5.1 CPython/3.9.15 Linux/5.4.0-132-generic

File hashes

Hashes for scdeepinsight-2.3.2.tar.gz
Algorithm Hash digest
SHA256 0bea922b5f0a7ce8126f2a88292a4db555a62998489ab2b1435ef9110347fe32
MD5 0832d71d05a4df8ef847cac709f74d08
BLAKE2b-256 092698c9cd9e4ed4c7533150c91189994fb2a08ee79152f3adc46903a72f3caa

See more details on using hashes here.

File details

Details for the file scdeepinsight-2.3.2-py3-none-any.whl.

File metadata

  • Download URL: scdeepinsight-2.3.2-py3-none-any.whl
  • Upload date:
  • Size: 41.4 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.5.1 CPython/3.9.15 Linux/5.4.0-132-generic

File hashes

Hashes for scdeepinsight-2.3.2-py3-none-any.whl
Algorithm Hash digest
SHA256 3b5784464e84706391563c44fb7a65043306b74e9a0a42dd6fc890ee8c182539
MD5 ca3922c36e9a62d305581b5bda514e0b
BLAKE2b-256 80f4934611e9e88caba410f69929ef5f2f25885f374adf3eb6d0d8d774b11e0f

See more details on using hashes here.

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