opencb / iva

Generic Interactive Variant Analysis browser
Apache License 2.0
29 stars 18 forks source link

Set biotype as a configuration parameter #128

Closed jpflorido closed 6 years ago

jpflorido commented 7 years ago

Biotypes (protein_coding, pseudogene) can be used as a filtering option in prioritization. The list of possible biotypes are obtained from cellbase each time a user loads priotitization tool through cellbaseClientObtained function in variant-browser-filter.html and variant-clinical-filter, so, it is an unnecessary load of data, since this information does not change frequently. Furthermore, it would be great if the user can customize the biotype values to be shown at the same time.

For this reason, biotype information can be used as a parameter in the web components that make use of them: variant-browser-filter.html and variant-clinical-filter.html. The biotype values can be set in config.js in an array named bioTypes. This array will then be used in variant-browser-filter and variant-clinical.filter.html to fill the select input. The procedure is similar to other parameters, such as consequenceTypes or populationFrequencies.