#NEWLINE# def test_maps( self ) : #NEWLINE# #INDENT# 'Test mapping between different databases' #NEWLINE# mrna = self . iface . trans_db [ 'ENST00000000233' ] #NEWLINE# gene = self . iface . gene_db [ 'ENSG00000168958' ] #NEWLINE# prot = self . iface . prot_db [ 'ENSP00000372525' ] #NEWLINE# exon = self . iface . exon_db [ 'ENSE00000720378' ] #NEWLINE# trans_of_prot = self . iface . protein_transcript_id_map [ prot ] #NEWLINE# self . assertEqual ( repr ( trans_of_prot . id ) , "'ENST00000383052'" ) #NEWLINE# prot_of_mrna = ( ~ self . iface . protein_transcript_id_map ) [ mrna ] #NEWLINE# self . assertEqual ( repr ( prot_of_mrna . id ) , "'ENSP00000000233'" ) #NEWLINE# trans_of_gene = self . iface . transcripts_in_genes_map [ gene ] . keys ( ) #NEWLINE# self . assertEqual ( repr ( trans_of_gene ) , '[annotENST00000353339[0:32595], annotENST00000409565[0:32541], annotENST00000409616[0:31890], annotENST00000354503[0:32560], annotENST00000349901[0:32560], annotENST00000337110[0:32560], annotENST00000304593[0:32560], annotENST00000392059[0:30316], annotENST00000392058[0:28082]]' ) #NEWLINE# gene_of_mrna = ( ~ self . iface . transcripts_in_genes_map ) [ mrna ] . keys ( ) #NEWLINE# self . assertEqual ( repr ( gene_of_mrna ) , '[annotENSG00000004059[0:3295]]' ) #NEWLINE# trans_of_exon = self . iface . ens_transcripts_of_exons_map [ exon ] . keys ( ) #NEWLINE# self . assertEqual ( repr ( trans_of_exon ) , '[annotENST00000000233[0:3295]]' ) #NEWLINE# exons_of_mrna = self . iface . ens_exons_in_transcripts_map [ mrna ] . keys ( ) #NEWLINE# self . assertEqual ( repr ( exons_of_mrna ) , '[annotENSE00001123404[0:161], annotENSE00000720374[0:81], annotENSE00000720378[0:110], annotENSE00000720381[0:72], annotENSE00000720384[0:126], annotENSE00000882271[0:487]]' )