Skip to main content

Python library for finding the optimal transformation(s) that makes two matrices as close as possible to each other.

Project description

Procrustes Python Library

This project supports Python 3.9+ GPLv3 License CI Tox Documentation Status codecov Binder

The Procrustes library provides a set of functions for transforming a matrix to make it as similar as possible to a target matrix. For more information, visit Procrustes Documentation.

Citation

Please use the following citation in any publication using Procrustes library:

@article{Meng2022procrustes,
    title = {Procrustes: A python library to find transformations that maximize the similarity between matrices},
    author = {Fanwang Meng and Michael Richer and Alireza Tehrani and Jonathan La and Taewon David Kim and Paul W. Ayers and Farnaz Heidar-Zadeh},
    journal = {Computer Physics Communications},
    volume = {276},
    number = {108334},
    pages = {1--37},
    year = {2022},
    issn = {0010-4655},
    doi = {https://doi.org/10.1016/j.cpc.2022.108334},
    url = {https://www.sciencedirect.com/science/article/pii/S0010465522000522},
    keywords = {Procrustes analysis, Orthogonal, Symmetric, Rotational, Permutation, Softassign},
}

Dependencies

The following dependencies are required to run Procrustes properly,

To test Procrustes, the following dependencies are required,

Installation

It is recommended to install qc-procrustes within a virtual environment.To create a virtual environment, we can use the venv module (Python 3.3+, https://docs.python.org/3/tutorial/venv.html), miniconda (https://conda.io/projects/conda/en/latest/user-guide/tasks/manage-environments.html), or pipenv (https://pipenv.pypa.io/en/latest/).

Installing from PyPI

To install procrustes with pip, we can install the latest stable release from the Python Package Index (PyPI) as follows:

    # install the stable release.
    pip install qc-procrustes

Installing from The Prebuild Wheel Files

To download the prebuilt wheel files, visit the PyPI page and GitHub releases.

    # download the wheel file first to your local machine
    # then install the wheel file
    pip install file_path/qc_procrustes-0.0.2b12-py3-none-any.whl

Installing from the Source Code

In addition, we can install the latest development version from the GitHub repository as follows:

    # install the latest development version
    pip install git+https://github.com/theochem/procrustes.git

We can also clone the repository to access the latest development version, test it and install it as follows:

    # clone the repository
    git clone git@github.com:theochem/procrustes.git

    # change into the working directory
    cd procrustes
    # run the tests
    python -m pytest .

    # install the package
    pip install .

More

See https://procrustes.qcdevs.org for full details.

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

qc_procrustes-1.0.2a1.tar.gz (1.6 MB view details)

Uploaded Source

Built Distribution

qc_procrustes-1.0.2a1-py3-none-any.whl (1.6 MB view details)

Uploaded Python 3

File details

Details for the file qc_procrustes-1.0.2a1.tar.gz.

File metadata

  • Download URL: qc_procrustes-1.0.2a1.tar.gz
  • Upload date:
  • Size: 1.6 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.6

File hashes

Hashes for qc_procrustes-1.0.2a1.tar.gz
Algorithm Hash digest
SHA256 672fc7ac92d3a72fa48ef5a975dd40d36369c790963b268032984435a12880c7
MD5 0ba3f75b48805dfe1907abffe103316e
BLAKE2b-256 7c39a3c568d6a7b20f4b91919a5ca8716202ad38031ab6b36e89c6dbb3d4cada

See more details on using hashes here.

Provenance

File details

Details for the file qc_procrustes-1.0.2a1-py3-none-any.whl.

File metadata

File hashes

Hashes for qc_procrustes-1.0.2a1-py3-none-any.whl
Algorithm Hash digest
SHA256 3008244937e2fe1b5e9258ba7cd116b152fcc166f6fa4e43738f10fecaeeaebc
MD5 f644bc76f43f4d53fea5160dcfe510c8
BLAKE2b-256 650fa1fe1408708ca36bf0252094c563e24ba388cd6dde6b15b31c17803dafc3

See more details on using hashes here.

Provenance

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