def sequence_case(data):
 (left, right) = return_merged_clips(data)
 seq = data['bases']
 if (left >= right):
  new_seq = seq.lower()
 else:
  new_seq = ''.join((seq[:(left - 1)].lower(), seq[(left - 1):right], seq[right:].lower()))
 return new_seq

def sequence_case ( data ) : ( left , right ) = return_merged_clips ( data ) seq = data [ 'bases' ] if ( left >= right ) : new_seq = seq . lower ( ) else : new_seq = '' . join ( ( seq [ : ( left - 1 ) ] . lower ( ) , seq [ ( left - 1 ) : right ] , seq [ right : ] . lower ( ) ) ) return new_seq
given the data for one read it returns the seq with mixed case .