Bastien Boussau
unread,Feb 28, 2013, 9:22:21 PM2/28/13Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to dendrop...@googlegroups.com
Hi all,
I've been trying to use sumtree to summarize a sample of trees of my own making. These are ultrametric trees, and I'm interested in the topology as well as the uncertainty on node ages. Unfortunately, sumtree complains that these trees are not ultrametric, even though I consider they look ultrametric enough in Figtree (I attach a sample of 10 trees in case someone wants to have a look/make a test).
So I guess it's all a matter of threshold. Is there a way to set a threshold and say "if the deviation from a perfectly ultrametric tree is < threshold, still consider it as an ultrametric tree"? That would be very convenient for me I think.
Thanks!
Bastien.
PS: the command I used and its output:
sumtrees.py -b 0 --ultrametric --support-as-labels --output=consensus.tre2 outputTreesOMPAll.txt10First
======================================================================
SumTrees - Phylogenetic Tree Split Support Summarization
Version 3.3.1 (May 05 2011)
By Jeet Sukumaran and Mark T. Holder
(using the DendroPy Phylogenetic Computing Library Version 3.12.0)
======================================================================
Output file already exists: "consensus.tre2"
Overwrite (y/N)? y
SumTrees: Running in serial mode.
SumTrees: 1 source(s) to be processed.
SumTrees: Processing 1 of 1: 'outputTreesOMPAll.txt10First'
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/2.6/bin/sumtrees.py", line 5, in <module>
pkg_resources.run_script('DendroPy==3.12.0', 'sumtrees.py')
File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/setuptools-0.6c12dev_r88846-py2.6.egg/pkg_resources.py", line 489, in run_script
File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/setuptools-0.6c12dev_r88846-py2.6.egg/pkg_resources.py", line 1214, in run_script
File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/DendroPy-3.12.0-py2.6.egg/EGG-INFO/scripts/sumtrees.py", line 1049, in <module>
File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/DendroPy-3.12.0-py2.6.egg/EGG-INFO/scripts/sumtrees.py", line 722, in main_cli
File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/DendroPy-3.12.0-py2.6.egg/EGG-INFO/scripts/sumtrees.py", line 297, in process_sources_serial
File "build/bdist.macosx-10.3-fat/egg/dendropy/treesplit.py", line 580, in count_splits_on_tree
File "build/bdist.macosx-10.3-fat/egg/dendropy/dataobject/tree.py", line 1589, in calc_node_ages
ValueError: Tree is not ultrametric
I'm using the latest version of Dendropy I believe.
I put below the list of 10 trees that is causing problem, attaching it did not work.
((((((ANASP:0.342857,ANAVT:0.342857):0.685714,NOSP7:1.02857):0.742857,TRIEI:1.77143):0.0571429,((((CYAA5:0.857143,CYAP8:0.857143):0.571429,(CYAP7:1.37143,GLVIO1:1.37143):0.0571429):0.228571,SYNY3:1.65714):0.0571429,SYNP2:1.71429):0.114286):0.0571429,((THEEB:1.48571,CYAP4:1.48571):0.0571429,ACAM1:1.54286):0.342857):0.114286,(((SYNR3:1.31429,(((PROMM:0.228571,PROM3:0.228571):0.971429,((PRMAR1:0.8,SYNJB:0.8):0.171429,((PROM1:0.114286,PROMT:0.114286):0.8,((PROM9:0.514286,(PROM2:0.457143,(PROM0:0.4,PROMS:0.4):0.0571429):0.0571429):0.0571429,(PROM5:0.285714,PROMP:0.285714):0.285714):0.342857):0.0571429):0.228571):0.0571429,((SYNPW:0.628571,SYNS3:0.628571):0.457143,(SYNPX:0.742857,(SYNS9:0.685714,SYNSC:0.685714):0.0571429):0.342857):0.171429):0.0571429):0.285714,(SYNE7:0.0571429,SYNP6:0.0571429):1.54286):0.342857,((SYNJA:0.171429,PROM4:0.171429):0.971429,MICAN:1.14286):0.8):0.0571429);
((((((ANASP:0.342857,ANAVT:0.342857):0.685714,NOSP7:1.02857):0.742857,TRIEI:1.77143):0.0571429,((((CYAA5:0.857143,CYAP8:0.857143):0.571429,(CYAP7:1.37143,GLVIO1:1.37143):0.0571429):0.228571,SYNY3:1.65714):0.0571429,SYNP2:1.71429):0.114286):0.0571429,((THEEB:1.48571,CYAP4:1.48571):0.0571429,ACAM1:1.54286):0.342857):0.114286,(((SYNR3:1.31429,(((PROMM:0.228571,PROM3:0.228571):0.971429,((PRMAR1:0.8,SYNJB:0.8):0.171429,((PROM1:0.114286,PROMT:0.114286):0.8,((PROM9:0.514286,(PROM2:0.457143,(PROM0:0.4,PROMS:0.4):0.0571429):0.0571429):0.0571429,(PROM5:0.285714,PROMP:0.285714):0.285714):0.342857):0.0571429):0.228571):0.0571429,((SYNPW:0.628571,SYNS3:0.628571):0.457143,(SYNPX:0.742857,(SYNS9:0.685714,SYNSC:0.685714):0.0571429):0.342857):0.171429):0.0571429):0.285714,(SYNE7:0.0571429,SYNP6:0.0571429):1.54286):0.342857,((SYNJA:0.171429,PROM4:0.171429):0.971429,MICAN:1.14286):0.8):0.0571429);
((((((ANASP:0.342857,ANAVT:0.342857):0.685714,NOSP7:1.02857):0.742857,TRIEI:1.77143):0.0571429,((((CYAA5:0.857143,CYAP8:0.857143):0.571429,(CYAP7:1.37143,GLVIO1:1.37143):0.0571429):0.228571,SYNY3:1.65714):0.0571429,SYNP2:1.71429):0.114286):0.0571429,((THEEB:1.48571,CYAP4:1.48571):0.0571429,ACAM1:1.54286):0.342857):0.114286,(((SYNR3:1.31429,(((PROMM:0.228571,PROM3:0.228571):0.971429,((PRMAR1:0.8,SYNJB:0.8):0.171429,((PROM1:0.114286,PROMT:0.114286):0.8,((PROM9:0.514286,(PROM2:0.457143,(PROM0:0.4,PROMS:0.4):0.0571429):0.0571429):0.0571429,(PROM5:0.285714,PROMP:0.285714):0.285714):0.342857):0.0571429):0.228571):0.0571429,((SYNPW:0.628571,SYNS3:0.628571):0.457143,(SYNPX:0.742857,(SYNS9:0.685714,SYNSC:0.685714):0.0571429):0.342857):0.171429):0.0571429):0.285714,(SYNE7:0.0571429,SYNP6:0.0571429):1.54286):0.342857,((SYNJA:0.171429,PROM4:0.171429):0.971429,MICAN:1.14286):0.8):0.0571429);
((((((ANASP:0.342857,ANAVT:0.342857):0.685714,NOSP7:1.02857):0.742857,TRIEI:1.77143):0.0571429,((((CYAA5:0.857143,CYAP8:0.857143):0.571429,(CYAP7:1.37143,GLVIO1:1.37143):0.0571429):0.228571,SYNY3:1.65714):0.0571429,SYNP2:1.71429):0.114286):0.0571429,((THEEB:1.48571,CYAP4:1.48571):0.0571429,ACAM1:1.54286):0.342857):0.114286,(((SYNR3:1.31429,(((PROMM:0.228571,PROM3:0.228571):0.971429,((PRMAR1:0.8,SYNJB:0.8):0.171429,((PROM1:0.114286,PROMT:0.114286):0.8,((PROM9:0.514286,(PROM2:0.457143,(PROM0:0.4,PROMS:0.4):0.0571429):0.0571429):0.0571429,(PROM5:0.285714,PROMP:0.285714):0.285714):0.342857):0.0571429):0.228571):0.0571429,((SYNPW:0.628571,SYNS3:0.628571):0.457143,(SYNPX:0.742857,(SYNS9:0.685714,SYNSC:0.685714):0.0571429):0.342857):0.171429):0.0571429):0.285714,(SYNE7:0.0571429,SYNP6:0.0571429):1.54286):0.342857,((SYNJA:0.171429,PROM4:0.171429):0.971429,MICAN:1.14286):0.8):0.0571429);
((((((ANASP:0.342857,ANAVT:0.342857):0.685714,NOSP7:1.02857):0.742857,TRIEI:1.77143):0.0571429,((((CYAA5:0.857143,CYAP8:0.857143):0.571429,(CYAP7:1.37143,GLVIO1:1.37143):0.0571429):0.228571,SYNY3:1.65714):0.0571429,SYNP2:1.71429):0.114286):0.0571429,((THEEB:1.48571,CYAP4:1.48571):0.0571429,ACAM1:1.54286):0.342857):0.114286,(((SYNR3:1.31429,(((PROMM:0.228571,PROM3:0.228571):0.971429,((PRMAR1:0.8,SYNJB:0.8):0.171429,((PROM1:0.114286,PROMT:0.114286):0.8,((PROM9:0.514286,(PROM2:0.457143,(PROM0:0.4,PROMS:0.4):0.0571429):0.0571429):0.0571429,(PROM5:0.285714,PROMP:0.285714):0.285714):0.342857):0.0571429):0.228571):0.0571429,((SYNPW:0.628571,SYNS3:0.628571):0.457143,(SYNPX:0.742857,(SYNS9:0.685714,SYNSC:0.685714):0.0571429):0.342857):0.171429):0.0571429):0.285714,(SYNE7:0.0571429,SYNP6:0.0571429):1.54286):0.342857,((SYNJA:0.171429,PROM4:0.171429):0.971429,MICAN:1.14286):0.8):0.0571429);
((((((ANASP:0.342857,ANAVT:0.342857):0.685714,NOSP7:1.02857):0.742857,TRIEI:1.77143):0.0571429,((((CYAA5:0.857143,CYAP8:0.857143):0.571429,(CYAP7:1.37143,GLVIO1:1.37143):0.0571429):0.228571,SYNY3:1.65714):0.0571429,SYNP2:1.71429):0.114286):0.0571429,((THEEB:1.48571,CYAP4:1.48571):0.0571429,ACAM1:1.54286):0.342857):0.114286,(((SYNR3:1.31429,(((PROMM:0.228571,PROM3:0.228571):0.971429,((PRMAR1:0.8,SYNJB:0.8):0.171429,((PROM1:0.114286,PROMT:0.114286):0.8,((PROM9:0.514286,(PROM2:0.457143,(PROM0:0.4,PROMS:0.4):0.0571429):0.0571429):0.0571429,(PROM5:0.285714,PROMP:0.285714):0.285714):0.342857):0.0571429):0.228571):0.0571429,((SYNPW:0.628571,SYNS3:0.628571):0.457143,(SYNPX:0.742857,(SYNS9:0.685714,SYNSC:0.685714):0.0571429):0.342857):0.171429):0.0571429):0.285714,(SYNE7:0.0571429,SYNP6:0.0571429):1.54286):0.342857,((SYNJA:0.171429,PROM4:0.171429):0.971429,MICAN:1.14286):0.8):0.0571429);
((((((ANASP:0.342857,ANAVT:0.342857):0.685714,NOSP7:1.02857):0.742857,TRIEI:1.77143):0.0571429,((((CYAA5:0.857143,CYAP8:0.857143):0.571429,(CYAP7:1.37143,GLVIO1:1.37143):0.0571429):0.228571,SYNY3:1.65714):0.0571429,SYNP2:1.71429):0.114286):0.0571429,((THEEB:1.48571,CYAP4:1.48571):0.0571429,ACAM1:1.54286):0.342857):0.114286,(((SYNR3:1.31429,(((PROMM:0.228571,PROM3:0.228571):0.971429,((PRMAR1:0.8,SYNJB:0.8):0.171429,((PROM1:0.114286,PROMT:0.114286):0.8,((PROM9:0.514286,(PROM2:0.457143,(PROM0:0.4,PROMS:0.4):0.0571429):0.0571429):0.0571429,(PROM5:0.285714,PROMP:0.285714):0.285714):0.342857):0.0571429):0.228571):0.0571429,((SYNPW:0.628571,SYNS3:0.628571):0.457143,(SYNPX:0.742857,(SYNS9:0.685714,SYNSC:0.685714):0.0571429):0.342857):0.171429):0.0571429):0.285714,(SYNE7:0.0571429,SYNP6:0.0571429):1.54286):0.342857,((SYNJA:0.171429,PROM4:0.171429):0.971429,MICAN:1.14286):0.8):0.0571429);
((((((ANASP:0.342857,ANAVT:0.342857):0.685714,NOSP7:1.02857):0.742857,TRIEI:1.77143):0.0571429,((((CYAA5:0.857143,CYAP8:0.857143):0.571429,(CYAP7:1.37143,GLVIO1:1.37143):0.0571429):0.228571,SYNY3:1.65714):0.0571429,SYNP2:1.71429):0.114286):0.0571429,((THEEB:1.48571,CYAP4:1.48571):0.0571429,ACAM1:1.54286):0.342857):0.114286,(((SYNR3:1.31429,(((PROMM:0.228571,PROM3:0.228571):0.971429,((PRMAR1:0.8,SYNJB:0.8):0.171429,((PROM1:0.114286,PROMT:0.114286):0.8,((PROM9:0.514286,(PROM2:0.457143,(PROM0:0.4,PROMS:0.4):0.0571429):0.0571429):0.0571429,(PROM5:0.285714,PROMP:0.285714):0.285714):0.342857):0.0571429):0.228571):0.0571429,((SYNPW:0.628571,SYNS3:0.628571):0.457143,(SYNPX:0.742857,(SYNS9:0.685714,SYNSC:0.685714):0.0571429):0.342857):0.171429):0.0571429):0.285714,(SYNE7:0.0571429,SYNP6:0.0571429):1.54286):0.342857,((SYNJA:0.171429,PROM4:0.171429):0.971429,MICAN:1.14286):0.8):0.0571429);
((((((ANASP:0.342857,ANAVT:0.342857):0.685714,NOSP7:1.02857):0.742857,TRIEI:1.77143):0.0571429,((((CYAA5:0.857143,CYAP8:0.857143):0.571429,(CYAP7:1.37143,GLVIO1:1.37143):0.0571429):0.228571,SYNY3:1.65714):0.0571429,SYNP2:1.71429):0.114286):0.0571429,((THEEB:1.48571,CYAP4:1.48571):0.0571429,ACAM1:1.54286):0.342857):0.114286,(((SYNR3:1.31429,(((PROMM:0.228571,PROM3:0.228571):0.971429,((PRMAR1:0.8,SYNJB:0.8):0.171429,((PROM1:0.114286,PROMT:0.114286):0.8,((PROM9:0.514286,(PROM2:0.457143,(PROM0:0.4,PROMS:0.4):0.0571429):0.0571429):0.0571429,(PROM5:0.285714,PROMP:0.285714):0.285714):0.342857):0.0571429):0.228571):0.0571429,((SYNPW:0.628571,SYNS3:0.628571):0.457143,(SYNPX:0.742857,(SYNS9:0.685714,SYNSC:0.685714):0.0571429):0.342857):0.171429):0.0571429):0.285714,(SYNE7:0.0571429,SYNP6:0.0571429):1.54286):0.342857,((SYNJA:0.171429,PROM4:0.171429):0.971429,MICAN:1.14286):0.8):0.0571429);
((((((ANASP:0.342857,ANAVT:0.342857):0.685714,NOSP7:1.02857):0.742857,TRIEI:1.77143):0.0571429,((((CYAA5:0.857143,CYAP8:0.857143):0.571429,(CYAP7:1.37143,GLVIO1:1.37143):0.0571429):0.228571,SYNY3:1.65714):0.0571429,SYNP2:1.71429):0.114286):0.0571429,((THEEB:1.48571,CYAP4:1.48571):0.0571429,ACAM1:1.54286):0.342857):0.114286,(((SYNR3:1.31429,(((PROMM:0.228571,PROM3:0.228571):0.971429,((PRMAR1:0.8,SYNJB:0.8):0.171429,((PROM1:0.114286,PROMT:0.114286):0.8,((PROM9:0.514286,(PROM2:0.457143,(PROM0:0.4,PROMS:0.4):0.0571429):0.0571429):0.0571429,(PROM5:0.285714,PROMP:0.285714):0.285714):0.342857):0.0571429):0.228571):0.0571429,((SYNPW:0.628571,SYNS3:0.628571):0.457143,(SYNPX:0.742857,(SYNS9:0.685714,SYNSC:0.685714):0.0571429):0.342857):0.171429):0.0571429):0.285714,(SYNE7:0.0571429,SYNP6:0.0571429):1.54286):0.342857,((SYNJA:0.171429,PROM4:0.171429):0.971429,MICAN:1.14286):0.8):0.0571429);