code: def _flip_feature(self, feature, parent_len):
      '''Adjust a feature's location when flipping DNA.
  
      :param feature: The feature to flip.
      :type feature: coral.Feature
      :param parent_len: The length of the sequence to which the feature belongs.
      :type parent_len: int
  
      '''
      copy = feature.copy()
      # Put on the other strand
      if copy.strand == 0:
          copy.strand = 1
      else:
          copy.strand = 0
      # Adjust locations - guarantee that start is always less than end
      copy.start = parent_len - copy.start
      copy.stop = parent_len - copy.stop
      copy.start, copy.stop = copy.stop, copy.start
      return copf _flip_feature(self, feature, parent_len):
      '''Adjust a feature's location when flipping DNA.
  
      :param feature: The feature to flip.
      :type feature: coral.Feature
      :param parent_len: The length of the sequence to which the feature belongs.
      :type parent_len: int
  
      '''
      copy = feature.copy()
      # Put on the other strand
      if copy.strand == 0:
          copy.strand = 1
      else:
          copy.strand = 0
      # Adjust locations - guarantee that start is always less than end
      copy.start = parent_len - copy.start
      copy.stop = parent_len - copy.stop
      copy.start, copy.stop = copy.stop, copy.start
      return copy
docs: Adjust a feature's location when flipping DNA.
  
      :param feature: The feature to flip.
      :type feature: coral.Feature
      :param parent_len: The length of the sequence to which the feature belongs.
      :type parent_len: int