gr.sub | R Documentation |
gsub
to seqlevels of a GRanges
Apply gsub to seqlevels of gr, by default removing 'chr', and "0.1" suffixes, and replacing "MT" with "M"
gr.sub(gr, a = c("^chr", "MT"), b = c("", "M"))
gr |
|
a |
vector of regular expressions of things to substitute out (default = c("^chr", "MT")) |
b |
vector of values to substitute in (default = c("", "M")) |
GRanges with substitutions
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.