Repository navigation
Number of sites per tree, and iterating over variants grouped by tree #3504
hyanwong
started this conversation in
Show and tell
Replies: 1 comment
|
Alternatively, if you want the trees anyway, the "iterate over variants within a tree" can be simply: |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
It can be helpful to know the number of sites in each tree. Here's a quick way without having to actually iterate through the trees:
This can then be used e.g. to iterate over the variants within a tree, separately for each tree, while only creating a single variants iterator. I thought this might be useful for some people.
All reactions