mosdepth icon indicating copy to clipboard operation
mosdepth copied to clipboard

Naive question

Open fmarletaz opened this issue 3 years ago • 1 comments

Thanks for developing this great tool! I have a question: would it be possible to have an option to output the global coverages not as cumulative but regular distribution (for some genomic analyses, it would make things a bit easier). Thanks!

fmarletaz avatar Mar 31 '21 12:03 fmarletaz

Hi, you can get the regular distribution from the cumulative with something like:

dist[i] = cumulative[i+1] - cumulative[i]

for each depth as i.

brentp avatar Mar 31 '21 13:03 brentp