View source: R/plot_fragment_dist.R
plot_fragment_dist | R Documentation |
Plot Fragment-length Distribution
plot_fragment_dist(readbam_list, maximum_length = 550, minimum_length = 20)
readbam_list |
List; A list containing SampleBam object/objects from the read_bamfile function |
maximum_length |
Int; Maximum length of fragment. cfDNA fragment longer than this value will not be considered; Default 550 |
minimum_length |
Int; Minimum length of fragment. cfDNA fragment shorter than this value will not be considered; Default 20 |
distribution plot
example_file <- system.file("extdata","example_patientcfDNA_SampleBam.RDS",package = "cfdnakit")
sample_bambin <- readRDS(example_file)
### adding more samples to the plot
example_file2 <- system.file("extdata","BH01_CHR15.SampleBam.rds",package = "cfdnakit")
control_bambin <- readRDS(example_file2)
readbam_list <- list(plasma1 = sample_bambin, Healthy.blood.plasma=control_bambin)
plot_fragment_dist(readbam_list)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.