Skip to main content

Tile generation for big data

Project description

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 .gitignoredata/* 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

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

clodius-0.22.1.tar.gz (11.7 MB view details)

Uploaded Source

Built Distribution

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

clodius-0.22.1-py3-none-any.whl (125.0 kB view details)

Uploaded Python 3

File details

Details for the file clodius-0.22.1.tar.gz.

File metadata

  • Download URL: clodius-0.22.1.tar.gz
  • Upload date:
  • Size: 11.7 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.25

File hashes

Hashes for clodius-0.22.1.tar.gz
Algorithm Hash digest
SHA256 607e9a2b50467261b0d34bc32ebb87f056d31efad5abfc686c7a862d21c5f970
MD5 61e96d8d2c558eb1d91dbbf8ef85c116
BLAKE2b-256 1805f0e8a6a67d1aac4d3b3f2b8b90e5f6ecc7a34732d0ba81a9436e64acf33e

See more details on using hashes here.

File details

Details for the file clodius-0.22.1-py3-none-any.whl.

File metadata

  • Download URL: clodius-0.22.1-py3-none-any.whl
  • Upload date:
  • Size: 125.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.25

File hashes

Hashes for clodius-0.22.1-py3-none-any.whl
Algorithm Hash digest
SHA256 6309ab2113d793f2a92be686df3987eb1250720eb51e1c7fd83d9d3a066a83a6
MD5 8e2f9a49458680452bd3249803bcfba7
BLAKE2b-256 be32f584fd5b268bfb33fb4a01c248c4fb4a8e4f9ec27956a8a097f5f740e6a8

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