all_parent_id_consistent: Check whether all ids of a given parent (mother or father)...

Description Usage Arguments Value

View source: R/pedigree_consistency_checks.R View source: R/pedigree_consistency_checks_tbl_df.R

Description

Given a pedigree as tbl_df, it is first run through the TVD-ID check using the function PedigreeFromTvdData::check_tvd_id_tbl(). As a result, we get the checked pedigree. The original pedigree in p_tbl_ped and the checked pedigree are compared and the result is returned as a list indicating whether the two pedigrees are consistent and if not with a vector of row-indices where inconsistencies did occur.

Given a pedigree as tbl_df, it is first run through the TVD-ID check using the function PedigreeFromTvdData::check_tvd_id_tbl(). As a result, we get the checked pedigree. The original pedigree in p_tbl_ped and the checked pedigree are compared and the result is returned as a list indicating whether the two pedigrees are consistent and if not with a vector of row-indices where inconsistencies did occur.

Usage

1
2
3
all_parent_id_consistent(p_tbl_ped, plIdCols, pn_parent_col, pb_out = FALSE)

all_parent_id_consistent(p_tbl_ped, plIdCols, pn_parent_col, pb_out = FALSE)

Arguments

p_tbl_ped

original pedigree as tbl_df

plIdCols

list with column indices for all ids, required for checking

pn_parent_col

column index of parent to be checked

pb_out

flag indicating whether debugging output should be written

p_b_out

flag indicating whether output should be written

p_tbl_ped

original pedigree as tbl_df

plIdCols

list with column indices for all ids, required for checking

pn_parent_col

column index of parent to be checked

Value

list indicating result of consistency check and list of row indices with inconsistent IDs

list indicating result of consistency check and list of row indices with inconsistent IDs


pvrqualitasag/PedigreeFromTvdData documentation built on May 29, 2019, 7:50 a.m.