def duplication(self,start,end,fold=1):
        start = int(start)
        end   = int(end)
        assert start < end
        dupseq = self.seq[start:end]
        for i in range(fold):
            dupseq = dupseq + self.seq[start:end]
        self.seq = self.seq[:start] + dupseq + self.seq[end:]
duplicates sequence between start and end, bases at start and end positions are not included
dataset/ETHPy150Open adamewing/bamsurgeon/bamsurgeon/mutableseq.py/MutableSeq.duplication