Skip to content

NullPointerException during initialization for UCRelaxedCladeClockModel #2

@J-Moravec

Description

@J-Moravec
java.lang.NullPointerException
	at mf.beast.evolution.branchratemodel.UCRelaxedCladeClockModel.setUpMap(Unknown Source)
	at mf.beast.evolution.branchratemodel.UCRelaxedCladeClockModel.initAndValidate(Unknown Source)
	at beast.util.XMLParser.initBEASTObjects(Unknown Source)
	at beast.util.XMLParser.parse(Unknown Source)
	at beast.util.XMLParser.parseFile(Unknown Source)
	at beast.app.BeastMCMC.parseArgs(Unknown Source)
	at beast.app.beastapp.BeastMain.main(Unknown Source)

Error 110 parsing the xml input file

validate and intialize error: null

Error detected about here:
  <beast>
      <run id='mcmc' spec='MCMC'>
          <distribution id='posterior' spec='util.CompoundDistribution'>
              <distribution id='likelihood' spec='util.CompoundDistribution'>
                  <distribution id='treeLikelihood.methylations' spec='TreeLikelihood'>
                      <branchRateModel id='branchRates' spec='mf.beast.evolution.branchratemodel.FlexibleLocalClockModel'>
                          <cladeClockModel id='rate.clade' spec='mf.beast.evolution.branchratemodel.UCRelaxedCladeClockModel'>

The difference (from what I understand) seems to be in setUpMap between UCRelaxedCladeClockModel and UCRelaxedMultiCladeClockModel.

In Clade model, the SetUpMap first goes into the leaf nodes and then increments BranchCladeCount. In MultiClade model, it does this in opposite way, which while it makes a little less sense to me, it works.

Well, kind of. With MultiCladeModel I get:

AbstractUCRelaxedClockModel: rate.clade using 0 rate categories to approximate rate distribution across branches.
Failed to load BEAGLE library: no hmsbeagle-jni in java.library.path
TreeLikelihood(treeLikelihood.methylations) uses BeerLikelihoodCore
  FilteredAlignment(bin.methylations): [taxa, patterns, sites] = [22, 643, 18705]
WARNING: the dimension of the parameter is 1 at the start of the run.
         The operator FixMeanMutationRatesOperator has no effect (if this does not change).
java.lang.IllegalArgumentException: howMany it too large: must be less than half the dimension of the parameter
	at beast.evolution.operators.SwapOperator.initAndValidate(Unknown Source)
	at beast.util.XMLParser.initBEASTObjects(Unknown Source)
	at beast.util.XMLParser.parse(Unknown Source)
	at beast.util.XMLParser.parseFile(Unknown Source)
	at beast.app.BeastMCMC.parseArgs(Unknown Source)
	at beast.app.beastapp.BeastMain.main(Unknown Source)

Error 110 parsing the xml input file

validate and intialize error: howMany it too large: must be less than half the dimension of the parameter

Error detected about here:
  <beast>
      <run id='mcmc' spec='MCMC'>
          <operator id='CategoriesSwapOperator.clade' spec='SwapOperator'>

Strangely, code runs when the created monophyletic taxon includes taxa in the same order as they are included in the alignment, starting from first taxa. Which might point to something, however the example file runs fine and doesn't have this pattern.

Did I misspecified something?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions