Ensembl/WiggleTools

greater than or equal

Closed this issue · 4 comments

gevro commented

Is it possible to add a gte (greater than or equal) and less than or equal?

Hello @gevro ,

Sure, it's possible, but could you describe a scenario where this change is needed?

Cheers,

Daniel

gevro commented

Some wiggle files may have discrete values such as a mappability track for instance: values of 0.5, 0.25, 0.125, etc.
And one may want to keep all regions >=0.5.

Of course, I could do gt 0.4999, but not as clean of a result.

Anyway, it's not crucial, but just an idea.

gevro commented

Another place this would be useful is to get two disjoint sets of regions for the genome: One with regions greater than or equal, and one with regions less than. That way the two sets together include all the regions. If there is only gt and lt, there might be a small number of regions left out, without slightly modifying the thresholds for gt and lt, which can start to get confusing.

Hello @gevro ,

Thanks for the suggestion, now implemented.

Cheers,

Daniel