Exemplo n.º 1
0
 def extract(self, seq):
     ret = ''.join(map(lambda x: x.extract(seq), self.locations))
     if not self.forward:
         return trans.revcomp(ret)
     return ret
Exemplo n.º 2
0
 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