Description Usage Arguments Value Examples
padGRanges
takes a GRanges object and adds or substracts
distance based on user-defined input. Upstream and downstream
consider strand information when available. Specify only either
pad or upstream/downstream when using
1 2 3 4 | padGRanges(gro, upstream = 0, downstream = 0, pad = 0)
## S4 method for signature 'GRanges'
padGRanges(gro, upstream = 0, downstream = 0, pad = 0)
|
gro |
A granges object |
upstream |
Distance in BP added upstream |
downstream |
Distance in BP added downstream |
pad |
Distance in BP added |
A GRanges object with adjusted start and end values
1 2 3 4 | #Read in CTCF Jurkat peaks in
ctcf_j <- system.file('extdata','Jurkat_CTCF_chr1.narrowPeak',package = 'diffloop')
ctcf <- bedToGRanges(ctcf_j)
ctcf.pad <- padGRanges(ctcf, pad = 1000)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.