This function calculates the degree of relationship for individuals in a dataset based on their pedigree.
Arguments
- data
A data frame containing the data with columns 'individual', 'father', 'mother', 'sex', 'aff', 'family', and 'isProband'.
Value
The data frame with an additional column 'degree_of_relationship' indicating the degree of relationship for each individual.