get_family_graphs | R Documentation |
This function identifies individuals ndegree-steps away from the proband in the population graph.
get_family_graphs(
pop_graph,
ndegree,
proband_vec,
fid = "fid",
fam_graph_col = "fam_graph",
mindist = 0,
mode = "all"
)
pop_graph |
Population graph from prepare_graph() |
ndegree |
Number of steps away from proband to include |
proband_vec |
Vector of proband ids to create family graphs for. Must be strings. |
fid |
Column name of proband ids in the output. |
fam_graph_col |
Column name of family graphs in the output. |
mindist |
Minimum distance from proband to exclude in the graph (experimental, untested), defaults to 0, passed directly to make_neighborhood_graph. |
mode |
Type of distance measure in the graph (experimental, untested), defaults to "all", passed directly to make_neighborhood_graph. |
Tibble with two columns, family ids (fid) and family graphs (fam_graph_col).
# See Vignettes.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.