Пример #1
0
 def populate_test(self, tree_filepath, splitscsv_filepath,
                   expected_num_trees):
     self.tree_filepath = pathmap.data_source_path(tree_filepath)
     self.taxa_filepath = self.tree_filepath
     self.splitscsv_filepath = pathmap.data_source_path(
         splitscsv_filepath)
     self.expected_num_trees = expected_num_trees
     self.expected_split_freqs = dict([
         (s[0], int(s[1]))
         for s in csv.reader(open(self.splitscsv_filepath, "rU"))
     ])
Пример #2
0
 def setUp(self):
     self.taxa_filepath = pathmap.data_source_path(["trees", "feb032009.tre"])
     self.expected_taxlabels = ("T01", "T02", "T03", "T04", "T05", "T06",
                                "T07", "T08", "T09", "T10", "T11", "T12", "T13", "T14",
                                "T15", "T16", "T17", "T18", "T19", "T20", "T21", "T22",
                                "T23", "T24", "T25", "T26", "T27", "T28", "T29", "T30",
                                "T31", "T32", "T33", "T34", "T35", "T36", "T37", "T38",
                                "T39", "T40", "T41", "T42", "T43", "T44", "T45", "T46",
                                "T47", "T48", "T49", "T50", "T51", "T52", "T53", "T54",
                                "T55", "T56", "T57", "T58", "T59")
Пример #3
0
 def setUp(self):
     self.taxa_filepath = pathmap.data_source_path(
         ["chars", "primates.chars.nexus"])
     self.expected_taxlabels = (
         "Lemur catta",
         "H**o sapiens",
         "Pan",
         "Gorilla",
         "Pongo",
         "Hylobates",
         "Macaca fuscata",
         "Macaca mulatta",
         "Macaca fascicularis",
         "Macaca sylvanus",
         "Saimiri sciureus",
         "Tarsius syrichta",
     )
Пример #4
0
 def populate_test(self, tree_filepath, splitscsv_filepath, expected_num_trees):
     self.tree_filepath = pathmap.data_source_path(tree_filepath)
     self.taxa_filepath = self.tree_filepath
     self.splitscsv_filepath = pathmap.data_source_path(splitscsv_filepath)
     self.expected_num_trees = expected_num_trees
     self.expected_split_freqs = dict([ (s[0], int(s[1])) for s in csv.reader(open(self.splitscsv_filepath, "rU"))])
Пример #5
0
 def setUp(self):
     self.taxa_filepath = pathmap.data_source_path(["chars", "primates.chars.nexus"])
     self.expected_taxlabels = ("Lemur catta", "H**o sapiens",
             "Pan", "Gorilla", "Pongo", "Hylobates", "Macaca fuscata",
             "Macaca mulatta", "Macaca fascicularis", "Macaca sylvanus",
             "Saimiri sciureus", "Tarsius syrichta", )