.xml parse error in BEAST 2

419 views
Skip to first unread message

chandith1

unread,
Apr 22, 2014, 9:11:29 PM4/22/14
to beast...@googlegroups.com
Dear all
I am trying to run the phylogeography model in BEAST2. I prepared the .xml file using BEAUTI 2 based on a .nex file. However, when I tried to run the .xml file in BEAST2, the following error appeared.

Error 110 parsing the xml input file

validate and intialize error: For input string: "1.352083_103.819836_1991"

Error detected about here:
  <beast>
      <run id='mcmc' spec='MCMC'>
          <distribution id='posterior' spec='util.CompoundDistribution'>
              <distribution id='prior' spec='util.CompoundDistribution'>
                  <distribution id='rootPrior.location' spec='beast.math.distributions.MultivariateNormalDistribution'>
                      <arg id='rootTrait.location' spec='beast.evolution.tree.RootTrait'>
                          <traitmap id='traitmap.s:location' spec='beast.evolution.tree.TreeTraitMap'>

I have attached both .xml and .nex files for your reference. Any help to sort this out would be greatly appreciated.

Chanditha
DENV2_Cosmo_Egene_GB_wo clones_test_beast2_FG.nxs
D2cosmo.xml

Remco Bouckaert

unread,
Apr 23, 2014, 4:33:48 PM4/23/14
to beast...@googlegroups.com
Hi Chanditha,

It looks like the locations traits are not properly formatted -- for the location a latitude longitude pair are expected, but your data contains some other information as well; where the XML file says

AF410379_1.352083_103.819836_1991=1.352083_103.819836_1991 103.819836,

you probably want

AF410379_1.352083_103.819836_1991 = 103.819836    103.819836,

and similar for all other locations.

Cheers,

Remco

trig...@gmail.com

unread,
Aug 4, 2017, 10:54:43 AM8/4/17
to beast-users
I have the same problem. How did you solve it? Thanks.

在 2014年4月23日星期三 UTC+8上午9:11:29,chandith1写道:
Reply all
Reply to author
Forward
0 new messages