#NEWLINE# def read( self , line ) : #NEWLINE# #INDENT# 'read gff entry from line in GTF/GFF format.\n\n        <seqname> <source> <feature> <start> <end> <score>               <strand> <frame> [attributes] [comments]\n        ' #NEWLINE# data = line [ : ( - 1 ) ] . split ( '\t' ) #NEWLINE# try : #NEWLINE# #INDENT# ( self . contig , self . source , self . feature , self . start , self . end , self . score , self . strand , self . frame ) = data [ : 8 ] #NEWLINE# #UNINDENT# except ValueError : #NEWLINE# #INDENT# raise ValueError ( ( 'parsing error in line `%s`' % data ) ) #NEWLINE# #UNINDENT# ( self . start , self . end ) = map ( int , ( self . start , self . end ) ) #NEWLINE# self . start -= 1 #NEWLINE# self . parseInfo ( data [ 8 ] , line )