Skip to main content

Identifying multiscale tissue domains for spatial transcriptomic data using persistent homology.

Project description

PHD-MS: Persistent Homology for Domains at Multiple Scales

Multiscale domain identification for spatial transcriptomic data.

Installation

Simply install with pip:

pip install phd_ms

Or install from source by downloading, cd to this directory, using:

pip install .

Usage/Examples

Detailed jupyter notebook tutorials are available in the examples folder. Or simply download the file titled 'point_and_click.py' and run the file to use our clickable graphical interface. When using the point_and_click.py interface, update the directory where your data is stored by changing this line:

DATA = '/home/pbeamer/Documents/graphst/visium_hne_graphst'

Here we'll show a simple example with Visium DLPFC data, using default parameters. First, import necessary components.

import phd-ms
import scanpy

Preprocessing steps here (note that we assume a spatially-aware embedding has already been computed for your data):

INPUT_FILE= '/home/pbeamer/Documents/graphst/adata_151673
phd_ms.tl.preprocess_leiden(INPUT_FILE,output_file=INPUT_FILE)

Compute persistent homology and plot 10 most prominent multiscale domains:

cluster_complex,clusterings= phd_ms.tl.cluster_filtration(adata)
phd_ms.tl.map_multiscale(adata.obsm['spatial'],cluster_complex,clusterings,num_domains=10)

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

phd_ms-1.1.1.tar.gz (12.6 kB view details)

Uploaded Source

Built Distribution

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

phd_ms-1.1.1-py3-none-any.whl (13.0 kB view details)

Uploaded Python 3

File details

Details for the file phd_ms-1.1.1.tar.gz.

File metadata

  • Download URL: phd_ms-1.1.1.tar.gz
  • Upload date:
  • Size: 12.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for phd_ms-1.1.1.tar.gz
Algorithm Hash digest
SHA256 fd09ee96e541d920832d58f1537e5eeb3ec4ff5a5f99a85102b78bcab70eda54
MD5 bf3acd35fd15b0de504f2e4d70ded296
BLAKE2b-256 99112311649110c724686874c9bbbad5056ca8e4d9d0f62e1fdac3e2f1c4022d

See more details on using hashes here.

File details

Details for the file phd_ms-1.1.1-py3-none-any.whl.

File metadata

  • Download URL: phd_ms-1.1.1-py3-none-any.whl
  • Upload date:
  • Size: 13.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for phd_ms-1.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 0b7f5b5aab150369fb6001634df9ca36e861323f6c8fb321ea910b708303a689
MD5 4a3298e4e83b3f593bb03ffa444ec517
BLAKE2b-256 c3bf01ac1e9ee54c2fb2fd5320931ad2370c10cf18574bd4d63706455e8d6169

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