Skip to main content

Order Preserving Hierarchical Agglomerative Clustering

Project description

ophac – Order Preserving Hierarchical Agglomerative Clustering

Version: 0.5.2 Python: 3.10+

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.10 or newer
  • numpy (runtime)
  • scipy is optional, and only required for plotting-related utilities

From PyPI (recommended)

Install the core package:

pip install ophac

If you want to use the optional plotting features, install with extras:

pip install ophac[plot]

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 ".[plot]"  # omit [plot] if plotting is not needed

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.

You'll need:

  • A C++17-compatible compiler (e.g., GCC ≥ 7, Clang ≥ 5, or MSVC ≥ 2017)
  • Python development headers (e.g., python3-dev)
  • Build tools like make, cmake (if required)

Ensure 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:

git clone https://github.com/danielbakkelund/ophac.git
cd ophac
pip install .

Optional Plotting

Some functions provide visualization support (e.g., dendrograms). To enable these, install with the plot extra:

pip install ophac[plot]

This will install scipy as an additional dependency.

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.4.tar.gz (32.3 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.4-cp311-cp311-win_amd64.whl (108.2 kB view details)

Uploaded CPython 3.11Windows x86-64

ophac-0.5.4-cp311-cp311-win32.whl (100.1 kB view details)

Uploaded CPython 3.11Windows x86

ophac-0.5.4-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (140.3 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64

ophac-0.5.4-cp311-cp311-macosx_11_0_arm64.whl (106.6 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

ophac-0.5.4-cp311-cp311-macosx_10_9_x86_64.whl (109.5 kB view details)

Uploaded CPython 3.11macOS 10.9+ x86-64

ophac-0.5.4-cp310-cp310-win_amd64.whl (106.7 kB view details)

Uploaded CPython 3.10Windows x86-64

ophac-0.5.4-cp310-cp310-win32.whl (99.0 kB view details)

Uploaded CPython 3.10Windows x86

ophac-0.5.4-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (138.7 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64

ophac-0.5.4-cp310-cp310-macosx_11_0_arm64.whl (105.4 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

ophac-0.5.4-cp310-cp310-macosx_10_9_x86_64.whl (108.0 kB view details)

Uploaded CPython 3.10macOS 10.9+ x86-64

File details

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

File metadata

  • Download URL: ophac-0.5.4.tar.gz
  • Upload date:
  • Size: 32.3 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.4.tar.gz
Algorithm Hash digest
SHA256 3e370da1af44bfb3b3be6baccb2eaacb8fc9c3eed962deff3898fe68a88df1ed
MD5 2d10e1f8436612782d22eeded29fe70a
BLAKE2b-256 1f68151ced1b2dbebc3fbae4fc5a29dfd7367da23ad1005fc13b32cc7ad96a6f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ophac-0.5.4-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 108.2 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.4-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 ff1f9f5e06bcc5f06bdd300b340e562763d27125870442224e2fffce3e1bb4eb
MD5 2aeaa48fd5aed64d370737c40755573b
BLAKE2b-256 912f534294f4eb2d21637f09908b50d2e89c5d511b69254afe5028cfefdaee9c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ophac-0.5.4-cp311-cp311-win32.whl
  • Upload date:
  • Size: 100.1 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.4-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 81a1f5cd59cbbb20895c275261cc20089fbf94507de8a513e331cb629f3c07c1
MD5 d98ea99e97f4b7811253208bdf30f583
BLAKE2b-256 684a96dd2c932e0211089e52f08f4280fe850d04f1ff143c11a36e065311553f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ophac-0.5.4-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 6d465d95df4e48d865258ae61ef52fc62913e324cbfe5b0618add0fd1aecc123
MD5 367cb77ddbbab3eb7171db2efa39f84b
BLAKE2b-256 f5efbe0bde1cad2104865af18f08a4ec098d43a19a1b131c4d020e37dd0263ea

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ophac-0.5.4-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d451629a70b9ba1586f375954c23992bb66d06ede93e5a7134f4c2e4cca9c4d5
MD5 998b0d39b79143e414e7d01e465fb164
BLAKE2b-256 158b07cd9c35cca0ebde84b3e43b83f70a91a706c82e8047596c9b9e1b55a627

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ophac-0.5.4-cp311-cp311-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 53df96d91b8ebd46f12e1749d303529ea7ba09ab3467387fe551042389ff58a6
MD5 da5dd62a5de5e66fe2855d4980025b59
BLAKE2b-256 f03c161c8828d8412dd19564f9fb2a66ff6d17739c9eefada4875fed117e5f6d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ophac-0.5.4-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 106.7 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.4-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 c790e39f54ed48f9cae69bdd697d3bfa0966f040b7a0951711be8dea30666458
MD5 4b9ce3434d8a31933764d2d4e2718a5f
BLAKE2b-256 4cf60a665e196632d0086e54b784e47b1702c3b764b20f5c3da01754b6556356

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ophac-0.5.4-cp310-cp310-win32.whl
  • Upload date:
  • Size: 99.0 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.4-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 f9ebcb872a514241b8fb753f8cdaac3db25a03f7ba6361391649c505308345af
MD5 6fd3b7ebd389ce5d927b23e507cdbbc8
BLAKE2b-256 34b687495656c7e34f83da095a3c17a2a8f577005df09b103b8de895df455062

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ophac-0.5.4-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 14e90257b6b6c109fd0b14784cf05860bd5744a82d586e93e1b1a4c194bbce4a
MD5 183fdf67b36c7a70267245ffa047708f
BLAKE2b-256 83106effc611e1aa6f84f00764e2f82cc5fd78856cd2c993d0a2824d6055f0b1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ophac-0.5.4-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 11770178736d1baaeea70fe488ded84ebd73a152822285f6fb4169a57397bd7e
MD5 039bff8fa40a0b4fe5aa7885d108d87b
BLAKE2b-256 539ea6b57f8a65b8f7ea1845af53f58b1d53c1326a166c1017113105f1fd6b12

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ophac-0.5.4-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 6514c364e1adb0260b1d03b3aab78e176946d020c8204267c944942f6234d9a6
MD5 3d1f027cacb1b3a6d688d08f70d3052f
BLAKE2b-256 e4552a8e16f340a3d472c557fa918de543d071dc321d1e3f3e6ca9e3c35a07d3

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