Skip to main content

Clodius

Python Build Status Docs

Displaying large amounts of data often requires first turning it into not-so-large amounts of data. Clodius is a program and library designed to aggregate large datasets to make them easy to display at different resolutions.

Demo

Install the clodius package:

pip install clodius

And use it aggregate a bigWig file:

curl https://raw.githubusercontent.com/hms-dbmi/clodius/develop/test/sample_data/geneAnnotationsExonsUnions.short.bed \
  > /tmp/sample.short.bed
clodius aggregate bedfile /tmp/sample.short.bed

The output files can then be displayed using higlass-manage. For more information about viewing these types of files take a look at the higlass docs.

More examples are available.

File Types

Development

The recommended way to develop clodius is to use a conda environment and install clodius with develop mode:

pip install -e ".[dev]"

Test Fixtures (Git LFS)

Test data files in data/ are stored in Git LFS. They are downloaded automatically when you clone the repository with LFS enabled:

git lfs install  # once per machine
git clone <repo>  # LFS files downloaded automatically
# or, in an existing clone:
git lfs pull

Adding a new test fixture

  1. Check if the file type is already tracked — open .gitattributes and look for a matching pattern (e.g. data/*.gz, *.bam). If not, add a new tracking rule:

    git lfs track "data/*.ext"   # adds a line to .gitattributes
    git add .gitattributes
    
  2. Allow the file through .gitignore — data/* is ignored by default. Add a negation line for your file:

    !data/your_new_file.ext
    
  3. Stage and commit as normal:

    git add data/your_new_file.ext
    git commit -m "Add test fixture: your_new_file.ext"
    git push  # LFS objects are uploaded automatically
    

Testing

The unit tests for clodius can be run using pytest:

pytest

Individual unit tests can be specified by indicating the file and function they are defined in:

pytest test/cli_test.py:test_clodius_aggregate_bedgraph

Metadata

Release files for clodius 0.23.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for clodius 0.23.0
File Size Uploaded Provenance Actions
clodius-0.23.0.tar.gz 12.1 MB Without provenance Details for clodius-0.23.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for clodius 0.23.0
File Interpreter ABI Platform Actions
clodius-0.23.0-py3-none-any.whl Python 3 none any Details for clodius-0.23.0-py3-none-any.whl

Total release size: 12.3 MB

Release files / clodius-0.23.0.tar.gz

Download URL clodius-0.23.0.tar.gz
Size 12.1 MB
Tags Source
SHA-256 checksum
How to use checksums
ef38a0fafccdc7102c04d4d3fb2a9641d33517174d088ffbdfe2c316c482f4d1
BLAKE2b-256 checksum
How to use checksums
b61813e0e879317412fc0a276df12d2b40de3372ff3f5979a3f071ce36463960
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / clodius-0.23.0-py3-none-any.whl

Download URL clodius-0.23.0-py3-none-any.whl
Size 162.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5b55a885928328709d7f7b177f8c64304de90c21899d68a3d8b62d80b5134693
BLAKE2b-256 checksum
How to use checksums
38db95f179e44bbb383b7b9aacd52e5bfc30166a00068927a9192a8137c79241
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Security for clodius 0.23.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.23.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page