deepTools icon indicating copy to clipboard operation
deepTools copied to clipboard

computeMatrixOperations dataRange - additional features

Open mirax87 opened this issue 4 years ago • 0 comments

Hi, thanks for implementing the new function 'dataRange'. I find it very useful. However, I stumbled across an issue and have one feature request:

The issue

nan values in the matrix lead to nan in the range calculations. Here an option like --missingDataAsZero or --ignoreNan would be useful. At least it would be cheaper for the user, than re-computing the matrix.

> deeptools --version
deeptools 3.5.0
> computeMatrixOperations dataRange -m Heatmap.mapq_test.mat.gz 
Samples	Min	Max	Median	10th	90th
<sample 1>	nan	nan	nan	nan	nan
<sample 2>	nan	nan	nan	nan	nan

The Feature:

As shown in the output matrix, 10th and 90th percentiles are reported. Having an option to set the percentile would be useful. I have script of my own, were I can provide a parameter, which then computes q-th percentile and (1-q)-th percentile.

Best, -Michael

mirax87 avatar Jan 25 '21 15:01 mirax87