get_zscore_profile: Transform SLRatio with PoN Fragment profile

View source: R/get_zscore_profile.R

get_zscore_profileR Documentation

Transform SLRatio with PoN Fragment profile

Description

Transform SLRatio with PoN Fragment profile

Usage

get_zscore_profile(fragment_profile, pon_profile)

Arguments

fragment_profile

Sample Profile

pon_profile

PoN Profiles

Value

Dataframe of robust transformed SLratio

Examples

### Loading example SampleBam file
example_file <-  system.file("extdata","example_patientcfDNA_SampleBam.RDS",package = "cfdnakit")
sample_bambin <- readRDS(example_file)

### Example PoN
PoN_rdsfile <- system.file("extdata","ex.PoN.rds",package = "cfdnakit")
pon_profiles <- readRDS(PoN_rdsfile)
sample_profile <- get_fragment_profile(sample_bambin,sample_id = "Patient1")

sample_zscore <- get_zscore_profile(sample_profile,pon_profiles)

sample_zscore_segment <- segmentByPSCB(sample_zscore)

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