This is PR1 in issue #96.
This pull request moves the ensembl access out of the LocalDB.__get_associations() and GwasApi.__get_associations()-methods and moves them to the associations_for_regions()-methods. This makes it easier to control how the ensembl REST API is accessed.
After this, the biallelic check in PR 2 (TODO) is implemented, and after that, the actual ratelimiting for the ensembl API is implemented in PR 3 (TODO).
This is PR1 in issue #96. This pull request moves the ensembl access out of the
LocalDB.__get_associations()
andGwasApi.__get_associations()
-methods and moves them to theassociations_for_regions()
-methods. This makes it easier to control how the ensembl REST API is accessed.After this, the biallelic check in PR 2 (TODO) is implemented, and after that, the actual ratelimiting for the ensembl API is implemented in PR 3 (TODO).