Found BUG in BEAST?!

129 views
Skip to first unread message

Thijmen B

unread,
Dec 29, 2015, 12:12:46 PM12/29/15
to beast-users
Hi,

I've found something strange in BEAST and I have no idea if it is a bug or my fault, can someone help?

I'm still trying to run BEAST with a starting tree (on CIPRES)

I'm using one calibrate node and the "prior" looks like this in the xml: 

"<distribution id="CHEI-ONTH.prior" spec="beast.math.distributions.MRCAPrior" monophyletic="true" tree="@NewickTree.t:p14">
                <taxonset id="CHEI-ONTH" spec="TaxonSet">
                    <taxon id="668666_Onth_long_1" spec="Taxon"/>
                    <taxon id="668670_Onth_niti_1" spec="Taxon"/>
                    <taxon id="668687_Onth_rhin_1" spec="Taxon"/>"
At least the start of it.. So all taxa end with an "1", this is added by BEAUTI not by me.
running it on cipres results in an error: "Cannot find taxon 668666_Onth_long_1 in data"  But I can open it in BEAUTI!

So I created a second xml file where I removed all "1's" by hand, as follows:

"<distribution id="CHEI-ONTH.prior" spec="beast.math.distributions.MRCAPrior" monophyletic="true" tree="@NewickTree.t:p14">
                <taxonset id="CHEI-ONTH" spec="TaxonSet">
                    <taxon id="668666_Onth_long_" spec="Taxon"/>
                    <taxon id="668670_Onth_niti_" spec="Taxon"/>
                    <taxon id="668687_Onth_rhin_" spec="Taxon"/>
                    <taxon id="669836_Onth_gaze_" spec="Taxon"/>
                    <taxon id="670919_Onthsp_" spec="Taxon"/>
                    <taxon id="679441_2Onth_gir_" spec="Taxon"/>"

Running it on cipres results in an error: Cannot open file... And indeed I cannot open this xml in BEAUTI, trying results in the following error:
Error 104
"IDs should be unique. Duplicate ID '668666_Onth_long_' found" 
Error detected about here: ...

What is wrong?

Thanks and happy new year in advance!

Thijmen

Remco Bouckaert

unread,
Jan 5, 2016, 3:59:33 PM1/5/16
to beast...@googlegroups.com
Hi Thijmen,

This is indeed a bug in BEAUti and I logged an issue for it (#478). For now, fix this in the XML, replace

<taxon id="668666_Onth_long_" spec="Taxon”/>

with

<taxon idref="668666_Onth_long_"/>

for every taxon that was specified before, for example, because it was already used in another calibration. Taxa with the same ID should only be specified once, so if you want to use them a second time you should refer to the first one through the “idref” (removing the spec attribute is optional, but will produce warning which you can safely ignore in this case).

Cheers,

Remco



--
You received this message because you are subscribed to the Google Groups "beast-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to beast-users...@googlegroups.com.
To post to this group, send email to beast...@googlegroups.com.
Visit this group at https://groups.google.com/group/beast-users.
For more options, visit https://groups.google.com/d/optout.

Jeremy Jensen

unread,
Mar 15, 2026, 2:47:28 PM (yesterday) Mar 15
to beast-users
I know that I'm replying to a very old post but I am experiencing this same issue and was wondering if there's been a solution reached that is better than my current solution. I'm very new to BEAST so I might be missing something very basic

Within all my priors Beauti adds a 1 after my specimen IDs (ie Fedtschenkia_anthracina_BLX40661 instead of Fedtschenkia_anthracina_BLX4066). If I try to run as is I get an error that BEAST can not locate the taxon "Cannot find taxon Fedtschenkia_anthracina_BLX40661 in data". 

I then remove the 1 and again if I run this I get an error of duplication " Ds should be unique. Duplicate id 'Fedtschenkia_anthracina_BLX4066' found"

This is when I found this post. I was able to go in remove all 1's added to my priors and change "<taxon id="  to  "<taxon idref=" but this takes a long time to fix. Is there a fix for this or change I need to make to my ID's to avoid this issue?

Thanks in advance!

Jeremy
Reply all
Reply to author
Forward
0 new messages