def test_rctruncate(self):
        seq= -self.seq
        assert str(seq[-202020202:5]) == 'ctgga'
        assert seq[-202020202:5] == seq[0:5]
        assert seq[-2020202:] == seq
        assert str(seq[-202020202:-5]) == 'ctggagcatagt'
        assert str(seq[-5:2029]) == 'caaat'
        assert str(seq[-5:]) == 'caaat'
        try:
            seq[999:10000]
            raise ValueError('failed to trap out of bounds slice')
        except IndexError:
            pass
        try:
            seq[-10000:-3000]
            raise ValueError('failed to trap out of bounds slice')
        except IndexError:
            pass
        try:
            seq[1000:]
            raise ValueError('failed to trap out of bounds slice')
        except IndexError:
            pass
Sequence reverse complement truncate
dataset/ETHPy150Open cjlee112/pygr/tests/sequence_test.py/Sequence_Test.test_rctruncate