#NEWLINE# def getAttributeField( self , full = True ) : #NEWLINE# #INDENT# aa = [ ] #NEWLINE# for ( k , v ) in self . attributes . items ( ) : #NEWLINE# #INDENT# if isinstance ( v , str ) : #NEWLINE# #INDENT# aa . append ( ( '%s "%s"' % ( k , v ) ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( isinstance ( v , list ) or isinstance ( v , tuple ) ) : #NEWLINE# #INDENT# aa . append ( ( '%s "%s"' % ( k , ' ' . join ( v ) ) ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# aa . append ( ( '%s %s' % ( k , str ( v ) ) ) ) #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# if full : #NEWLINE# #INDENT# return '; ' . join ( ( [ ( 'gene_id "%s"' % self . gene_id ) , ( 'transcript_id "%s"' % self . transcript_id ) ] + aa ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# return '; ' . join ( aa ) #NEWLINE# #UNINDENT# return self . attributes