Description Usage Arguments Details Value Author(s) Examples
Windows are made around a reference point, which is the start coordinate for features on the + strand, and the end coordinate for features on the - strand. For unstranded features, the reference point is taken to be the mid-point of the feature.
1 2 3 4 5 | ## S4 method for signature 'data.frame'
featureBlocks(anno, ...)
## S4 method for signature 'GRanges'
featureBlocks(anno, up = NULL, down = NULL, dist = c("base", "percent"),
keep.strand = FALSE)
|
anno |
A |
up |
The amount to go upstream or towards the start of a chromosome.
Semantics depend on the value of |
down |
The amount to go downstream or towards the end of a chromosome.
Semantics depend on the value of |
dist |
Whether |
keep.strand |
Whether the blocks should keep the strands of their features,
or if all blocks should have strand be |
... |
Arguments from the list above that are not used directly within the
|
up
refers to how many bases to go upstream for stranded features, or
for unstranded features, how many bases to go towards the start of the chromosome,
from the mid-point of the feature. Having a negative value for up
means
that the windows will start downstream by that amount, for stranded features.
For unstranded features, it will start that many bases closer to the end of
the chromosome, relative to the feature mid-point.
down
is defined analogously.
A GRanges
of windows surrounding reference points for the
features described by anno
.
Dario Strbenac
1 2 3 4 5 6 | genes <- data.frame(chr = c("chr1", "chr3", "chr7", "chr22"),
start = seq(1000, 4000, 1000),
end = seq(1500, 4500, 1000),
strand = c('+', '-', '-', '+'))
featureBlocks(genes, 500, 500)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.