' postfix = '' i = 0 naseq.each_char.with_index do |c, i| sc = scores[i] bgcol = SCORE2COLOR_BG[sc] col = SCORE2COLOR_CHAR[sc] prefix = %Q() html += prefix + c + postfix html += br(i += 1) end html + '
' end # returns colorized html doc def fastq2html(definition, naseq, scores) html = display(naseq, scores) return ['