def get_variant_details(self, variant_id): "Get the details for a variant given an ID" variant_url = utils.civic_api_url() + 'variants/' + str(variant_id) return requests.get(variant_url, verify = False).json()
def get_civic_genes(self): "Get a list of genes from CIVIC" genes_url = utils.civic_api_url() + 'genes?count=' + str(self.args.max_gene_count) self.genes = sorted(requests.get(genes_url, verify = False).json(), \ key=lambda key: int(key['id']))