Exemplo n.º 1
0
    def test_ens2sym(self):
        client=SmartClient()
        id_types=['gene_ensembl','gene_symbol']
        key='2'.join(id_types)

        cache_path=client._get_cache_path(id_types)
        client.load(id_types)
        self.assertTrue(os.path.exists(cache_path)) # newly created

        self.assertIn(key, client.tables, 'no %s in tables' % key)
        ens2sym=client.get_map(*id_types)
        self.assertEqual(ens2sym['ENSG00000011021'],'CLCN6')
Exemplo n.º 2
0
def get_output_map(output_type):
    client=SmartClient()
    client.load(['gene_known',output_type])
    return client.get_map('gene_known', output_type)