Implementation of the LoCoHD metric for quantitative protein structure and substructure comparison
Project description
Welcome to LoCoHD!
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?
The theory behind LoCoHD was published here.
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.
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
Built Distribution
File details
Details for the file loco_hd-0.1.1.tar.gz
.
File metadata
- Download URL: loco_hd-0.1.1.tar.gz
- Upload date:
- Size: 116.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/0.14.15
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7627e7104dc2e27cc371b4b0f1f3bcc3db06782a38e43e730c71ccf87e88cd5e |
|
MD5 | f6c1c1b71f746bf1ec54dfd49638338d |
|
BLAKE2b-256 | dd7add0d8f67816bc297a4855ce6839f276dc44d1199b25c1c1ee89fec726830 |
File details
Details for the file loco_hd-0.1.1-cp310-cp310-manylinux_2_34_x86_64.whl
.
File metadata
- Download URL: loco_hd-0.1.1-cp310-cp310-manylinux_2_34_x86_64.whl
- Upload date:
- Size: 345.1 kB
- Tags: CPython 3.10, manylinux: glibc 2.34+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/0.14.15
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 00c14a54090200944fb07aa6b4881dc729e8ddf0ea28ed2d5cc4f7bedf0dc7d9 |
|
MD5 | c9f5ea1d46c84b44c4728e8722138f8c |
|
BLAKE2b-256 | 18e208761dfd1b34edef0ed4c73c48640ea8ed814584437c04ac7dc45c7f73ab |