def reverse_complement(self): cseq = complement(self.sequence) rcseq = reverse(cseq) return type(self)(rcseq, self.name)
def reverse(self): rsequence = reverse(self.sequence) return type(self)(rsequence, self.name)