Skip to content

Indices of events and bSFS dimensions #20

Discussion options

You must be logged in to vote

Hi @A-J-F-Mackintosh,
Yep, as always a couple of very good questions!
Firstly, the easiest question to answer. Yes, the default order of branch types is different from the order used in gimble. This is because in agemo all branch types are represented as a unique sequence of 0's and 1's. Their final order in the bSFS vector is determined by a simple sorting of those representations. This is not how we came up with the order in gimble.
However, you can specify your own order by providing a branchtype_dict that maps each branchtype to a unique integer index when making a BranchTypeCounter().

Now onto the issue of indices and parameters. I agree that this is currently a bit awkward. It shoul…

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@A-J-F-Mackintosh
Comment options

A-J-F-Mackintosh Jan 3, 2024
Collaborator Author

@GertjanBisschop
Comment options

@A-J-F-Mackintosh
Comment options

A-J-F-Mackintosh Jan 5, 2024
Collaborator Author

@GertjanBisschop
Comment options

Answer selected by GertjanBisschop
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #18 on December 18, 2023 09:38.