Skip to main content

A package for single cell pseudotime

Project description

scPN: Simultaneous Inference of Pseudotime and Gene Interaction Networks

Overview

scPN is a framework that simultaneously infers pseudotime and gene-gene interaction networks from scRNA-seq data. The framework integrates clustering, piecewise linear modeling, and an iterative EM-style algorithm to recover both temporal dynamics and regulatory relationships among genes.

Figure 1. The Framework of scPN

Figure 1

Figure 1. The framework of scPN, which can simultaneously obtain the temporal dynamics and the gene-gene interaction matrix.

  • (a) Raw dataset of gene expression. The single-cell gene expression matrix is typically of size ( T imes N ), where ( T ) represents the number of cells and ( N ) denotes the number of genes. This matrix is often sparse.
  • (b) The preprocessing procedure of scPN. It includes normalization, gene selection, imputation, clustering, piecewise linear network modeling, and initialization of the gene-gene interaction matrix using prior knowledge.
  • (c–d) Constructing individual piecewise networks after clustering. scPN clusters cells using the Leiden algorithm and constructs distinct piecewise gene regulatory networks for each cluster, corresponding to different time intervals.
  • (e) scPN algorithm. The iterative algorithm, similar to the Expectation-Maximization (EM) algorithm, alternates between inferring pseudotime via a TSP-based approach and estimating the interaction matrix using regression.
  • (f) Output of scPN. Outputs include single-cell pseudotime, velocity fields, and a gene-gene interaction matrix. Further downstream analysis can be conducted on the learned regulatory networks.

🔧 Requirements

To use scPN, you need to install the following Python packages:

pip install scanpy scvelo numpy torch matplotlib

🚀 Usage

To run the demo, simply run the cells in Test&Contrast one by one.

Ensure your working directory contains the input data.

📫 Contact

For questions or suggestions, feel free to open an issue or contact the authors.

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

scpn-0.1.4.tar.gz (7.9 kB view details)

Uploaded Source

Built Distribution

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

scpn-0.1.4-py3-none-any.whl (7.8 kB view details)

Uploaded Python 3

File details

Details for the file scpn-0.1.4.tar.gz.

File metadata

  • Download URL: scpn-0.1.4.tar.gz
  • Upload date:
  • Size: 7.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.4

File hashes

Hashes for scpn-0.1.4.tar.gz
Algorithm Hash digest
SHA256 0876c65d8e86d49d8d9a7e707df6c4a0939ec0e53c4255c4def8fd18621417e3
MD5 cfc8668b3d03e20d6bbbe080e08f6f17
BLAKE2b-256 78a4b50ba297c4032d88e173b85110e51ad49fc57c9a7013151fd50002fcfb1f

See more details on using hashes here.

File details

Details for the file scpn-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: scpn-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 7.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.4

File hashes

Hashes for scpn-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 181b307a6c63df5a498744d67b7988207e796dda9435fbfc3ec3e76319b8dbcb
MD5 8dab05c8cfc79f9f5b38cb7be0d3935a
BLAKE2b-256 197aee95de82a258235f18e242f5f7e9f2b61c76d8e3eddfe95af99321e48384

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