Description Usage Arguments Details Value Author(s) References See Also Examples
Read the coordinates information from a bed file.
1 |
bedFile |
|
assemblyFn |
|
This function is designed to read the bed file as ‘chrom’, ‘chromStart’, ‘chromEnd’. The strand information is also stored where available.
In the bed file, the ‘chromStart’ is on the 0-based coordinate system
while ‘chromEnd’ is on the 1-based coordinate system.
For example, the first 100 bases of a chromosome are
defined as ‘chromStart=0’, ‘chromEnd=100’,
and span the bases numbered 0-99.
When it is read into GRanges
,
both the ‘chromStart’ and ‘chromEnd’ are on 1-based coordinate,
i.e.,
‘chromStart=1’ and ‘chromEnd=100’.
When ‘assemblyFn’ is not NULL
, the corresponding Seqinfo
will be added into the returned GRanges
.
A GRanges
object is returned.
When no strand information is available in the bed file,
all the ranges are assumed to be on the positive strand.
Ge Tan
https://genome.ucsc.edu/FAQ/FAQformat.html#format1
1 2 3 4 5 6 | bedFn <- file.path(system.file("extdata", package="CNEr"),
"filter_regions.hg38.bed")
assemblyFn <- file.path(system.file("extdata",
package="BSgenome.Hsapiens.UCSC.hg38"),
"single_sequences.2bit")
bed <- readBed(bedFn, assemblyFn=assemblyFn)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.