This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# encoding: utf-8 | |
import sys | |
import argparse | |
def interface(): | |
parser = argparse.ArgumentParser() | |
parser.add_argument('--rm-short-reads', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def topology_test(tree, query_tree, symmetric_distance=False): | |
"""Given a tree and a query tree this function tests if the query tree is present or identical to the | |
tree. If 'symmetric_distance' is set to True the symmetric distance of the query tree to the relavent taxa in the | |
tree is returned. | |
Both trees should be tree objects and contain idential taxon labels. | |
Examples: | |
-------- |
NewerOlder