# Read interval files with multiple columns and annotate a VariantDataset

**URL:** <https://discuss.hail.is/t/read-interval-files-with-multiple-columns-and-annotate-a-variantdataset/177>\
**Category:** Feature Requests\
**Created:** [March 29, 2017, 8:58pm UTC](https://discuss.hail.is/t/read-interval-files-with-multiple-columns-and-annotate-a-variantdataset/177 "2017-03-29T20:58:04Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Andrea\_Ganna](https://avatars.discourse-cdn.com/v4/letter/a/ecc23a/32.png) [@Andrea\_Ganna](https://discuss.hail.is/u/Andrea_Ganna)\
**Post date:** [March 29, 2017, 8:58pm UTC](https://discuss.hail.is/t/read-interval-files-with-multiple-columns-and-annotate-a-variantdataset/177/1 "2017-03-29T20:58:04Z")

</div>

A lot of annotations are in interval format. For the same interval it is common to have multiple information. For example: `chr1:1000-10000 34 ABC 3000 1 2`. Where the different values are different information related to that interval.  
Now it is possible to read this file as keytable using `import_keytable` as described here: `https://hail.is/hail/hail.HailContext.html?highlight=import_keytable#hail.HailContext.import_keytable`. However is not possible to annotate a VariantDataset using a keytable with an interval key.  
therefore it will be good to have a function that allows that, maybe it can simply be a generalization of `annotate_variants_keytable` to handle intervals.

thanks
