Order Preserving Hierarchical Agglomerative Clustering
Project description
ophac – Order Preserving Hierarchical Agglomerative Clustering
This library implements the algorithms described in the article Order-Preserving Hierarchical Clustering. It provides functionality for performing order-preserving hierarchical agglomerative clustering on partially ordered sets.
See the ophac wiki for usage examples and additional context (linked from the old Bitbucket repository).
License
This project is released under the GNU Lesser General Public License v3.0.
Requirements
ophac requires Python 3.6+ and the following libraries:
numpyscipy
Installation
From PyPI (recommended)
Precompiled wheels are available for common platforms. Just run:
pip install ophac
Local Installation (for development)
Use a virtual environment to avoid polluting your system Python:
python -m venv venv
source venv/bin/activate
pip install -e .
Building from Source (for unsupported platforms)
If you're on a platform without a prebuilt wheel (e.g., unusual Linux distro or Python version), pip will try to build ophac from source.
To build successfully, you must have:
- A C++17-compatible compiler (e.g., GCC ≥ 7, Clang ≥ 5, or MSVC ≥ 2017)
- Python development headers (e.g.,
python3-devor equivalent) - Build tools like
make,cmake(if needed)
Make sure pip, setuptools, and wheel are up to date:
pip install --upgrade pip setuptools wheel
Then install:
pip install ophac
If building fails, you can clone the repository and install locally with:
git clone https://github.com/danielbakkelund/ophac.git
cd ophac
pip install .
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ophac-0.5.2.tar.gz.
File metadata
- Download URL: ophac-0.5.2.tar.gz
- Upload date:
- Size: 29.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3858f2d85bcb2570fdabb4b011766f7335389e2f4fa2320328b0e86a0f4bd04a
|
|
| MD5 |
0365c387f07ec3578b3fb6ea1328587b
|
|
| BLAKE2b-256 |
55352ce149aff3491b4c2293ab2c367f42c52c8a5d5559bc162a57287198f8a9
|
File details
Details for the file ophac-0.5.2-cp311-cp311-win_amd64.whl.
File metadata
- Download URL: ophac-0.5.2-cp311-cp311-win_amd64.whl
- Upload date:
- Size: 105.4 kB
- Tags: CPython 3.11, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
18b1819bf9f4e7088d2d897f356fe17166893274b80a430add24eba0ca64ebf3
|
|
| MD5 |
f164019c2ecdc65f22551ad690e19951
|
|
| BLAKE2b-256 |
d039a985833351277e0ebb090d62cb79a070548eb9b0dedbbff264eee8783bab
|
File details
Details for the file ophac-0.5.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.
File metadata
- Download URL: ophac-0.5.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 137.6 kB
- Tags: CPython 3.11, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0b0c9690fab7935e2972ec7ee639db4f0ea82bb5cbe25c2c6bd32e7612f90029
|
|
| MD5 |
94797e9bd9bf610dc338e52e99a1e4ab
|
|
| BLAKE2b-256 |
2fa4e1f0a702adfd43cc15798c9ee5e0caaaf08699183cf7e6ee2fe55457a2ff
|
File details
Details for the file ophac-0.5.2-cp311-cp311-macosx_11_0_arm64.whl.
File metadata
- Download URL: ophac-0.5.2-cp311-cp311-macosx_11_0_arm64.whl
- Upload date:
- Size: 103.8 kB
- Tags: CPython 3.11, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9de7f8cd1cae910cf6307d11b013f4fe58412bf7703b60fa490d0fb21d345f47
|
|
| MD5 |
358ca1555e26d49b4647f681b60d88f8
|
|
| BLAKE2b-256 |
499c8d1a6426dd83c0e177262b97aa76fe75ceec385b438d34521636476400f2
|
File details
Details for the file ophac-0.5.2-cp311-cp311-macosx_10_9_x86_64.whl.
File metadata
- Download URL: ophac-0.5.2-cp311-cp311-macosx_10_9_x86_64.whl
- Upload date:
- Size: 106.7 kB
- Tags: CPython 3.11, macOS 10.9+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d3a09b9bd74b06cb95e04ae923784cc11f2e5c38ff7a56f7bd96fde35c63adbe
|
|
| MD5 |
998ae815032757dd924f4a78f7388a39
|
|
| BLAKE2b-256 |
3ecc9c0043b39c8adb7334826675bcb1a0ead88842e690fd5dd515585a0b04b4
|
File details
Details for the file ophac-0.5.2-cp310-cp310-win_amd64.whl.
File metadata
- Download URL: ophac-0.5.2-cp310-cp310-win_amd64.whl
- Upload date:
- Size: 103.9 kB
- Tags: CPython 3.10, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bb7c224301edf74a61afca1325ffa0837e893c86be962e6ac85f7940aa4d6e09
|
|
| MD5 |
a84514e6fdc174f190a949970e761da5
|
|
| BLAKE2b-256 |
54003405b53f5e2511ccbc66833243b14579f54f788794e4575621740adaffea
|
File details
Details for the file ophac-0.5.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.
File metadata
- Download URL: ophac-0.5.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 135.9 kB
- Tags: CPython 3.10, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
30d2db26d681ee4f892f739d4413ed84830896525e17cd5db477dbae23c1a4c3
|
|
| MD5 |
146b12280554a0b90c9d2069b0a861d9
|
|
| BLAKE2b-256 |
6e45d68c42a8c58d93e4421ae5e3b0981146a37b9d5c7aca686eda12258f6a14
|
File details
Details for the file ophac-0.5.2-cp310-cp310-macosx_11_0_arm64.whl.
File metadata
- Download URL: ophac-0.5.2-cp310-cp310-macosx_11_0_arm64.whl
- Upload date:
- Size: 102.6 kB
- Tags: CPython 3.10, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0b65f0627e6424abed6e6d971232641cf70bb876dd95edcd2832e1f3a9042c4b
|
|
| MD5 |
ece45c1a629139cc343557d71c4323ea
|
|
| BLAKE2b-256 |
a535711506a1655f40c2c59365158253f0e0b467cbd2c508eca969486fbd4782
|
File details
Details for the file ophac-0.5.2-cp310-cp310-macosx_10_9_x86_64.whl.
File metadata
- Download URL: ophac-0.5.2-cp310-cp310-macosx_10_9_x86_64.whl
- Upload date:
- Size: 105.2 kB
- Tags: CPython 3.10, macOS 10.9+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8357d5c59170887cfc7086be160fc3e34159624f4bbadf7cf3199ddd0b413841
|
|
| MD5 |
03453622c857b7174b1c1d5a77bca18b
|
|
| BLAKE2b-256 |
1603215eb4e8869da49737fc3477210a98f32dfdeb96ba30da8ba01a0b4a056d
|
File details
Details for the file ophac-0.5.2-cp39-cp39-win_amd64.whl.
File metadata
- Download URL: ophac-0.5.2-cp39-cp39-win_amd64.whl
- Upload date:
- Size: 103.8 kB
- Tags: CPython 3.9, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9f9ef8a9578f6928a868748029f27c2184ab44e021f9b10e764dc57983e8dc30
|
|
| MD5 |
c7913760617aa73343f3383aa1e698ac
|
|
| BLAKE2b-256 |
516ecafdf7c5e0e06348d08aa8b1ceea084ac7f604bbfc1e7ec935aa00ddbaee
|
File details
Details for the file ophac-0.5.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.
File metadata
- Download URL: ophac-0.5.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 135.9 kB
- Tags: CPython 3.9, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
741428fd8b4c4e456a5fd10199c7eaef5c0221779ebf34cac58cffa07d9556a4
|
|
| MD5 |
22803cdf74cb15f6ebe855db2b2a3dee
|
|
| BLAKE2b-256 |
5c47cde446b9f17fffef1db7f5514be44b2b56851f04bf32ef77fb74d68abf55
|
File details
Details for the file ophac-0.5.2-cp39-cp39-macosx_11_0_arm64.whl.
File metadata
- Download URL: ophac-0.5.2-cp39-cp39-macosx_11_0_arm64.whl
- Upload date:
- Size: 102.7 kB
- Tags: CPython 3.9, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
96b625dfd1b5fbce885f570d6f90d8eb1e2c9d2c4c99f43d76a60aa2b7bd0cf4
|
|
| MD5 |
7b0b7335212a0f02bb22888fadfe9488
|
|
| BLAKE2b-256 |
875098d5922290027652940d465a8fdeeacf28f7262a57adae3485422fe90e5d
|
File details
Details for the file ophac-0.5.2-cp39-cp39-macosx_10_9_x86_64.whl.
File metadata
- Download URL: ophac-0.5.2-cp39-cp39-macosx_10_9_x86_64.whl
- Upload date:
- Size: 105.3 kB
- Tags: CPython 3.9, macOS 10.9+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
92fb0ee3053f1e0bd550236f8b4ab0fc3ce98f1c84e7cac8aa3992c6cbc8ba08
|
|
| MD5 |
2b75de687eab33e7d670f12db85e32ae
|
|
| BLAKE2b-256 |
9c3f53384e27f3557354c91f6f1ed4e36c5f1937c1c4eaed7aed385b1131c94d
|
File details
Details for the file ophac-0.5.2-cp38-cp38-win_amd64.whl.
File metadata
- Download URL: ophac-0.5.2-cp38-cp38-win_amd64.whl
- Upload date:
- Size: 103.9 kB
- Tags: CPython 3.8, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f62f581952aa58f968eda70faac36482c5892680f750ea92bcdff2632929dfc7
|
|
| MD5 |
285d4253aea50a56ab67165ab1ac2a1e
|
|
| BLAKE2b-256 |
1586ea99699b8694383bb43b9da31ddec44ae9929796fb7544044175be475232
|
File details
Details for the file ophac-0.5.2-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.
File metadata
- Download URL: ophac-0.5.2-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 135.3 kB
- Tags: CPython 3.8, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
945391753b1c9ef8976084383fa3ab265f0507a72e506421f772573ce68eb76e
|
|
| MD5 |
c20e5e1d7f0137d9caa08c50e1b2e00d
|
|
| BLAKE2b-256 |
8c17699d81eb3b5de05d12d409c375088aaaaab54592eeee59992542eba9c79c
|
File details
Details for the file ophac-0.5.2-cp38-cp38-macosx_11_0_arm64.whl.
File metadata
- Download URL: ophac-0.5.2-cp38-cp38-macosx_11_0_arm64.whl
- Upload date:
- Size: 102.4 kB
- Tags: CPython 3.8, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8b0b77206ea201051c2bf33986b82189c7c997c1a5624dbde38955fb79ba1cf2
|
|
| MD5 |
2e6dab202ca91ee5563be16562d821f1
|
|
| BLAKE2b-256 |
1382ec00daebf4a6083fb2f43079c6cf065ed52227552cff6118011f4c0f08b3
|
File details
Details for the file ophac-0.5.2-cp38-cp38-macosx_10_9_x86_64.whl.
File metadata
- Download URL: ophac-0.5.2-cp38-cp38-macosx_10_9_x86_64.whl
- Upload date:
- Size: 105.0 kB
- Tags: CPython 3.8, macOS 10.9+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
001edfca7a45f44ac9bfc4297b96b0cc7dee75b1992493fa37cb96b0c5e3288f
|
|
| MD5 |
42131fe58aeaa8a7778b347672439253
|
|
| BLAKE2b-256 |
7ae249bc706f5b0343e669601da365b0b0987149540636b310cf22a3db3d8db7
|
File details
Details for the file ophac-0.5.2-cp37-cp37m-win_amd64.whl.
File metadata
- Download URL: ophac-0.5.2-cp37-cp37m-win_amd64.whl
- Upload date:
- Size: 104.5 kB
- Tags: CPython 3.7m, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
65616735d341c24738c3ef453efe45d39852f2e9e70079f23d4ac63ac8b2d856
|
|
| MD5 |
45b1dc7e67fc5ffae162bf1d937fb9af
|
|
| BLAKE2b-256 |
6097b47e24b5352275c784fe8b0dd0ca7c69f46dff6f87beed58935296dc3cbc
|
File details
Details for the file ophac-0.5.2-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.
File metadata
- Download URL: ophac-0.5.2-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 137.2 kB
- Tags: CPython 3.7m, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6a284c2900eb6e9c82ef192d36b4f5af4a938e3fe48c17ecded9257edd95590d
|
|
| MD5 |
d34018a9dae6e5bac457ca7a7d826706
|
|
| BLAKE2b-256 |
5d9fbbf2a1c9469a110b8544c552d0d822bb05116381f23da2610997a8d053e3
|
File details
Details for the file ophac-0.5.2-cp37-cp37m-macosx_10_9_x86_64.whl.
File metadata
- Download URL: ophac-0.5.2-cp37-cp37m-macosx_10_9_x86_64.whl
- Upload date:
- Size: 105.0 kB
- Tags: CPython 3.7m, macOS 10.9+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
463cc99275903b03cfcca409fa9d3031356123457c0d2e1dc472f84739529af2
|
|
| MD5 |
a0e32076b132a4dffdff3257e377e958
|
|
| BLAKE2b-256 |
dc3ae1b46bec971bd37c5475a3215ba46ab2302d7d61ec15e18ed9f8a9aed450
|
File details
Details for the file ophac-0.5.2-cp36-cp36m-win_amd64.whl.
File metadata
- Download URL: ophac-0.5.2-cp36-cp36m-win_amd64.whl
- Upload date:
- Size: 105.9 kB
- Tags: CPython 3.6m, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f122bea11821ea81b32ddae7b8dd6b10ede51916aa041a5a292b917a1910136e
|
|
| MD5 |
b2dcf9045d59e96d53bec6bcee283f58
|
|
| BLAKE2b-256 |
612f40d25777fca92179aa60ab75237b81762c4cb7203992991efab5c770b0e0
|
File details
Details for the file ophac-0.5.2-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.
File metadata
- Download URL: ophac-0.5.2-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 136.7 kB
- Tags: CPython 3.6m, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1108042838d050a85af3afbcbc4e5d36fcb701f64bfaa053b553d7bb88299298
|
|
| MD5 |
b6927a8dee8ca9e7f526906d94520e1c
|
|
| BLAKE2b-256 |
a37f153cc6a1b246a8bed1b0b13334d47fa31591d1dee7ec3a5d02588f47dae3
|
File details
Details for the file ophac-0.5.2-cp36-cp36m-macosx_10_9_x86_64.whl.
File metadata
- Download URL: ophac-0.5.2-cp36-cp36m-macosx_10_9_x86_64.whl
- Upload date:
- Size: 104.7 kB
- Tags: CPython 3.6m, macOS 10.9+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
69e324138d07cf269d596a54534daa58826373bc101f74fbbfb3a8bd0492dca3
|
|
| MD5 |
a498bf4a1474670ed4faaa6e3419d2a7
|
|
| BLAKE2b-256 |
6fd1eb7793f7b69bad42ade3026d888d1d104f530e7d4c6c2bc55912904515a9
|