plot_sl_ratio: Plot Short/Long-fragment Ratio

View source: R/plot_sl_ratio.R

plot_sl_ratioR Documentation

Plot Short/Long-fragment Ratio

Description

Plot Short/Long-fragment Ratio

Usage

plot_sl_ratio(fragment_profile, ylim = c(0, 0.4), genome = "hg19")

Arguments

fragment_profile

list

ylim

plot y-axis limit

genome

Character; version of reference genome (default hg19)

Value

plot

Examples

example_file <-  system.file("extdata","example_patientcfDNA_SampleBam.RDS",package = "cfdnakit")
sample_bambin <- readRDS(example_file)
sample_profile <- get_fragment_profile(sample_bambin,sample_id = "Patient1")
plot_sl_ratio(fragment_profile = sample_profile)

### change plot y-axis
plot_sl_ratio(fragment_profile = sample_profile,  ylim=c(0.1,0.5))

### change reference genome
plot_sl_ratio(fragment_profile = sample_profile,  genome="hg38")

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