diff --git a/lphybeast-flc/src/main/java/flc/lphybeast/tobeast/generators/LocalClockToBeast.java b/lphybeast-flc/src/main/java/flc/lphybeast/tobeast/generators/LocalClockToBeast.java index 292b6b3..71e7e93 100644 --- a/lphybeast-flc/src/main/java/flc/lphybeast/tobeast/generators/LocalClockToBeast.java +++ b/lphybeast-flc/src/main/java/flc/lphybeast/tobeast/generators/LocalClockToBeast.java @@ -26,7 +26,12 @@ public FlexibleLocalClockModel generatorToBEAST(LocalClock localClock, BEASTInte Value rootRate = localClock.getRootRate(); StrictLineageClockModel rootCladeModel = new StrictLineageClockModel(); - rootCladeModel.initByName("clock.rate", new RealParameter(rootRate.valueToString())); + + RealParameter rootRateParameter = new RealParameter(rootRate.valueToString()); + // specify the parameter has the upper bound at 1.0 + rootRateParameter.setInputValue("upper", 1.0); + + rootCladeModel.initByName("clock.rate", rootRateParameter); Value clades = localClock.getClades(); Value cladeRates = localClock.getCladeRates();