#NEWLINE# def _make_table( self , options ) : #NEWLINE# #INDENT# table = [ ] #NEWLINE# table . append ( 't_chrom\tt_cov\tq_chrom\tq_cov\tbases aligned' ) #NEWLINE# tchrom = self . cov [ 0 ] [ 0 ] #NEWLINE# j = 0 #NEWLINE# for i in self . cov : #NEWLINE# #INDENT# if ( i [ 0 ] != tchrom ) : #NEWLINE# #INDENT# tchrom = i [ 0 ] #NEWLINE# j = 0 #NEWLINE# #UNINDENT# if ( j < options . nperchrom ) : #NEWLINE# #INDENT# table . append ( '{}\t{:.2f}\t{}\t{:.2f}\t{:,}' . format ( i [ 0 ] , i [ 1 ] , i [ 2 ] , i [ 3 ] , i [ 4 ] ) ) #NEWLINE# j += 1 #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# continue #NEWLINE# #UNINDENT# #UNINDENT# table . append ( '' ) #NEWLINE# return table