slop.Rd
Slop (i.e. extend left/right)
slop(granges, leftstart = -22, rightend = 22, verbose = TRUE)
granges | GenomicRanges::GRanges |
---|---|
leftstart | flank start relative to range start |
rightend | flank end relative to range start |
verbose | logical(1) |
GenomicRanges::GRanges
require(magrittr) bedfile <- system.file('extdata/SRF_sites.bed', package = 'multicrispr') bsgenome <- BSgenome.Mmusculus.UCSC.mm10::Mmusculus granges <- read_bed(bedfile, bsgenome)#>#>#>#>#> GRanges object with 1 range and 0 metadata columns: #> seqnames ranges strand #> <Rle> <IRanges> <Rle> #> [1] chr1 4712627-4712643 - #> ------- #> seqinfo: 66 sequences (1 circular) from mm10 genome#>#> GRanges object with 1 range and 0 metadata columns: #> seqnames ranges strand #> <Rle> <IRanges> <Rle> #> [1] chr1 4712605-4712665 - #> ------- #> seqinfo: 66 sequences (1 circular) from mm10 genome