Skip to content

Accessing mutations in the genome of one individual? #160

Answered by petrelharp
elissasoroj asked this question in Q&A
Discussion options

You must be logged in to vote

Hm, that's a good question - that ought to be an easy thing to do. This reason you haven't found it is because in the tree sequence it ends up being more natural to look up things by site instead of by genome - e.g., to iterate across trees.

Now, a question: do you want to find all the mutations that either genome of a given individual has inherited? Or, all the alleles? The distinction is that a mutation object is unique, but there may be more than one unique mutation at a site that's produce the same allele (IBS but not IBD). The best answer is also going to depend on what you want to do with them.

1. Edit: my first answer was wrong; here's one based on @jeromekelleher's in this issue.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by elissasoroj
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