This function attaches attributes to family graphs, such as lower and upper thresholds, for each family member. This allows for a user-friendly way to attach personalised thresholds and other per-family specific attributes to the family graphs.
Usage
attach_attributes(
cur_fam_graph,
cur_proband,
fid,
attr_tbl,
attr_names,
censor_proband_thrs = TRUE
)
Arguments
- cur_fam_graph
An igraph object (neighbourhood graph around a proband) with family members up to degree n.
- cur_proband
Current proband id (center of the neighbourhood graph).
- fid
Column name of family id.
- attr_tbl
Tibble with family id and attributes for each family member.
- attr_names
Names of attributes to be assigned to each node (family member) in the graph.
- censor_proband_thrs
Should proband's upper and lower thresholds be made uninformative? Defaults to TRUE. Used to exclude proband's information for prediction.