Comments (5)
There is the clock.rate
input, so something like this should work:
<tree spec="beast.base.evolution.tree.ClusterTree" clock.rate="0.001" ...
Does this not work?
from beast2.
There is the
clock.rate
input, so something like this should work:<tree spec="beast.base.evolution.tree.ClusterTree" clock.rate="0.001" ...
Does this not work?
I have used a RealParameter
, and it works, but the issue was more like a bug report 😅
By the way, have I understood you right that I may just use a string instead of creating a tag with RealParameter
spec?
from beast2.
The impression I got was that you were looking for a way to scale a cluster tree in the XML, not programmatically.
In the XML, a RealParameter Input can be initialised as a string value, like in the example. In a program, you can use this pattern:
tree = new ClusterTree();
tree.initByName("clock.rate", "0.001", "taxa",...
that is, initialise all inputs through initByName
, where the String constructor of the Input type is called when it is provided with a String value instead of an object.
What exactly is the bug?
from beast2.
The impression I got was that you were looking for a way to scale a cluster tree in the XML, not programmatically.
In the XML, a RealParameter Input can be initialised as a string value, like in the example. In a program, you can use this pattern:
tree = new ClusterTree(); tree.initByName("clock.rate", "0.001", "taxa",...
that is, initialise all inputs through
initByName
, where the String constructor of the Input type is called when it is provided with a String value instead of an object.What exactly is the bug?
Thank you very much for the clarification.
The bug is the absence of any clock.rate
input in an XML formed by BEAUti where I specified a cluster tree as initial and its clock rate.
from beast2.
Thanks for the explanation & bug report -- I can confirm that the value does not get written into the XML even though it can be changed in the XML. It appears that the value of the RealParameter changes, but because it is the default object and defaults are not written to the XML the parameter value does not end up in the output.
from beast2.
Related Issues (20)
- Clarification about Trees and StateNodeInitialiser HOT 4
- TreeAnnotator does not respond to TargetTreeType in GUI
- BEAUti error importing alignment HOT 1
- error in parsing xml with no prior manual editing HOT 2
- .xml.state not found HOT 5
- Resume problem for monophyletic HOT 5
- Likelihood incorrectly calculated error HOT 5
- Hiccups with preparing package for testing HOT 1
- Make Alignment a StateNode
- no main manifest attribute on newer release
- Prep for v2.7.7 release
- Feature request: partial monophyly constraints HOT 6
- Treeannotator not going to 100% HOT 1
- Remove jars when updating packages HOT 1
- Generate xml file in linux command line HOT 2
- Class (orc.consoperators.UcldScalerOperator) could not be found HOT 4
- Request a feature to use "version_file" in AppLauncher HOT 2
- Resuming from a state file does not update parameter dimensiom HOT 1
- When is a node's nodeNr ever greater than the root's nodeNr? HOT 1
- Add case to Tree.adjustTreeNodeHeights method to accommodate zero-length branches
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from beast2.