Input files accepted by treeKO

Single tree file

The main input of treeKO are trees in newick format. These trees can either be rooted or unrooted. If they are unrooted, the program will root the tree according to the rooting method that the user has selected in the configuration file or it will use the default method. Information regarding duplication and speciation nodes can be provided by the user using the extended newick format (NHX http://phylosoft.org/NHX/). In order to use it, each internal node in the tree should be labeled with a tag like &&NHX:evoltype=“S” in the case of a speciation node or like &&NHX:evoltype=“D” in the case of a duplication node. See the example below:

((A:0.060947,B:0.674458)0.304000:0.040684[&&NHX:evoltype=S],(C:0.297950,(D1:0.499928,(E:0.427602,(D2:0.670545,D3:0.418440)0.998000:0.355432[&&NHX:evoltype=D])0.896000:0.109511[&&NHX:evoltype=S])0.999850:0.378397[&&NHX:evoltype=D])0.304000:0.040684[&&NHX:evoltype=S])[&&NHX:evoltype=S];

Multifurcations should also be marked using a similar code: &&NHX:evoltype=“MD” when a collapsed node contains more than one sequence per species and &&NHX:evoltype=“MS” when there is one sequence per species.

Additionally you can mark horizontal gene transfer events on your tree. In this case the node will be annotated as &&NHX:HGT=True.


List of trees

Instead of a second tree, a list of trees can also be provided. This list can have one of these four formats:

seed_name <tab> path_to_tree_file seed_name <tab> tree_in_newick_format path_to_tree_file tree_in_newick_format

TreeKO's configuration file

Several parameters can be modified for treeKO to adapt better to the users particular needs. In order to change the default parameters, treeKO will need a configuration file that should be included in the command line with the -c option.

python treeKO.py -a tree_file_1 -b tree_file_2 -o output_file_name -c configuration_file

The configuration file can be used to change the rooting method, the orthology prediction method, printing information or to limit the number of pruned trees allowed during the use of TreeKO. Detailed information about the configuration file can be found here.

CRG logoBSC logoIRB logo