@stable(as_of="0.4.0")
    def iter_contiguous(self, included, min_length=1, invert=False):
        idx = self._munge_to_index_array(included)
        if invert:
            idx = np.delete(np.arange(len(self)), idx)

        # Adapted from http://stackoverflow.com/a/7353335/579416
        for contig in np.split(idx, np.where(np.diff(idx) != 1)[0] + 1):
            r = self[contig]
            if len(r) >= min_length:
                yield r
Yield contiguous subsequences based on `included`.
dataset/ETHPy150Open biocore/scikit-bio/skbio/sequence/_sequence.py/Sequence.iter_contiguous