def test_gene_ids_from_protein(self): ret_by_id = get_gene_ids("ENSP00000288135", "protein") self.assertTrue("ENSG00000157404" in ret_by_id)
def test_gene_ids_from_exon(self): ret_by_id = get_gene_ids("ENSE00001074448", "exon") self.assertTrue("ENSG00000157404" in ret_by_id)
def test_gene_ids_from_gene(self): ret_by_id = get_gene_ids("ENSG00000157404", "gene") ret_by_name = get_gene_ids("KIT", "gene") self.assertTrue("ENSG00000157404" in ret_by_id) self.assertTrue("ENSG00000157404" in ret_by_name) self.assertEqual(ret_by_id, ret_by_name)
def test_gene_ids_from_cds(self): ret_by_id = get_gene_ids("ENST00000288135", "cds") ret_by_name = get_gene_ids("KIT-201", "cds") self.assertTrue("ENSG00000157404" in ret_by_id) self.assertTrue("ENSG00000157404" in ret_by_name) self.assertEqual(ret_by_id, ret_by_name)