-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Duplicate relaxed clock operator created by lphybeast #5
Comments
Comments from @alexeid |
Your data block is illegal, change to this:
|
The only solution to fix this "at the fundamental level", that I can think of, is to make Any better ideas? |
Homozygous and Haploid functions done
Running LPhyBeast on an lphy script with a relaxed clock model and error model will generate duplicate clock operators.
lphy script: simpleRelaxedError_lphy.txt
lphybeast output: simpleRelaxedError_xml.txt
@walterxie has worked on a solution by removing the duplicated original Tree and Alignment objects.
The object duplication is because
constructTreeAndBranchRate()
is called twice, once when constructing PhyloCTMC for the generic non-error tree, and another time byGT16ErrorModelToBeast
which constructs a tree with an error model. Internally this duplicates the tree and branch objects and operators.The ideal solution would be to modify the code to construct a tree only once, or by passing the error model into the tree construction method.
The temporary solution is to add a flag to
constructTreeAndBranchRate()
inPhyloCTMCToBEAST.java
to optionally turn off branch rate operators during tree construction.https://github.com/kche309/LPhyBeast/blob/6bfa606bc132bc3ecaf42598f15a23be0f34d881/src/lphybeast/tobeast/generators/PhyloCTMCToBEAST.java#L158
The text was updated successfully, but these errors were encountered: