Skip to main content

A gene clustering model using deep learning

Project description

GeneCluster

GeneCluster, a gene clustering method for Single Cell RNA-seq data.

Requirements

python --- 3.8.10

scanpy --- 1.8.2

umap-learn --- 0.5.3

torch --- 1.8.1

torchvision --- 0.9.1

faiss-gpu --- 1.7.1

Usage

The raw single-cell data in h5 format first goes through DataProcess.py to get the gene-cell in csv format, and the csv format is fed into the model for training.

# Run main.py directly with specified parameters
python main.py --nmb_cluster 20 --batch 128 --epochs 100 \
               --lr 0.01 --data_path normal_data.csv \
               --ckpt_path train_res &

# Alternatively, run the GeneCluster package with parameters
GeneCluster --data_path path/to/dataset.csv --epochs 100 --nmb_cluster 20 --batch 128 --ckpt_path train_res   

or

sh train.sh

Please note that the model outputs gene embeddings extracted by training (features.npy), which can be used to predict gene co-expression relationships and identify gene modules.

Here is an example on pbmc3k.h5ad scRNA-seq data.

Example

from genecluster import main

args = {
    "data_path": "path/to/dataset.csv",
    "epochs": 100,
    "nmb_cluster": 10,
    # other arguments
}

main(args)

Contact

Yuting Bai (yutingya820@163.com)

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

GeneCluster-0.1.0.tar.gz (12.6 kB view details)

Uploaded Source

Built Distribution

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

GeneCluster-0.1.0-py3-none-any.whl (15.4 kB view details)

Uploaded Python 3

File details

Details for the file GeneCluster-0.1.0.tar.gz.

File metadata

  • Download URL: GeneCluster-0.1.0.tar.gz
  • Upload date:
  • Size: 12.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.8.10

File hashes

Hashes for GeneCluster-0.1.0.tar.gz
Algorithm Hash digest
SHA256 c909dfaca47543d75468a67c559c0807b30fc96a311d49ea2e866892c592dce4
MD5 784c6c8d72292f147b7462262131aca4
BLAKE2b-256 a2db13fed6a566021a944da49405c9ec24d78ddf1e5205ac3aa4f195ba1b7a3a

See more details on using hashes here.

File details

Details for the file GeneCluster-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: GeneCluster-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 15.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.8.10

File hashes

Hashes for GeneCluster-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d0bed00b29159fae685d838da839d2107aa796195526b0e155ebe27eee75016e
MD5 42cec096ab950498e33a034d45d73b44
BLAKE2b-256 dab7a4f1097dd26c5a7470d29522e62dee9b6343728458b28e7d7ce75295b2b7

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