Пример #1
0
 def run():
     fname = os.path.join(os.path.dirname(__file__), "data", self.base)
     nucl = fa.parse("%s.ffn" % fname)
     prot = fa.parse("%s.faa" % fname)
     feat = t.gb.parse("%s.gbk" % fname).next()
     func(nucl, prot, feat)
Пример #2
0
 def run():
     rec = fa.parse(fname, **self.kwargs)
     if self.num is not None:
         rec = list(rec)[self.num]
     func(rec)