parameters: (self, min_split_read_size)
return_statement: return split_read_parts
docstring: Returns the read split into parts as determined by the middle_trim_positions set.
docstring_summary: Returns the read split into parts as determined by the middle_trim_positions set.
docstring_tokens: Returns the read split into parts as determined by the middle_trim_positions set .
function: def get_split_read_parts(self, min_split_read_size):
          """
          Returns the read split into parts as determined by the middle_trim_positions set.
          """
          trimmed_seq = self.get_seq_with_start_end_adapters_trimmed()
          trimmed_quals = self.get_quals_with_start_end_adapters_trimmed()
          split_read_parts = []
          part_seq, part_quals = [], []
          for i in range(len(trimmed_seq)):
              if i in self.middle_trim_positions:
                  if part_seq:
                      split_read_parts.append((''.join(part_seq), ''.join(part_quals)))
                      part_seq, part_quals = [], []
              else:
                  part_seq.append(trimmed_seq[i])
                  part_quals.append(trimmed_quals[i])
          if part_seq:
              split_read_parts.append((''.join(part_seq), ''.join(part_quals)))
          split_read_parts = [x for x in split_read_parts if len(x[0]) >= min_split_read_size]
          return split_read_parts
function_tokens: def get_split_read_parts ( self , min_split_read_size ) : trimmed_seq = self . get_seq_with_start_end_adapters_trimmed ( ) trimmed_quals = self . get_quals_with_start_end_adapters_trimmed ( ) split_read_parts = [ ] part_seq , part_quals = [ ] , [ ] for i in range ( len ( trimmed_seq ) ) : if i in self . middle_trim_positions : if part_seq : split_read_parts . append ( ( '' . join ( part_seq ) , '' . join ( part_quals ) ) ) part_seq , part_quals = [ ] , [ ] else : part_seq . append ( trimmed_seq [ i ] ) part_quals . append ( trimmed_quals [ i ] ) if part_seq : split_read_parts . append ( ( '' . join ( part_seq ) , '' . join ( part_quals ) ) ) split_read_parts = [ x for x in split_read_parts if len ( x [ 0 ] ) >= min_split_read_size ] return split_read_parts