Skip to content
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

Change reference sequence of MAD #17

Open
willdumm opened this issue Jul 28, 2022 · 0 comments
Open

Change reference sequence of MAD #17

willdumm opened this issue Jul 28, 2022 · 0 comments

Comments

@willdumm
Copy link
Contributor

willdumm commented Jul 28, 2022

Now that we require clade indices to correspond to the sorted index of an edge's child clade (#9 ), changing the reference sequence of a MAD becomes more complex. There are now two things which must be done to make this happen:

  • First, there's the (simple) modification to make edge mutations imply the correct compact genomes relative to the new reference sequence. This was previously the only thing that needed to be done to change the reference sequence of a MAD:
    image
  • Next, we must update the order of the vectors of edges in NodeStorage.clades_ (which is a vector of vectors of edges, in which each vector of edges corresponds to a child clade) to match the new sorted order of that node's LeafSet with compact genomes relative to the new reference sequence.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant