Skip to main content

FineST: Fine-grained Spatial Transcriptomic

Project description

About

FineST (Fine-grained Spatial Transcriptomics), a statistical model and toolbox to identify the super-resolved ligand-receptor interaction with spatial co-expression (i.e., spatial association).

Uniquely, FineST can distinguish co-expressed ligand-receptor pairs (LR pairs) from spatially separating pairs at sub-spot level or single-cell level, and identify the super-resolved interaction.

https://github.com/LingyuLi-math/FineST/blob/main/docs/fig/FineST_framework.png?raw=true

It comprises two main steps:

  1. Fine-grained ligand-receptor pair discovery;

  2. Cell-cell communication pattern classification;

  3. Pathway enrichment analysis.

https://github.com/LingyuLi-math/FineST/blob/main/docs/fig/Downstream.png?raw=true

With the analytical testing method, FineST accurately predicts ST gene expression and outperforms TESLA and iStar at both spot and gene levels in terms of the root mean square error (RMSE) and Pearson correlation coefficient (PCC) between the predicted gene expressions and ground truth.

https://github.com/LingyuLi-math/FineST/blob/main/docs/fig/OtherMethods.png?raw=true

It comprises two main steps:

  1. global selection spatialdm_global to identify significantly interacting LR pairs;

  2. local selection spatialdm_local to identify local spots for each interaction.

Installation

FineST is available through PyPI. To install, type the following command line and add -U for updates:

pip install -U FineST

Alternatively, you can install from this GitHub repository for latest (often development) version by the following command line:

pip install -U git+https://github.com/LingyuLi-math/FineST

Installation time: < 1 min

Alternatively,

$ git clone https://github.com/LingyuLi-math/FineST.git
$ conda create --name FineST python=3.8
$ conda activate FineST
$ cd FineST
$ pip install -r requirements.txt

Typically installation is expected to be completed within a few minutes. Then install pytorch. You may refer to pytorch installation.

$ conda install pytorch=1.7.1 torchvision torchaudio cudatoolkit=11.0 -c pytorch

Once the installation is complete, you can verify the installation using the following command:

python
>>> import torch
>>> print(torch.__version__)
>>> print(torch.cuda.is_available())

Quick example

Using the build-in NPC dataset as an example, the following Python script will predict super-resolution ST gene expression and compute the p-value indicating whether a certain Ligand-Receptor is spatially co-expressed.

Detailed Manual

The full manual is at finest-rtd-tutorial.

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

finest-0.0.2.tar.gz (39.5 kB view details)

Uploaded Source

Built Distribution

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

FineST-0.0.2-py3-none-any.whl (45.7 kB view details)

Uploaded Python 3

File details

Details for the file finest-0.0.2.tar.gz.

File metadata

  • Download URL: finest-0.0.2.tar.gz
  • Upload date:
  • Size: 39.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.8.2

File hashes

Hashes for finest-0.0.2.tar.gz
Algorithm Hash digest
SHA256 8005a08bfd461a3f80032ac1fd9c294183021a10bc74d1250c697e0b6afd05ad
MD5 91a10cbe0eaf0a62ebe2c9ffeb3b5c83
BLAKE2b-256 0801542193cfc6e0a78f155136c400c95e698ed33481f11b399f8a10decb2378

See more details on using hashes here.

File details

Details for the file FineST-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: FineST-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 45.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.8.2

File hashes

Hashes for FineST-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 921a696e34f3e5dd259aa8cf4486dd7cc4cb89a50734b9e2b0ce2e7fb657f0da
MD5 c34fddff71e68ba4c60660d418d22012
BLAKE2b-256 31de4ada45bee657226784e83cd06cefab70647af174114a87a00f46fa7c867a

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