JEXL type casting

August 29th, 2018

TIL: when using GATK VariantFiltration, you can set up simple queries in JEXL like
    MQ0 / DP > 0.10
but that will not work as expected if `MQ0` and `DP` are integers
so you have to do:
    ((MQ0*1.0) / (DP*1.0)) > 0.10
Which is stupid, and I want my hour back.

Tags: | Comments Off

Comments are closed.