Did I find the right examples for you? yes no      Crawl my project      Python Jobs

# cogent.maths.unifrac.fast_tree.G

All Samples(2)  |  Call(0)  |  Derive(0)  |  Import(2)

```dist_weighted_normalized_unifrac = make_unifrac_metric('correct',
fast_tree.weighted_unifrac, True)
dist_unifrac_g = make_unifrac_metric(False, fast_tree.G, False)
dist_unifrac_g_full_tree = make_unifrac_metric(False,
fast_tree.unnormalized_G, False)
```
```one_sample_weighted_normalized_unifrac = make_unifrac_row_metric('correct',
fast_tree.weighted_unifrac, True)
one_sample_unifrac_g = make_unifrac_row_metric(False, fast_tree.G, False)
one_sample_unifrac_g_full_tree = make_unifrac_row_metric(False,
fast_tree.unnormalized_G, False)
```

```dist_weighted_normalized_unifrac = make_unifrac_metric('correct',
fast_tree.weighted_unifrac, True)
dist_unifrac_g = make_unifrac_metric(False, fast_tree.G, False)
dist_unifrac_g_full_tree = make_unifrac_metric(False,
fast_tree.unnormalized_G, False)
```
```one_sample_weighted_normalized_unifrac = make_unifrac_row_metric('correct',
fast_tree.weighted_unifrac, True)
one_sample_unifrac_g = make_unifrac_row_metric(False, fast_tree.G, False)
one_sample_unifrac_g_full_tree = make_unifrac_row_metric(False,
fast_tree.unnormalized_G, False)
```

```from cogent.util.unit_test import TestCase, main
from cogent.parse.tree import DndParser
from cogent.maths.unifrac.fast_tree import (count_envs, sum_env_dict,
index_envs, get_branch_lengths, index_tree, bind_to_array,
bind_to_parent_array, _is_parent_empty, delete_empty_parents,
```

```from cogent.util.unit_test import TestCase, main