LinguaPhylo / LPhyBeast

Convert LPhy scripts to BEAST 2 XML
GNU Lesser General Public License v2.1
3 stars 1 forks source link

simulate alignment from the 2nd lphy script #96

Closed walterxie closed 1 year ago

walterxie commented 1 year ago

~~ Select the alignment given ID (e.g. random variable name) in the LPhy script. ~~

Update to use the 2nd lphy script to simulate data

alexeid commented 1 year ago

remember that it is possible in general to have more than one alignment involved in a BEAST analysis (like multiple partitions, or one morphology alignment and one molecular alignment, or combinations of these).

On 9/12/2022, at 11:28 AM, Walter @.***> wrote:

Select the alignment given ID (e.g. random variable name) in the LPhy script.

— Reply to this email directly, view it on GitHub https://github.com/LinguaPhylo/LPhyBeast/issues/96, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAG5MSNU6DPGEBW54O3VLLTWMJOINANCNFSM6AAAAAASYVBKOA. You are receiving this because you are subscribed to this thread.

walterxie commented 1 year ago

I had this caution in my mind, there is a validation to check if there are any multiple alignments using this feature, if yes, then throw UnsupportedException. I will improve it after the required cancer data analyses are completed.

walterxie commented 1 year ago

TODO:

  1. Use the simulated alignment from the 2nd lphy script to replace the alignment in the main script, given ID. So the main script can apply the diff model with the simulation model to the simulated data.
  2. Handle the multiple alignments.