This folder contains the R scripts used by the NIPT-pipeline

The NIPT pipeline consists of several steps. Each step is done by a different script:
1. Createbins: count the number of reads in (50000 bp) bins.
2. InterChiCorrection: does an Chi2 correction (peak removal) to do a fair comparison in the next step
3. DetermineBestControl: Checks which control samples are most informative for the test sample
4. ChiCorrection: does a more precise Chi2 correction on the samples used as controls and the test sample
5. DeterminePredictor: Checks which chromosomes predict best the number of expected reads for the chromosome of interest (if it is normal)
6. DetermineNCV: Calculates the Z-score for the chromosome of interest of the test sample using the predictorset.