Skip to main content

Implementation of the LoCoHD metric for quantitative protein structure and substructure comparison

Project description

Welcome to LoCoHD!

Python Rust Maturin

doi PyPI

logo

LoCoHD (Local Composition Hellinger Distance) is a metric for comparing protein structures. It can be used for one single structure-structure comparison, for the comparison of multiple structures inside ensembles, or for the comparison of structures inside an MD simulation trajectory. It is also a general-purpose metric for labelled point clouds with variable point counts. In contrast to RMSD, the TM-score, lDDT, or GDT_TS, it is based on the measurement of local composition differences, rather than of the Euclidean deviations.

Where can I read about it?

Still unpublished...

How can I install it?

From PyPI

With pip, it is easy to add LoCoHD to your packages:

pip install loco_hd

Building from source

To build LoCoHD from source, first you need to install Rust to your system. You also need Python3, pip, and the package Maturin. Both Rust and Maturin can be installed with the following one-liners:

curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
pip install maturin

Next, clone the repository and enter it:

git clone https://github.com/fazekaszs/loco_hd && cd loco_hd

Run Maturin to install LoCoHD into your active environment:

maturin develop

And you are done!

How can I use it?

LoCoHD was intended to be used within Python scripts, mostly through BioPython as the main .pdb file reader. It is also possible to use it with other protein/molecular structure readers, but the user has to write the appropriate parser that converts the information within the file into the information required for LoCoHD. An example for this can be found here, where the structures come from a molecular dynamics trajectory and parsing is achieved by MDAnalysis.

Detailed description is coming soon...

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

loco_hd-0.1.2.tar.gz (117.0 kB view hashes)

Uploaded Source

Built Distribution

loco_hd-0.1.2-cp310-cp310-manylinux_2_34_x86_64.whl (345.2 kB view hashes)

Uploaded CPython 3.10 manylinux: glibc 2.34+ x86-64

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page