Compute a regular Z-score for every chromosome of every sample in a NIPTControlGroup object
Usage
diagnose_control_group(nipt_control_group)
Arguments
nipt_control_group
The NIPTControlGroup object to diagnose
Value
named list
Details
This function computes a regular Z-score for every chromosome of
every sample in a NIPTControlGroup object. It returns a named list with
diagnostics information.
The function returns a named list with 3 fields:
Z_scores A matrix containing Z-scores for every sample and every chromosome
abberant_scores Dataframe with samplename and chromosome of Z-scores outside -3 3 range
control_group_statistics Matrix with mean, standard deviation and P value of Shapiro-Wilk test