splitROIs | R Documentation |
Split (larger) ROIs into multiple smaller (overlapping) bins and create new BED file
splitROIs(oldBedFile, newBedFile, limit = 0, bin = 100, shift = 50, chr = FALSE)
oldBedFile |
filename of the BED file with absolute or relative path (structure of BED file without header: chromosome, exon start, exon end, exon name) |
newBedFile |
filename of the new BED file that should be created |
limit |
ROIs larger than limit will be split |
bin |
size of bins (in bp) the ROIs will be split into |
shift |
no. of bp between start positions of adjacent bins |
chr |
indicates whether naming contains chr prefix |
generates a new BED file with (larger) ROIs split into smaller bins
bed <- list.files(system.file("extdata", package = "panelcn.mops"), pattern = ".bed$", full.names = TRUE) splitROIs(bed, "newBed.bed")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.