Description Usage Arguments Value Examples
View source: R/functions_scc.R
This is important to avoid errors while using the gr to query the bam_file.
1 | harmonize_seqlengths(gr, bam_file)
|
gr |
GRanges |
bam_file |
bam_file |
GRanges with seqlengths matching bam_file
1 2 3 4 5 6 7 8 | peak_files = dir(system.file("extdata", package = "seqqc"), pattern = "Peak$", full.names = TRUE)
peak_grs = seqsetvis::easyLoad_narrowPeak(peak_files)
query_gr = resize(seqsetvis::ssvOverlapIntervalSets(peak_grs), 6e2, fix = "center")
bam_files = dir(system.file("extdata", package = "seqqc"), pattern = "^M.+bam$", full.names = TRUE)
query_gr.harmonized = seqqc:::harmonize_seqlengths(query_gr, bam_files[1])
seqlengths(query_gr.harmonized)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.