i = sample(p1.individuals, 60, F);
f_ped = c();
for(ind in i){
parents=ind.pedigreeParentIDs;
parent1 = p1.individuals[p1.individuals.pedigreeID==parents[0]];
parent2 = p1.individuals[p1.individuals.pedigreeID==parents[1]];
f_ped_ind = parent1.relatedness(parent2)/2;
f_ped = c(f_ped, f_ped_ind);
}
--
SLiM forward genetic simulation: http://messerlab.org/slim/
---
You received this message because you are subscribed to a topic in the Google Groups "slim-discuss" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/slim-discuss/mbskf7pUkn4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to slim-discuss...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/slim-discuss/ceef75eb-976b-475d-93c0-9550ccc85abfn%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/slim-discuss/74811ad4-4173-4802-b369-78849cd9fb04n%40googlegroups.com.