def format_qual_output(qual_array):
 qual_line_size = 60
 qual_scores = ''
 for slice in range(0, len(qual_array), qual_line_size):
  current_segment = qual_array[slice:(slice + qual_line_size)]
  current_segment = (' '.join((str(score) for score in current_segment)) + '\n')
  qual_scores += current_segment
 "qual_array = str(qual_array)\n    qual_array = qual_array.replace('[','')\n    qual_array = qual_array.replace(']','') "
 return qual_scores

def format_qual_output ( qual_array ) : qual_line_size = 60 qual_scores = '' for slice in range ( 0 , len ( qual_array ) , qual_line_size ) : current_segment = qual_array [ slice : ( slice + qual_line_size ) ] current_segment = ( ' ' . join ( ( str ( score ) for score in current_segment ) ) + '\n' ) qual_scores += current_segment "qual_array = str(qual_array)\n    qual_array = qual_array.replace('[','')\n    qual_array = qual_array.replace(']','') " return qual_scores
converts to string from numpy arrays .