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

Uploaded Python 3

File details

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

File metadata

  • Download URL: scpn-0.1.3.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.3.tar.gz
Algorithm Hash digest
SHA256 7d6fb3435c5a6af94482c2db8d5fb6c558e2a26653d18fa17e9ffbc4c9ce7792
MD5 573e4248270a361ad5f1dcd4d4d2d113
BLAKE2b-256 f6ece8c559a3fb6768d6e000b3f5613e7a2c5f54fe460c9fb98bac3a4cec21df

See more details on using hashes here.

File details

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

File metadata

  • Download URL: scpn-0.1.3-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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 5a76f98171700b6b12e7762996d768e53384ad0a8097b760064b7f2ac3316381
MD5 fed10f23f31c021ea4583251ac634283
BLAKE2b-256 6f6b13e1de65571f47c6ea0cd82f5c276cecda72801dbae9155d4c1113db566f

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