brokilon.ccd.domain.phylogeography module¶
- brokilon.ccd.domain.phylogeography._find_deme(node, geo_ann_str)[source]¶
From the node find the nearest node below that is either a leaf or a binary node. This is to ignore nodes that are along edges with state changes between binary nodes of the tree. (Might be possible to summarize the number of changes at some point but not now!)
- Parameters:
node – A node in a tree
geo_ann_str – The attribute name to return
- Returns:
returns the value of the attribute of the nearest binary/leaf node
- brokilon.ccd.domain.phylogeography.get_geo_map_tree(geo_ccd_map, geo_ann_str, taxon_map=None, branch_length_map={}, clade_count_map=None)[source]¶