Dear all,
I’ve been trying to reconstruct ancestral states of a given trait using *Beast (v 2.4.7).
When I don’t set ambiguities in the XML file, it runs smoothly. However, when I include them, I always get an error message. I’ve trying to find an effective solution from the beast-users’ discussion, but I can’t succeed. That’s why I’m asking this here. Maybe someone could give me a little help.
Basically, I included the flag useAmbiguities=”true”, and added a new code.
Below, you can see the part of the XML file where the modifications have been done, and then the error message.
Many thanks in advance.
<distribution id="traitedtreeLikelihood.area" spec="AncestralStateTreeLikelihood" tag="location" tree="@Tree.t:Species" useAmbiguities="true">
<data
id="area"
spec="AlignmentFromTrait">
<traitSet id="traitSet.area" spec="beast.evolution.tree.TraitSet" taxa="@taxonsuperset" traitname="discrete">sp1=ori,
sp2=aml_mad,
sp3=gui,
sp4=mar,
sp5=aml,
sp6=mad,
sp7=aml</traitSet>
<userDataType id="traitDataType.area" spec="beast.evolution.datatype.UserDataType" codeMap="aml=0,gui=1,mad=2,mar=3,ori=4,aml_mad = 0 2, ? = 0 1 2 3 4 " codelength="-1" states="5"/>
Sample posterior ESS(posterior) likelihood prior
Fatal exception: null
java.lang.NullPointerException
at java.lang.System.arraycopy(Native Method)
at beast.evolution.likelihood.BeerLikelihoodCore.getNodeStates(Unknown Source)
at beast.evolution.likelihood.AncestralStateTreeLikelihood.traverseSample(Unknown Source)
at beast.evolution.likelihood.AncestralStateTreeLikelihood.traverseSample(Unknown Source)
at beast.evolution.likelihood.AncestralStateTreeLikelihood.traverseSample(Unknown Source)
at beast.evolution.likelihood.AncestralStateTreeLikelihood.traverseSample(Unknown Source)
at beast.evolution.likelihood.AncestralStateTreeLikelihood.traverseSample(Unknown Source)
at beast.evolution.likelihood.AncestralStateTreeLikelihood.traverseSample(Unknown Source)
at beast.evolution.likelihood.AncestralStateTreeLikelihood.redrawAncestralStates(Unknown Source)
at beast.evolution.likelihood.AncestralStateTreeLikelihood.getStatesForNode(Unknown Source)
at beast.evolution.likelihood.AncestralStateTreeLikelihood$1.getTraitString(Unknown Source)
at beast.evolution.tree.TreeWithTraitLogger.toNewick(Unknown Source)
at beast.evolution.tree.TreeWithTraitLogger.toNewick(Unknown Source)
at beast.evolution.tree.TreeWithTraitLogger.toNewick(Unknown Source)
at beast.evolution.tree.TreeWithTraitLogger.toNewick(Unknown Source)
at beast.evolution.tree.TreeWithTraitLogger.toNewick(Unknown Source)
at beast.evolution.tree.TreeWithTraitLogger.toNewick(Unknown Source)
at beast.evolution.tree.TreeWithTraitLogger.log(Unknown Source)
at beast.core.Logger.log(Unknown Source)
at beast.core.MCMC.log(Unknown Source)
at beast.core.MCMC.propagateState(Unknown Source)
at beast.core.MCMC.doLoop(Unknown Source)
at beast.core.MCMC.run(Unknown Source)
at beast.app.BeastMCMC.run(Unknown Source)
at beast.app.beastapp.BeastMain.<init>(Unknown Source)
at beast.app.beastapp.BeastMain.main(Unknown Source)
at beast.app.beastapp.BeastLauncher.main(Unknown Source)
Fatal exception: null
On 21/11/2017, at 6:02 AM, Luiz JQ <ljq...@gmail.com> wrote:
I tried to run the same xml file, but without the flag useAmbiguities="true". It ran. However, the analysis is estimating the most likely distribution area for the the sp2 between the two I gave with my ambiguous code (sp2=aml_mad), instead of considering a priori both areas as true distribution areas. So, I suppose that somehow I must include the flag. Am I wright?
--
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.