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.5.tar.gz (7.8 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.5-py3-none-any.whl (7.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: scpn-0.1.5.tar.gz
  • Upload date:
  • Size: 7.8 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.5.tar.gz
Algorithm Hash digest
SHA256 0cc5da4d330d60afb0838f0fbbf16a0280f0a93f502ae02c46b7bb7eea0231c2
MD5 26bf3a24af13ecac9659b96da666de11
BLAKE2b-256 b647ae5dbcc1ec4d36a356f4a728722eb35b6757896945be09751554f77962e0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: scpn-0.1.5-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.5-py3-none-any.whl
Algorithm Hash digest
SHA256 246ea3994232d3fb7874ac334107010076963859f9e07eb990eabe66e2faa87a
MD5 b455f10c2f8d27ab1b66d36b55505d70
BLAKE2b-256 5624736dd9f03f45d090fffa56e58de52f0a53b462513c8add7bdc88657c25d4

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