coord2GR | R Documentation |
This function takes a string vector of genomic coordinates and converts it into a GRanges object.
coord2GR(coordinates)
coordinates |
A string vector of one or more genomic coordinates to be converted |
Genomic coordinates can take one of the following syntax:
seqnames:start
seqnames:start-end
seqnames:start-end/strand
The following examples are considered valid genomic coordinates:
"chr1:21535"
"chr3:10550-10730"
"X:51231-51330/-"
"chrM:2134-5232/+"
A GRanges object that corresponds to the given coordinates
se <- SpliceWiz_example_NxtSE()
coordinates <- rowData(se)$EventRegion
gr <- coord2GR(coordinates)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.