def extract(self, seq): ret = ''.join(map(lambda x: x.extract(seq), self.locations)) if not self.forward: return trans.revcomp(ret) return ret
def extract(self, seq): # end+1 to account for python slice semantics ret = seq[self.start.coord:self.end.coord+1] if not self.forward: return trans.revcomp(ret) return ret