test_isize_KolmogorovSmirnov: KolmogorovSmirnov test for insert size

View source: R/get_fragment_profile.R

test_isize_KolmogorovSmirnovR Documentation

KolmogorovSmirnov test for insert size

Description

KolmogorovSmirnov test for insert size

Usage

test_isize_KolmogorovSmirnov(control_insert_size, sample_insert_size)

Arguments

control_insert_size

Vector of insert size of a control sample

sample_insert_size

Vector of insert size of a testing sample

Value

KS.Test result

Examples

### 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)

Pitithat-pu/cfdnakit documentation built on Oct. 2, 2024, 8:03 p.m.