prepare_ncv: Prepare NCV calculation

Description Usage Arguments Details Value References Examples

Description

Determine the best NCV chromosomes, calculate NCV scores and asses normal distribution control group using Shapiro-Wilk test

Usage

1
2
3
prepare_ncv(nipt_control_group, chr_focus, max_elements,
  exclude_chromosomes = NULL, include_chromosomes = NULL,
  use_test_train_set = T, size_of_train_set = 0.6)

Arguments

nipt_control_group

The NIPTControlGroup object used in the analysis

chr_focus

Integer.The chromosome of interest. Most commonly chromosome 13, 18 or 21. However, every autosomal chromosome can be predicted

max_elements

Integer, The maximum number of denominator chromosomes.

exclude_chromosomes

Integer. Exclude which autosomal chromosomes as potential predictors? Default potential trisomic chromosomes 13, 18 and 21 are exluded.

include_chromosomes

Integer. Which potential trisomic chromosomes (13,18 and 21) to include?

use_test_train_set

Boolean. Use a test and train set?

size_of_train_set

Double The size of the train set expressed in a decimal. Default is 0.6 (60% of the control group samples)

Details

chromosomes to calculate the chromosomal fractions. The 'best' subset is the set which yields the lowest coefficient of variation for the chromosomal fractions of the chromosome of interest in the control group. Because a brute force approach is used to determine the best subset, which can be computationally intensive,this method is divided into two functions, prepare_ncv and calculate_ncv. prepare_ncv returns a template object (NCVTemplate) for a given chromosome of interest and the control group used. This template can be used for any number of analyses. If the control group or chromosome of interest changes, a new template must be made.

The ncv_template object is a list containing:

If a Test and Train set is used the ncv_template object also includes:

Value

ncv template object

References

Sehnert et al.

Examples

1
2
3
4
5
6
7
8
## Not run: 
##Create NCVTemplates for chromosome 13 with max 9 denominators and default settings, so:
##All autosomals chromosomes are potential predictors, 
##except the potential trisomic chromosomes 13, 18 and 21
new_ncv_template_13 <- prepare_ncv(nipt_control_group = control_group, 
                                   chr_focus = 13, max_elements = 9)

## End(Not run)

NIPTeR documentation built on May 2, 2019, 7:55 a.m.