News and Announcements » |
Description:
This script takes a tree and a list of OTU IDs (in one of several supported formats) and outputs a subtree retaining only the tips on the tree which are found in the inputted list of OTUs (or not found, if the –negate option is provided).
Usage: filter_tree.py [options]
Input Arguments:
Note
[REQUIRED]
[OPTIONAL]
Output:
Output is a pruned tree in newick format.
Prune a tree to include only the tips in tips_to_keep.txt:
filter_tree.py -i rep_seqs.tre -t tips_to_keep.txt -o rep_seqs_subtree.tre
Prune a tree to remove the tips in tips_to_remove.txt. Note that the -n/–negate option must be passed for this functionality.:
filter_tree.py -i rep_seqs.tre -t tips_to_remove.txt -o rep_seqs_subtree.tre -n