code: def rotate(self, n):
          '''Rotate Sequence by n bases.
  
          :param n: Number of bases to rotate.
          :type n: int
          :returns: The current sequence reoriented at `index`.
          :rtype: coral.sequence._sequence.Sequence
          :raises: ValueError if applied to linear sequence or `index` is
                   negative.
  
          '''
          if not self.circular and n != 0:
              raise ValueError('Cannot rotate a linear sequence')
          else:
              rotated = self[-n:] + self[:-n]
              return rotated.circularize(f rotate(self, n):
          '''Rotate Sequence by n bases.
  
          :param n: Number of bases to rotate.
          :type n: int
          :returns: The current sequence reoriented at `index`.
          :rtype: coral.sequence._sequence.Sequence
          :raises: ValueError if applied to linear sequence or `index` is
                   negative.
  
          '''
          if not self.circular and n != 0:
              raise ValueError('Cannot rotate a linear sequence')
          else:
              rotated = self[-n:] + self[:-n]
              return rotated.circularize()
docs: Rotate Sequence by n bases.
  
          :param n: Number of bases to rotate.
          :type n: int
          :returns: The current sequence reoriented at `index`.
          :rtype: coral.sequence._sequence.Sequence
          :raises: ValueError if applied to linear sequence or `index` is
                   negative.