Skip to main content

ACE-OF-Clust: Alignment, Comparison, and Evaluation of Omics Features in Clustering

Project description

ACE-OF-Clust (ace-of-clust)

ACE-OF-Clust (Alignment, Comparison, and Evaluation of Omics Features in Clustering) is a Python package built on top of clumppling that streamlines clustering-alignment workflows and supports downstream comparisons, summaries, and feature-level analyses for single-cell omics clustering results.

  • PyPI name (install): ace-of-clust
  • Python import (module): ace_of_clust
  • Current Version: 0.1.0
  • Release Date: Jan 2026

See this doc site for the tutorials and API reference for the package.

Installation

pip install ace-of-clust

Optional (better label adjustment in some plots):

pip install "ace-of-clust[adjusttext]"

Quickstart

Run clumppling / compModels via wrappers

from pathlib import Path

import ace_of_clust as aoc

# Example: run clumppling on an existing results directory / config
cls_dir = Path("input/clustering_res")
align_dir = Path("output/clumppling_run")
aoc.run_clumppling_via_main(
    input_dir=cls_dir,
    output_dir=align_dir,
    fmt="generalQ")

# Example: prepare and run compModels (paths/args will depend on your pipeline)
models = ['model1', 'model2']
suffixes = ["rep", "rep"]
model_dirs = [Path("output/clumppling_run_model_1") Path("output/clumppling_run_model_2")]
model_comp_dir = Path("output/clumppling_models")
qfilelists, qnamelists, mode_stats_files = aoc.prepare_comp_models_inputs(
    models=models,
    model_dirs=model_dirs,
    comp_dir=model_comp_dir,
    suffixes=suffixes,
)
model_comp_output_dir = Path("output/aligned_models")
aoc.run_comp_models(
    models=models,
    comp_dir=model_comp_dir,
    output_dir=model_comp_output_dir)

Load, analyze, and visualize results (compmodels)

import pandas as pd
import ace_of_clust as aoc

# load results
comp_res = aoc.load_compmodels_results(
    res_dir=model_comp_output_dir,
    input_dir=model_comp_dir,
)

# extract mode-pair mappings 
pair_mappings = aoc.extract_all_mode_pair_mappings(
    mode_names=comp_res.full_mode_names,
    all_modes_alignment=comp_res.all_modes_alignment,
    alignment_acrossK=comp_res.alignment_across_all,
)

# visualize cluster memberships (hard clustering)
fig, ax = aoc.plot_compmodels_membership_grid(
    comp_res,
    coords, # coordinates for scatter plot
    colors=colors,  # colors used for clusters
    val_threshold=0.5, # only plot points with membership values above this threshold
    suptitle="Cluster Memberships",
)

Reproducing examples

This repo keeps example scripts/notebooks separate from the installable library code. To reproduce examples:

  1. Install the package (pip install ace-of-clust)
  2. Clone this repository (for examples/, etc.)
  3. Run the example scripts while using the installed package.

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

ace_of_clust-0.1.3.tar.gz (76.6 kB view details)

Uploaded Source

Built Distribution

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

ace_of_clust-0.1.3-py3-none-any.whl (77.8 kB view details)

Uploaded Python 3

File details

Details for the file ace_of_clust-0.1.3.tar.gz.

File metadata

  • Download URL: ace_of_clust-0.1.3.tar.gz
  • Upload date:
  • Size: 76.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.4.0 CPython/3.11.14 Linux/5.14.0-284.11.1.el9_2_cifs.x86_64

File hashes

Hashes for ace_of_clust-0.1.3.tar.gz
Algorithm Hash digest
SHA256 ae50d92789cf2adaff7ae5bfb305459cf9f8e0de8b3b8d8b06ec95d6f4738bbf
MD5 2a4ea313a40688148cde57a7ff0241cc
BLAKE2b-256 bf009c40262781adba149085b432fa91fba8ac1b10c9231c4e6f78db8bd3bfe4

See more details on using hashes here.

File details

Details for the file ace_of_clust-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: ace_of_clust-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 77.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.4.0 CPython/3.11.14 Linux/5.14.0-284.11.1.el9_2_cifs.x86_64

File hashes

Hashes for ace_of_clust-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 ada1c9e75ef1440f52590fd1f476aeb11d49123c880c62f83b2793a3921cf481
MD5 91e4336b9dc14b5db5a9729ac5996199
BLAKE2b-256 a6507a8dd831f0355b3fa344e33d1c9c88bd939a86d19cd0223b1868cb1a932a

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