Ensembl/WiggleTools

Skipping zeros when computing statistics over regions

IsaacDiaz026 opened this issue · 1 comments

Hello,
Is there a way to exclude values of zero when computing summary statistics using apply_paste ? I understand that by default missing data is not counted in computing stats, but I would also like to exclude values of zero.

Thanks!

Hello @IsaacDiaz026 ,

If all your values are positive, you can use the gt 0 unary operator.

If you have negative values you wish to preserve, it would be more complicated. The abs operator could help but you would lose sign.

Hope this helps,

Daniel