A versatile tool to perform pile-up analysis on Hi-C data in .cool format.
.cool file pile-ups with python.
A versatile tool to perform pile-up analysis on Hi-C data in .cool format (https://github.com/mirnylab/cooler). And who doesn't like cool pupppies?
.cool is a modern and flexible (and the best, in my opinion) format to store Hi-C data.
It uses HDF5 to store a sparse representation of the Hi-C data, which allows low memory requirements when dealing with high resolution datasets. Another popular format to store Hi-C data, .hic, can be converted into .cool files using
See for details:
Abdennur, N., and Mirny, L. (2019). Cooler: scalable storage for Hi-C data and other genomically-labeled arrays. Bioinformatics. 10.1093/bioinformatics/btz540
What are pileups?
This is the idea of how pileups work to check whether certain regions tend to interacts with each other:
What's not shown here is normalization to the expected values. This can be done in two ways: either using a provided file with expected values of interactions at different distances (output of
cooltools compute-expected), or directly from Hi-C data by dividing the pileups over randomly shifted control regions. If neither expected normalization approach is used (just set
--nshifts 0), this becomes essentially identical to the APA approach (Rao et al., 2014), which can be used for averaging strongly interacting regions, e.g. annotated loops. For weaker interactors, decay of contact probability with distance can hide any focal enrichment that could be observed otherwise.
coolpup.py is particularly well suited performance-wise for analysing huge numbers of potential interactions, since it loads whole chromosomes into memory one by one (or in parallel to speed it up) to extract small submatrices quickly. Having to read everything into memory makes it relatively slow for small numbers of loops, but performance doesn't decrease until you reach a huge number of interactions.
All requirements apart from
cooltools are available from PyPI or conda. For
pip install https://github.com/mirnylab/cooltools/archive/master.zip
For coolpuppy (and other dependencies) simply do:
pip install coolpuppy
pip install https://github.com/Phlya/coolpuppy/archive/master.zip
to get the latest version from GitHub. This will make
coolpup.py callable in your terminal, and importable in python as
Some examples to get you started are available here: Examples
A guide walkthrough to pile-up analysis is available here (WIP): Walkthrough
Docs for the command line interface are available here: CLI docs
coolpup.py doesn't support inter-chromosomal pileups, but this is an addition that is planned for the future.
For flexible plotting, I suggest to use
matplotlib or another library. However simple plotting capabilities are included in this package. Just run
plotpup.py with desired options and list all the output files of
coolpup.py you'd like to plot.
Coolpup.py - a versatile tool to perform pile-up analysis of Hi-C data
Ilya M. Flyamer, Robert S. Illingworth, Wendy A. Bickmore
This tool has been used in the following publications
Please let me know if I've missed any and you'd like your paper ot be mentioned here!
McLaughlin, K., Flyamer, I.M., Thomson, J.P., Mjoseng, H.K., Shukla, R., Williamson, I., Grimes, G.R., Illingworth, R.S., Adams, I.R., Pennings, S., et al. (2019). DNA Methylation Directs Polycomb-Dependent 3D Genome Re-organization in Naive Pluripotency. Cell Reports 29, 1974-1985.e6.
Boyle, S., Flyamer, I.M., Williamson, I., Sengupta, D., Bickmore, W.A., and Illingworth, R.S. (2019). A Central Role for Canonical PRC1 in Shaping the 3D Nuclear Landscape. Genes & Development 2020
Rhodes, J.D.P., Feldmann, A., Hernández-Rodríguez, B., Díaz, N., Brown, J.M., Fursova, N.A., Blackledge, N.P., Prathapan, P., Dobrinic, P., Huseyin, M.K., et al. (2020). Cohesin Disrupts Polycomb-Dependent Chromosome Interactions in Embryonic Stem Cells. Cell Reports 30, 820-835.e10.
Release history Release notifications | RSS feed
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|Filename, size||File type||Python version||Upload date||Hashes|
|Filename, size coolpuppy-0.9.5-py3-none-any.whl (23.7 kB)||File type Wheel||Python version py3||Upload date||Hashes View|
|Filename, size coolpuppy-0.9.5.tar.gz (24.5 kB)||File type Source||Python version None||Upload date||Hashes View|
Hashes for coolpuppy-0.9.5-py3-none-any.whl