This repository has been archived by the owner on Dec 16, 2022. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Variant: add index based field getter API
individual and shared fields can be more efficiently accessed via indices looked up from the header once instead of doing the hash lookups every time you access a field (during traversal). This commit adds that functionality. * add field index API to the VariantHeader * refactor code duplication in INDIVIDUAL and INFO field API * avoid double index lookup in the unforgiving field getter API * add tests for missing indices in the header ps: tests for the by_index API are written in terms of the field getter API that accepts conversion. Exceptions are on the tests commented out that require #187 to be implemented. Hence why a few are not covered. fixes #162
- Loading branch information
Mauricio Carneiro
committed
Aug 20, 2014
1 parent
6d66b0d
commit eb3cbfb
Showing
8 changed files
with
263 additions
and
99 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.