jhcepas/ete — Issue #47: get_balance_age_outgroup
Author: jhcepas
Created: 2012-02-24 14:47:58+00:00
State: open
Labels: bugs

t.set_outgroup(t.get_age_balanced_outgroup(sp2age_per_phylome[phylome_id]))
File "/soft/general/python-2.6.4/lib/python2.6/site-packages/ete2-2.1rev492-py2.6.egg/ete2/phylo/phylotree.py", line 330, in get_age_balanced_outgroup
out_age_min = min([species2age[sp] for sp in out_species])
ValueError: min() arg is an empty sequence

------
el dictionario que le paso: ( --- seria sp2age_per_phylome[phylome_id])

{'DROYA': 5,
'CULPI': 5,
'HUMAN': 9,
'CIOIN': 9,
'AEDAE': 5,
'BOMMO': 5,
'NASVI': 5,
'PEDHC': 5,
'DAPPU': 7,
'DROME': 5,
'APIME': 5,
'ANOGA': 5,
'TRICA': 5,
'DROPS': 5,
'DROMO': 5,
'ACYPI': 5,
'CAEEL': 10}

---------
este son los ids. los arboles son del phyloma 16 (pea aphid). puede ser que hay mas en que no funciona.
he mirado algunos de estos, y tiene una estructura rara, llena de ids duplicados

Phy000YGS1_ACYPI
Phy000YIEH_ACYPI
Phy000YO1U_ACYPI
Phy000YPTH_ACYPI
Phy0010AQT_ACYPI
Phy0010BF4_ACYPI
Phy0010BJW_ACYPI
Phy0010C3I_ACYPI