open2c / coolpuppy

A versatile tool to perform pile-up analysis on Hi-C data in .cool format.
MIT License
77 stars 11 forks source link

[Q] How to test significance of change between pileups? #148

Open AudreyBaguette opened 3 months ago

AudreyBaguette commented 3 months ago

State the question I generated a set of pileups, all using the same list of regions, but with different Hi-C files. How do I test if the resulting pileups are significantly different from one another?

What have you tried?

Additional context While the method stated above, using cooltools, could work for pileups using a set of punctual regions (like CTCF peaks), cooltools isn't able to take as input a set of ranges (like compartments). It'd like to generate pileups for various Hi-C maps (with different coverage) then see if the pileups I obtain are significantly different from each other considering the changes in coverage.

efriman commented 3 months ago

There's no statistical tests implemented in coolpup.py, but you can extract contact frequency distributions along the "stripes" (store_stripes=True or --stripe). I'm not sure if this is what you mean but you can see an example of how to get the values here: https://github.com/efriman/Friman_etal_ULI/blob/main/pileups/TSS_quartiles_score_stripes.ipynb