Chromosomal Z-score
nipter_z_score.RdComputes the Z-score for a given chromosome of a test sample against a control group. The Z-score measures how many standard deviations the sample's chromosomal fraction deviates from the control mean.
Value
A list of class "NIPTeRZScore" with elements:
- sample_z_score
The test sample's Z-score (numeric scalar).
- focus_chromosome
Character; the tested chromosome.
- control_statistics
Named numeric vector with
mean,sd, andshapiro_p_value.- control_z_scores
Named numeric vector of Z-scores for each control sample.
- correction_status
Character vector of correction statuses.
- sample_name
Character; the test sample name.