View source: R/get_fragment_profile.R
extract_insert_size | R Documentation |
Extract Insert size from SampleBam
extract_insert_size(readbam_bin, maximum_length = 600, minimum_length = 20)
readbam_bin |
SampleBam Object |
maximum_length |
Int; Maximum length of fragment. cfDNA fragment longer than this value will not be considered; Default 600 |
minimum_length |
Int; Minimum length of fragment. cfDNA fragment shorter than this value will not be considered; Default 20 |
Numeric Vector; Insert size of given sample
### Loading example SampleBam file
example_file <- system.file("extdata","example_patientcfDNA_SampleBam.RDS",package = "cfdnakit")
sample_bambin <- readRDS(example_file)
extract_insert_size(sample_bambin)
### Extract only insert size of fragment having specific size
extract_insert_size(sample_bambin,maximum_length=500, minimum_length = 50)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.