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

d4tools stats - Show statistics across multiple regions #69

Open
pontushojer opened this issue Jan 9, 2023 · 0 comments
Open

d4tools stats - Show statistics across multiple regions #69

pontushojer opened this issue Jan 9, 2023 · 0 comments

Comments

@pontushojer
Copy link

Hi,

I want to look at the mean expression over a number of regions defined in a BED file. Currently using d4tools stat with --region output the mean for each separate regions. It would be nice to also get an additional line with the mean expression across all regions defined in the BED file. Something like:

chr1	10000	11014	98.38560157790927
chr1	11031	11058	0
chr1	11079	11453	33.86631016042781
chr1	15792	15854	10053.435483870968
chr1	16707	16749	1592.952380952381
chr1	19300	19448	2727.9189189189187
chr1	20823	20868	4395.555555555556
chr1	26448	26470	31438
chr1	29739	29797	5912.258620689655
total                                  103.0920139090

This does however make the output a bit inconsistent. One other option would be to add a separate flag that only outputs the total, something like ---across-regions. What do you think?

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

No branches or pull requests

1 participant