Skip to main content

A comprehensive dimensional reduction framework to recover latent information from data.

Project description

Latest PyPI version License: MIT Documentation Status Twitter https://img.shields.io/github/stars/davisidarta/topometry?style=social

TopOMetry - Topologically Optimized geoMetry

Documentation available at Read The Docs.

A global framework for dimensionality reduction: learning topologic metrics, orthogonal bases and graph layouts

TopOMetry is a high-level python library to explore data topology. It allows learning topological metrics, dimensionality reduced basis and graphs from data, as well to visualize them with different layout optimization algorithms. The main aim is to achieve sequential approximations of the Laplace-Beltrami Operator, a natural way to describe data geometry and its high-dimensional topology.

TopOMetry is designed to handle large-scale data matrices containing extreme topological diversity, such as those generated from single-cell omics, and can be used to perform topology-preserving visualizations.

TopOMetry main class is the TopOGraph object. In a TopOGraph, topological metrics are recovered with diffusion harmonics, fuzzy simplicial sets or Continuous-k-Nearest-Neighbors, and used to obtain topological basis (multiscale Diffusion Maps and/or fuzzy or continuous versions of Laplacian Eigenmaps). On top of these basis, new graphs can be learned using k-nearest-neighbors graphs or with new topological metrics. The learned metrics, basis and graphs are stored as different attributes of the TopOGraph object.

Finally, different graph layout optimization algorithms built-in TopOMetry can be used for visualization:

  • MAP (Manifold Approximation and Projection) - a lighter UMAP with looser assumptions
  • MDE (Minimum Distortion Embedding) - the ultimate swiss-army knife for graph layout optimization
  • tSNE (t-Stochasthic Neighborhood Embedding) - a classic of visualization, with parallelization
  • TriMAP - dimensionality reduction using triplets
  • NCVis (Noise Contrastive Visualization) - for blazing fast performance
  • PaCMAP (Pairwise-controlled Manifold Approximation and Projection) - for balanced visualizations

The following image summarizes the TopOMetry workflow:

TopOMetry in a glance

Contributing

Contributions are very welcome! If you're interested in adding a new feature, just let me know in the Issues section.

License

MIT License

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

topometry-0.1.0.0.tar.gz (6.9 MB view details)

Uploaded Source

Built Distribution

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

topometry-0.1.0.0-py3-none-any.whl (119.3 kB view details)

Uploaded Python 3

File details

Details for the file topometry-0.1.0.0.tar.gz.

File metadata

  • Download URL: topometry-0.1.0.0.tar.gz
  • Upload date:
  • Size: 6.9 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

File hashes

Hashes for topometry-0.1.0.0.tar.gz
Algorithm Hash digest
SHA256 1caf689861f3073cb3d1c5dc2790736df815100e43be9b119f2a2c8af00d2d89
MD5 b6c39acb257edf2540d591b460e1ef7e
BLAKE2b-256 24b7d688440c828ed3de279b54403687d31613a37c8ac0076d786a298dfb39ed

See more details on using hashes here.

File details

Details for the file topometry-0.1.0.0-py3-none-any.whl.

File metadata

  • Download URL: topometry-0.1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 119.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

File hashes

Hashes for topometry-0.1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 50e8a482e5c8a0fe72f5e9988ca6735cc04976001ac20ed55875c23f82c127c7
MD5 a2e407da4db718477ee028a25fdaba0c
BLAKE2b-256 48ff35fe039eaaa6872211b57826c2f531bfac69fad32439e70ecd6696ad9456

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