Skip to content

Genealogical Relatedness in pyslim #325

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

You must be logged in to vote

Hello, @fouerghi! I do have advice. Let's see: It depends which relatedness you are interested in. If it is the "realized" relatedness (ie. the amount of genetic material inherited in common), you can use ts.genetic_relatedness.

However, I imagine you're looking for the classical expected-relatedness-between-diploids quantity (as computed by SLiM). In this case, I don't have code written to do it already, but I do have:

I've just noticed that I don't have these listed in the docs (and will fix that shortly - so they should be at https://tskit.dev/pyslim/docs/latest/python_api.html soon) - but they give you the information you need to comput…

Replies: 3 comments 8 replies

Comment options

You must be logged in to vote
2 replies
@fouerghi
Comment options

@petrelharp
Comment options

Answer selected by fouerghi
Comment options

You must be logged in to vote
1 reply
@petrelharp
Comment options

Comment options

You must be logged in to vote
5 replies
@bhaller
Comment options

@fouerghi
Comment options

@jeromekelleher
Comment options

@timothymillar
Comment options

@fouerghi
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
5 participants