I’m new to hail 0.2 and I have a question/suggestion for the function filter_intervals().
I have a MatrixTable loaded (ds), and I want to filter based on a set of intervals from a bed file:
bed = hl.import_bed(anno_path)
ds_filter = hl.filter_intervals(ds, bed.interval)
However, running this I get the following error:
TypeError: filter_intervals: parameter ‘intervals’: expected expression of type array<interval>, found <IntervalExpression of type interval<locus>>
So it seems like this operation require that I run bed.interval.collect(), thus returning an array (I have about 2M intervals), and then running filter_intervals? This appears sub-optimal to me - is there any other way I’m supposed to be using this function?