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 details)

Uploaded Source

Built Distribution

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

Uploaded CPython 3.10 manylinux: glibc 2.34+ x86-64

File details

Details for the file loco_hd-0.1.2.tar.gz.

File metadata

  • Download URL: loco_hd-0.1.2.tar.gz
  • Upload date:
  • Size: 117.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: maturin/0.14.15

File hashes

Hashes for loco_hd-0.1.2.tar.gz
Algorithm Hash digest
SHA256 4c18487dbd08c1ae99da815a4da866331dc61370a177e01740246b4139501958
MD5 6b41b3c9ef9b4dda1c3dbe0306e6c580
BLAKE2b-256 af3ed1cd2cd98e4ca9510f69bea2be74921ad2be2816f51fe7217bf8b230e566

See more details on using hashes here.

File details

Details for the file loco_hd-0.1.2-cp310-cp310-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for loco_hd-0.1.2-cp310-cp310-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 1640df8ac9a3faf6cfbab4a0528d1c3209b9aff38957044bbe98ca7218f66e42
MD5 bef34828c7f58079f888944ee8d4c052
BLAKE2b-256 36cf4f7f25aa604eff71e0fcf5dae3c7ff22930d09aa948d594eba6b5d6b2bb1

See more details on using hashes here.

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