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)
def run(): rec = fa.parse(fname, **self.kwargs) if self.num is not None: rec = list(rec)[self.num] func(rec)