gr.chr | R Documentation |
GRanges seqlevels
Prepend "chr" to GRanges seqlevels
gr.chr(gr)
gr |
|
implementation looks for strings that begin with 0-9, X,Y,M, or Un for the unmapped chromosome regions/decoys. regex pattern: "^([0-9,X, Y, M,x,y,m, Un, EBV]+)" replacement pattern: "chr\1"
Identical GRanges
, but with 'chr' prepended to each seqlevel
Max Chao
gr <- gr.chr(GRanges(c(1,"chrX"), IRanges(c(1,2), 1)))
seqnames(gr)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.