Skip to main content

scAGDE Python package

Project description

scAGDE

PyPI badge License DOI logo

scAGDE is a Python implementation for a novel single-cell chromatin accessibility model-based deep graph representation learning method that simultaneously learns feature representation and clustering through explicit modeling of single-cell ATAC-seq data generation.

Briefly

Single-cell ATAC-seq technology has significantly advanced our understanding of cellular heterogeneity by enabling the exploration of epigenetic landscapes and regulatory elements at the single-cell level. A major challenge in analyzing high-throughput single-cell ATAC-seq data is its inherently low copy number, leading to data sparsity and high dimensionality, significantly limiting the elucidation and characterization of gene regulatory elements. To address these limitations, we developed scAGDE, a novel single-cell chromatin accessibility model-based deep graph representation learning method that simultaneously learns feature representation and clustering through explicit modeling of single-cell ATAC-seq data generation. scAGDE first leverages a chromatin accessibility-based autoencoder, which is designed to identify key patterns in single-cell ATAC-seq data, eliminate less relevant peaks, and construct a cell graph to elucidate the topological connections among individual cells. After that, scAGDE integrates a Graph Convolutional Network (GCN) as an encoder to extract essential structural information from both the ATAC-seq count matrix and the cell graph, coupled with a Bernoulli-based decoder to characterize the global probabilistic structure of the data. Additionally, the graph embedding process independently generates soft labels that guide self-supervised deep clustering, which is characterized by its iterative refinement of results.

Overview

Overview of the scAGDE framework. (a) A summary graphical illustration of scAGDE workflow. scAGDE takes as input the binary cell-by-peak matrix first into a chromatin accessibility-based autoencoder and then performs the graph embedding learning. (b) The chromatin accessibility-based autoencoder maps data into latent space, where each individual cell connects its nearest cell as neighbours to construct a cell graph. The variation of encoder’s weights can be translated to importance score of peaks for peak selection procedure. (c) The well-prepared cell graph and filtered data are simultaneously handled by a two-layer GCN encoder (i) and mapped into the latent space (ii). On the one hand, the latent embedding serves as input to dual decoders (iii), which include a graph decoder module to reconstruct from embedding, and a Bernoulli-based decoder module to estimate the probability of a peak being accessible, which are estimates of the true chromatin landscape in each cell. On the other hand, the dual clustering optimizations are introduced (iv), where a network of cluster layer, which is initialized by K-means results on the embedding, infers soft clustering label. The target distribution and one-hot pseudo label are sequentially calculated and used for label prediction loss and distribution alignment loss. (d) scAGDE facilitates critical downstream applications of clustering, visualization, imputation, enrichment analysis and discovery of regulators. framework

System Requirements

Hardware requirements

scAGDE package requires only a standard computer with enough RAM to support the in-memory operations.

Software requirements

OS Requirements

This package is supported for Linux. The package has been tested on the following systems:

  • Linux: Ubuntu 18.04

Python Dependencies

scAGDE mainly depends on the Python scientific stack.

numpy
scipy
torch
scikit-learn
pandas
scanpy
anndata

For specific setting, please see requirements.text.

R Dependencies

We need your environment to have R and mclust package installed.

Installation Guide:

You can create an environment to run scAGDE without any problems by following the code below:

conda create -n scagde python=3.9.13
conda activate scagde
pip install torch==2.0.1
pip install numpy==1.23.5
pip install rpy2==3.5.13
pip install scanpy==1.9.3
pip install matplotlib==3.5.0
conda install r-mclust
pip install scAGDE

Usage

We give users some suggestions for running scAGDE in tutorial.ipynb or tutorial.py.

Data Availability

All the simulated and realistic datasets we used in our study can be download in data.

License

This project is covered under the MIT License.

Citation


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

scAGDE-0.0.12.tar.gz (16.7 kB view details)

Uploaded Source

Built Distribution

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

scAGDE-0.0.12-py3-none-any.whl (15.5 kB view details)

Uploaded Python 3

File details

Details for the file scAGDE-0.0.12.tar.gz.

File metadata

  • Download URL: scAGDE-0.0.12.tar.gz
  • Upload date:
  • Size: 16.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.9.13

File hashes

Hashes for scAGDE-0.0.12.tar.gz
Algorithm Hash digest
SHA256 5f1f5be175325c2863597d718f7ba333eee367d7e52df9f8d3034027d979d751
MD5 f142d08f3ddc98f4a05a05ae0ac55532
BLAKE2b-256 acf497e2502b8679de1467522845a8dda6b14de3438f77845d4bf22156797367

See more details on using hashes here.

File details

Details for the file scAGDE-0.0.12-py3-none-any.whl.

File metadata

  • Download URL: scAGDE-0.0.12-py3-none-any.whl
  • Upload date:
  • Size: 15.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.9.13

File hashes

Hashes for scAGDE-0.0.12-py3-none-any.whl
Algorithm Hash digest
SHA256 f18854aafca5427391ed869318c5885bbd45474cb3fa478932e9627405c2f51f
MD5 c6bebfd60e82de7c14b3486b147a1b10
BLAKE2b-256 cbaf46d906b13005f76691397634656e171513e0337533c32b1584831f2d540d

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