View source: R/get_fragment_profile.R
test_isize_KolmogorovSmirnov | R Documentation |
KolmogorovSmirnov test for insert size
test_isize_KolmogorovSmirnov(control_insert_size, sample_insert_size)
control_insert_size |
Vector of insert size of a control sample |
sample_insert_size |
Vector of insert size of a testing sample |
KS.Test result
### Loading example SampleBam file
example_file <- system.file("extdata","example_patientcfDNA_SampleBam.RDS",package = "cfdnakit")
sample_bambin <- readRDS(example_file)
control_rds<-"BH01_CHR15.SampleBam.rds"
control_RDS_file <- system.file("extdata", control_rds, package = "cfdnakit")
control_fragment_profile <- readRDS(control_RDS_file)
sample.isize <- extract_insert_size(sample_bambin)
healthy.isize <- extract_insert_size(control_fragment_profile)
test_isize_KolmogorovSmirnov(sample.isize,healthy.isize)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.