#NEWLINE# def _processData( self , fname , process , init , skipFirstLine = False ) : #NEWLINE# #INDENT# f = file ( fname , 'r' ) #NEWLINE# data = csv . reader ( f , delimiter = '\t' , quotechar = None , escapechar = None ) #NEWLINE# if ( process is None ) : #NEWLINE# #INDENT# res = [ ] #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# res = ( [ None ] * init ) #NEWLINE# #UNINDENT# indexShift = 0 #NEWLINE# for ( i , r ) in enumerate ( data ) : #NEWLINE# #INDENT# if skipFirstLine : #NEWLINE# #INDENT# skipFirstLine = False #NEWLINE# indexShift = 1 #NEWLINE# continue #NEWLINE# #UNINDENT# if ( init is None ) : #NEWLINE# #INDENT# res . append ( process ( r ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# res [ ( i - indexShift ) ] = process ( r ) #NEWLINE# #UNINDENT# #UNINDENT# f . close ( ) #NEWLINE# return res