ancestor_vectors_cpp: Function to make a vector of all the ancestors of an...

ancestor_vectors_cppR Documentation

Function to make a vector of all the ancestors of an individual out to n generations.

Description

This is a replacement for the R implementation of ancestor_vectors() which was too slow. This will get called from with a C function in which the pedigree has been assembled.

Arguments

sv

vector of sample indexes

nv

vector of names of all samples

Ped

pedigree struct

n

the number of generations. 0 = self, 1 = parent, 2 = grandparent, etc.


eriqande/CKMRpop documentation built on Jan. 25, 2024, 2:10 p.m.