Пример #1
0
 def _test_genstr(self):
     """
     GenStr
     """
     path = os.path.join(self.PATH, "genstr")
     gstr = GenStr.from_file(os.path.join(path, "out"))
     gstr.get_idx_same_str(os.path.join(path, "strs", "2"))
     gstr.extract_strs((6, 1), os.path.join(path, "strs", "*", "str.out"), os.path.join(path, "extracts"))
Пример #2
0
def extract_equivs(gexfx, sexfx):
    """
    単位胞あたりの交換するサイト数と固定サイト数をそれぞれ与える
    """
    gstr = GenStr.from_file("genstr.out", gexfx)
    gstr.extract_strs(sexfx)