Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cooltools stats CLI #415

Open
agalitsyna opened this issue Feb 2, 2023 · 1 comment
Open

cooltools stats CLI #415

agalitsyna opened this issue Feb 2, 2023 · 1 comment

Comments

@agalitsyna
Copy link
Member

build stats CLI that will report pairtools-like stats:

  • nnz per region (cis); per pair of regions ("trans"); in total
  • fraction of contacts per region; per pair of regions ("trans"); in total
  • distance decay: % of contacts by distance ranges
  • cis2trans, cis and trans per region and in total

I put "trans" in quotation marks because it can be in cis (in terms of chromosomes) but between different regions.
User can provide a single region to get its properties of only this one.

Suggested API:

cooltools stats input.cool --view regions.txt --nproc 10

Additional options:

--chrom-subset
--yaml/--no-yaml

Maybe also:

  • --cis2trans-only
  • --nnz-only
  • --decay-only
  • --fraction-only
  • --cis-only to remove the stats between regions (may reduce computations)
  • --trans-only to calculate only trans stats and ignore all the cis ones
@Phlya
Copy link
Member

Phlya commented Feb 15, 2023

Implementation idea: go through pixel chunks and collect stats per chunk - perhaps some code from PairCounter in pairtools can be reused!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants