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.2.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.2-py3-none-any.whl (7.7 kB view details)

Uploaded Python 3

File details

Details for the file scPN-0.1.2.tar.gz.

File metadata

  • Download URL: scPN-0.1.2.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.2.tar.gz
Algorithm Hash digest
SHA256 8cd41dd191767960265a369f432defdca7d24b42931390e9492c78acf4d53f3f
MD5 dbdc6b12d67fa0e15f88ccdec75dd948
BLAKE2b-256 afc5f283507694242fae4bc20a9feb60045b5a14ff4db75a7511a6a656eb1f08

See more details on using hashes here.

File details

Details for the file scPN-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: scPN-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 7.7 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 b6b72fb67ea5bae183bf6589480306ca8351be6c864ae36c1b3742a8a934cd6a
MD5 ecc9b7d077fe967aee5a27058610c3f7
BLAKE2b-256 b82ae2fc921f7800a4c75ff603c281eadfb9c79ae3efd00df17a0f90f7dd3c58

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