Skip to main content

scGPT embedding extension for scDrake

Project description

scDrake's scGPT Extension

This code is fork from scGPT, which is a single-cell GPT model for gene expression data 1. This extension adds embedding calculation support for the scDrake framework2, which is a framework for building and deploying single-cell data analysis. This extension is designed to work with the scDrake framework and trying to provide a set of tools for building and deploying single-cell models.

Installation

Dependencies

  • Python >= 3.8
  • PyTorch >= 2.3.0

install

$ python -m pip install torch scdrakex

install for development

$ python -m pip install -e .

Pretrained scGPT Model

available at scGPT

Usage

from scdrakex.task.rembedding import r_embed_data

# count_matrix: a sparse matrix of shape (n_cells, n_genes)
# genes: a list of gene symbols
# model_dir: the path to the Pretrained scGPT Model directory
# output: ndarray of shape (n_cells, n_embedding)

embeding = r_embed_data(
    count_matrix = count_matrix,
    genes = genes,
    model_dir = "scGPT_human",
)

References

  1. Cui, H., Wang, C., Maan, H. et al. scGPT: toward building a foundation model for single-cell multi-omics using generative AI. Nat Methods 21, 1470–1480 (2024).

  2. Kubovčiak, J., Kolář, M., & Novotný, J. (2023). Scdrake: a reproducible and scalable pipeline for scRNA-seq data analysis. Bioinformatics Advances, 3(1). https://doi.org/10.1093/bioadv/vbad089

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

scdrakex-1.1.5.tar.gz (45.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

scdrakex-1.1.5-py3-none-any.whl (58.6 kB view details)

Uploaded Python 3

File details

Details for the file scdrakex-1.1.5.tar.gz.

File metadata

  • Download URL: scdrakex-1.1.5.tar.gz
  • Upload date:
  • Size: 45.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.12

File hashes

Hashes for scdrakex-1.1.5.tar.gz
Algorithm Hash digest
SHA256 289627d9e9e85186880667e9523fa840a62068986ac339f62b50c31137ceb265
MD5 8b0ef5b4485d7dee40429672a5dea12e
BLAKE2b-256 b538f2a859a7f1773c6b83d975ffe591c63f2262cf3fda89212a826773b038b0

See more details on using hashes here.

File details

Details for the file scdrakex-1.1.5-py3-none-any.whl.

File metadata

  • Download URL: scdrakex-1.1.5-py3-none-any.whl
  • Upload date:
  • Size: 58.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.12

File hashes

Hashes for scdrakex-1.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 43a290d5b3c8fbb753b4c6aeae0279b1a67fa89346fedc586de8767f33d3619f
MD5 a1d6794c282bdc854da6170a2378adab
BLAKE2b-256 788268eb2077415e032865a8108dd45b41159b22ca5e41665e01423154d33372

See more details on using hashes here.

Supported by

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