View source: R/plot_sl_ratio.R
plot_sl_ratio | R Documentation |
Plot Short/Long-fragment Ratio
plot_sl_ratio(fragment_profile, ylim = c(0, 0.4), genome = "hg19")
fragment_profile |
list |
ylim |
plot y-axis limit |
genome |
Character; version of reference genome (default hg19) |
plot
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")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.