99# ' @param momID Character string giving the name of the column containing
1010# ' maternal IDs.
1111# ' @param chain_col Character string giving the name of the output list-column
12- # ' that will contain the ordered paternal ancestor chain for each individual.
12+ # ' that will contain the ordered parental ancestor chain for each individual.
1313# ' @param chain_string_col Character string giving the name of the output
14- # ' character column that will contain the collapsed paternal ancestor chain.
14+ # ' character column that will contain the collapsed parental ancestor chain.
1515# ' @param collapse Character string used to collapse ancestor IDs into
1616# ' `chain_string_col`.
17- # ' @param traversal_direction Character giving the mode of transversion: defaults to "in"
17+ # ' @param traversal_direction Character giving the mode of transversion: defaults to "in". If set to out, will procedure a list of descendants.
1818# '
1919# ' @return A data frame with two added columns:
2020# ' \describe{
@@ -58,19 +58,7 @@ addParentalChain(
5858# ' This is a convenience wrapper around [addParentalChain()] with
5959# ' `component = "momID"`.
6060# '
61- # ' @param ped A pedigree data frame.
62- # ' @param personID Character string giving the name of the column containing
63- # ' individual IDs.
64- # ' @param dadID Character string giving the name of the column containing
65- # ' paternal IDs.
66- # ' @param momID Character string giving the name of the column containing
67- # ' maternal IDs.
68- # ' @param chain_col Character string giving the name of the output list-column
69- # ' that will contain the ordered maternal ancestor chain for each individual.
70- # ' @param chain_string_col Character string giving the name of the output
71- # ' character column that will contain the collapsed maternal ancestor chain.
72- # ' @param collapse Character string used to collapse ancestor IDs into
73- # ' `chain_string_col`.
61+ # ' @inheritParams addPaternalChain
7462# '
7563# ' @return A data frame with two added columns:
7664# ' \describe{
@@ -123,19 +111,7 @@ addParentalChain(
123111# ' individual, and adds both a list-column representation and a collapsed string
124112# ' representation to the original pedigree.
125113# '
126- # ' @param ped A pedigree data frame.
127- # ' @param personID Character string giving the name of the column containing
128- # ' individual IDs.
129- # ' @param dadID Character string giving the name of the column containing
130- # ' paternal IDs.
131- # ' @param momID Character string giving the name of the column containing
132- # ' maternal IDs.
133- # ' @param chain_col Character string giving the name of the output list-column
134- # ' that will contain the ordered parental ancestor chain for each individual.
135- # ' @param chain_string_col Character string giving the name of the output
136- # ' character column that will contain the collapsed parental ancestor chain.
137- # ' @param collapse Character string used to collapse ancestor IDs into
138- # ' `chain_string_col`.
114+ # ' @inheritParams addPaternalChain
139115# ' @param component Character string specifying which parental component to
140116# ' follow. Must be either `"dadID"` for paternal chains or `"momID"` for
141117# ' maternal chains.
@@ -282,13 +258,13 @@ addParentalChain <- function(
282258# ' This is a convenience wrapper around [addParentalLineFlag()] with
283259# ' `component = "dadID"`.
284260# '
285- # ' @param ped A pedigree data frame containing a paternal chain list-column.
261+ # ' @param ped A pedigree data frame containing a parental chain list-column.
286262# ' @param anchor_id ID of the anchor individual to search for within each
287- # ' person's paternal chain.
263+ # ' person's parental chain.
288264# ' @param flag_col Character string giving the name of the logical output column
289265# ' to add to `ped`.
290266# ' @param chain_col Character string giving the name of the list-column
291- # ' containing ordered paternal ancestor chains.
267+ # ' containing ordered parental ancestor chains.
292268# '
293269# ' @return A data frame with `flag_col` added. The flag is `TRUE` when
294270# ' `anchor_id` appears in the individual's paternal chain and `FALSE`
@@ -318,19 +294,12 @@ addPaternalLineFlag <- function(
318294# ' This is a convenience wrapper around [addParentalLineFlag()] with
319295# ' `component = "momID"`.
320296# '
321- # ' @param ped A pedigree data frame containing a maternal chain list-column.
322- # ' @param anchor_id ID of the anchor individual to search for within each
323- # ' person's maternal chain.
324- # ' @param flag_col Character string giving the name of the logical output column
325- # ' to add to `ped`.
326- # ' @param chain_col Character string giving the name of the list-column
327- # ' containing ordered maternal ancestor chains.
328- # '
297+ # ' @inheritParams addPaternalLineFlag
329298# ' @return A data frame with `flag_col` added. The flag is `TRUE` when
330- # ' `anchor_id` appears in the individual's maternal chain and `FALSE`
299+ # ' `anchor_id` appears in the individual's selected parental chain and `FALSE`
331300# ' otherwise.
332- # '
333301# ' @export
302+
334303addMaternalLineFlag <- function (
335304 ped ,
336305 anchor_id ,
@@ -354,13 +323,7 @@ addMaternalLineFlag <- function(
354323# ' For `component = "dadID"`, the function searches the paternal chain.
355324# ' For `component = "momID"`, the function searches the maternal chain.
356325# '
357- # ' @param ped A pedigree data frame containing a parental chain list-column.
358- # ' @param anchor_id ID of the anchor individual to search for within each
359- # ' person's parental chain.
360- # ' @param flag_col Character string giving the name of the logical output column
361- # ' to add to `ped`.
362- # ' @param chain_col Character string giving the name of the list-column
363- # ' containing ordered parental ancestor chains.
326+ # ' @inheritParams addPaternalLineFlag
364327# ' @param component Character string specifying which parental component the
365328# ' chain represents. Must be either `"dadID"` for paternal chains or `"momID"`
366329# ' for maternal chains.
0 commit comments