# NOT RUN {
data("targets", package = "ctDNAtools")
data("mutations", package = "ctDNAtools")
bamT1 <- system.file("extdata", "T1.bam", package = "ctDNAtools")
## basic usage
bin_fragment_size(bam = bamT1)
## with normalization
bin_fragment_size(bam = bamT1, normalized = TRUE)
## binning reads categorized based on mutations ref and alt
bin_fragment_size(bam = bamT1, mutations = mutations)
## Restrict to reads into targets
bin_fragment_size(bam = bamT1, targets = targets)
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab