#NEWLINE# def get_annot_db( self , table , primaryKey = 'name' , sliceAttrDict = dict ( id = 'chrom' , start = 'chromStart' , stop = 'chromEnd' ) ) : #NEWLINE# #INDENT# 'generic method to obtain an AnnotationDB for any\n        annotation table in UCSC, e.g. snp130.  If your target table\n        has non-standard name, start, end columns, specify them in\n        the primaryKey and sliceAttrDict args.\n        Saves table as named attribute on this package object.' #NEWLINE# try : #NEWLINE# #INDENT# return getattr ( self , sliceAttrDict ) #NEWLINE# #UNINDENT# except AttributeError : #NEWLINE# #INDENT# pass #NEWLINE# #UNINDENT# sliceDB = sqlgraph . SQLTable ( ( ( self . ucsc_db + '.' ) + table ) , primaryKey = primaryKey , serverInfo = self . ucsc_server , itemClass = UCSCSeqIntervalRow ) #NEWLINE# annoDB = annotation . AnnotationDB ( sliceDB , self . genome_seq , checkFirstID = False , sliceAttrDict = sliceAttrDict ) #NEWLINE# setattr ( self , table , annoDB ) #NEWLINE# return annoDB