Skip to main content
Archived

This project has been archived by its maintainers, and is no longer receiving any updates.

ema-tool

ema-tool is a Python library designed to facilitate the initial comparison of diverse embedding spaces in biomedical data. By incorporating user-defined metadata on the natural grouping of data points, ema-tool enables users to compare global statistics and understand the differences in clustering of natural groupings across different embedding spaces.

Overview

Features

Given a set of samples and metadata, and at least two embedding spaces, the ema-tool provides visualisations to compare the following aspects of the embedding spaces:

  • Unsupervised Clusters: ema-tool provides a simple interface to cluster samples in the embedding space using the KMeans algorithm and compare against user-defined metadata.
  • Dimensionality Reduction: ema-tool allows users to reduce the dimensionality of the embedding space using PCA, t-SNE, or UMAP.
  • Pairwise Distances: ema-tool computes pairwise distances between samples in the embedding space. Different distance metrics are available, including Euclidean, Cosine, and Mahalanobis.

The following figure provides an overview of the ema-tool workflow:

ema-tool

Installation

You can install the ema library through pip, or access examples locally by cloning the github repo.

Installing the ema library

pip install ema-emb

Cloning the ema repo

git clone https://github/pia-francesca/ema

cd ema                         # enter project directory
pip3 install .                 # install dependencies
jupyter lab colab_notebooks    # open notebook examples in jupyter for local exploration

Colab Notebook Example

An example of how to use the ema-tool library is provided in the following colab notebook:

Open In Colab

To allow a flexible use, ema-tool does not include the scripts for generating the embeddings. However, here are some links to external scripts for generating protein embeddings from fasta files using the following models:

Contact

If you have any questions or suggestions, please feel free to reach out to the authors: francesca.risom@hpi.de.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Metadata

Release files for ema-emb 0.0.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ema-emb 0.0.5
File Size Uploaded Provenance Actions
ema_emb-0.0.5.tar.gz 12.9 MB Without provenance Details for ema_emb-0.0.5.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for ema-emb 0.0.5
File Interpreter ABI Platform Actions
ema_emb-0.0.5-py3-none-any.whl Python 3 none any Details for ema_emb-0.0.5-py3-none-any.whl

Total release size: 13.2 MB

Release files / ema_emb-0.0.5.tar.gz

Download URL ema_emb-0.0.5.tar.gz
Size 12.9 MB
Tags Source
SHA-256 checksum
How to use checksums
315679b6246cf78bffbfa792cde4801889c924be568f16ca934a044d8d02b950
BLAKE2b-256 checksum
How to use checksums
d29ac9a8d7df7abb020db8621748e1ed135c7c59ba62aad03397be57bba529f0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-httpx/0.27.0

Release files / ema_emb-0.0.5-py3-none-any.whl

Download URL ema_emb-0.0.5-py3-none-any.whl
Size 305.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3d62e243c43cec46d3c784a1992b4e0553a2b1f3260cf0fb57c2fd2d538af96f
BLAKE2b-256 checksum
How to use checksums
dcd77b3ede074e5107cdd298a6cea7d4b60c8549c4729ba3fc61d105e7bf6086
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-httpx/0.27.0

Security for ema-emb 0.0.5

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page