Description Usage Arguments Value Examples
View source: R/extract_regions.R
Extract regions from a scan data frame.
1 | extract_regions(scan, regions, right = TRUE)
|
scan |
A data frame with chromosomal positions like obtained
by |
regions |
A data frame with genomic regions like the output of |
right |
logical, indicating if the intervals should be closed on the right (and open on the left) or vice versa. |
A subset of data frame scan
, retaining only positions belonging to
the regions specified in data frame regions
.
1 2 3 4 | library(rehh.data)
data(wgscan.cgu)
regions <- data.frame(CHR = 12, START = 2.88e+7, END = 2.92e+7)
extract_regions(wgscan.cgu, regions)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.