Skip to main content

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:

  • numpy
  • scipy

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-dev or 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ophac-0.5.3.tar.gz (32.0 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

ophac-0.5.3-cp311-cp311-win_amd64.whl (108.1 kB view details)

Uploaded CPython 3.11Windows x86-64

ophac-0.5.3-cp311-cp311-win32.whl (99.9 kB view details)

Uploaded CPython 3.11Windows x86

ophac-0.5.3-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (140.2 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64

ophac-0.5.3-cp311-cp311-macosx_11_0_arm64.whl (106.5 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

ophac-0.5.3-cp311-cp311-macosx_10_9_x86_64.whl (109.3 kB view details)

Uploaded CPython 3.11macOS 10.9+ x86-64

ophac-0.5.3-cp310-cp310-win_amd64.whl (106.6 kB view details)

Uploaded CPython 3.10Windows x86-64

ophac-0.5.3-cp310-cp310-win32.whl (98.9 kB view details)

Uploaded CPython 3.10Windows x86

ophac-0.5.3-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (138.5 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64

ophac-0.5.3-cp310-cp310-macosx_11_0_arm64.whl (105.2 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

ophac-0.5.3-cp310-cp310-macosx_10_9_x86_64.whl (107.8 kB view details)

Uploaded CPython 3.10macOS 10.9+ x86-64

File details

Details for the file ophac-0.5.3.tar.gz.

File metadata

  • Download URL: ophac-0.5.3.tar.gz
  • Upload date:
  • Size: 32.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for ophac-0.5.3.tar.gz
Algorithm Hash digest
SHA256 9f770cb5ae490533acf728b00d43fd2f02fab0bc4721fd4d440c6fbe81027556
MD5 8499389e68f4947333a029b3779ac639
BLAKE2b-256 ab550403e9560a90ac569a09598ec5d573511e83b7f7bcaaf7e0c7c12e99607d

See more details on using hashes here.

File details

Details for the file ophac-0.5.3-cp311-cp311-win_amd64.whl.

File metadata

  • Download URL: ophac-0.5.3-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 108.1 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

Hashes for ophac-0.5.3-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 98c7e04023f01849e5836f76f7a757cbb7901cd0e2ca0b3509c36d4e76303442
MD5 f3881ad51260734fe93cadfb15180340
BLAKE2b-256 db5d73d5fe5e2ea3091498f6784db5b677bb37f8314020babc3088551dae1f50

See more details on using hashes here.

File details

Details for the file ophac-0.5.3-cp311-cp311-win32.whl.

File metadata

  • Download URL: ophac-0.5.3-cp311-cp311-win32.whl
  • Upload date:
  • Size: 99.9 kB
  • Tags: CPython 3.11, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for ophac-0.5.3-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 4b2e99dd7a86c06289cc00fdb99ee857aebcc43f65e72faf8c293ca0a13f5d89
MD5 28d83b910659be5e2ac88edece1fe173
BLAKE2b-256 b8c27defd88c656b4c9dfbca13f313a0bf0e9a2df9abe137b25b3d5b60dd7958

See more details on using hashes here.

File details

Details for the file ophac-0.5.3-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for ophac-0.5.3-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 a7c931f957177c02a0078b7d68f3ef7c2f9eb96b455ebeebf9f6acd68565883b
MD5 f823293f46c876a3bb296a300cdc7cc0
BLAKE2b-256 abe14819451c3f0d3e1a0dd3d243d14f0135d364e3cb90a984128d9ee8e09c7c

See more details on using hashes here.

File details

Details for the file ophac-0.5.3-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for ophac-0.5.3-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 70b0b4053095216ed3d8e78a9753db1fa04ed491f313865d8afe5bc5c11d636d
MD5 9189b2ea14a308416ce1bd8f9a9c5e00
BLAKE2b-256 b29eae945b5ab2104520c40fb9e908bc3c88c634b31d05bf05d0358576b08b88

See more details on using hashes here.

File details

Details for the file ophac-0.5.3-cp311-cp311-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for ophac-0.5.3-cp311-cp311-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 e30fa2629fef2d47302500f6531123260eba6a99c8830c93bb7a1412f88e6d81
MD5 46853456908cfac8aafa0ecb073f7e7d
BLAKE2b-256 d34801911dd41016af061825bca678334b3bbcdcb5a996589615282babbfaff1

See more details on using hashes here.

File details

Details for the file ophac-0.5.3-cp310-cp310-win_amd64.whl.

File metadata

  • Download URL: ophac-0.5.3-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 106.6 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

Hashes for ophac-0.5.3-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 dcf946dd16136d5b8b178e574327405bf29cb23ba71605cb2f757ada55e038fa
MD5 5a46ba723a8a2a83f6f1226978562546
BLAKE2b-256 129ebefdb7dd6d3a75bf217eed9f263f9e18e41ad8c8a5a941a7c1961c3f38cc

See more details on using hashes here.

File details

Details for the file ophac-0.5.3-cp310-cp310-win32.whl.

File metadata

  • Download URL: ophac-0.5.3-cp310-cp310-win32.whl
  • Upload date:
  • Size: 98.9 kB
  • Tags: CPython 3.10, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for ophac-0.5.3-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 377ed4434a8266d202d002852b66ea474e3ec57233a0daf71b4a782b98c20848
MD5 c725494b14ae853fcc435ba649212589
BLAKE2b-256 6e4b1e97b5a167b1d350b5ab3e7f3eaa81c3786a82b2d2ae48259a4268491982

See more details on using hashes here.

File details

Details for the file ophac-0.5.3-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for ophac-0.5.3-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 137220d27d0f845f172bbfc444cca5781818d3e1d8d0a33027448e9eca2d922a
MD5 cbebe40e90de5cc67b0f39f024d87bbc
BLAKE2b-256 449eae3241407bd56dc2ff3f2636b4e079b9b362142bb0dd41462b746c309d34

See more details on using hashes here.

File details

Details for the file ophac-0.5.3-cp310-cp310-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for ophac-0.5.3-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 04abec13294c3efb972277d903719a91503379364f3b28c623ea66711de9d5cc
MD5 6fb7d2a8d444bb7ddf715d851de18973
BLAKE2b-256 13948740e585a6c10ccd9d6f84eb44470a986de16adcb31a8a38eddf276d1b00

See more details on using hashes here.

File details

Details for the file ophac-0.5.3-cp310-cp310-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for ophac-0.5.3-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 7cf7ac4ff0543f94f47205ead52cfcc287030dc6b3541d46541f38d08ed87579
MD5 27540d97f82894ea95b290db72b34797
BLAKE2b-256 5d5c610c13a6226c2e0a854474c81c4d4c491a1a2d5f52c3e258d2d42fff54ee

See more details on using hashes here.

Supported by

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