Description Usage Arguments Value See Also Examples
View source: R/04_bed_to_granges.R
Convert character vector into GRanges
1 | char_to_granges(x, bsgenome)
|
x |
character vector |
bsgenome |
|
GRanges-class
bed_to_granges
, genes_to_granges
1 2 3 4 5 6 7 8 | require(magrittr)
bsgenome <- BSgenome.Hsapiens.UCSC.hg38::BSgenome.Hsapiens.UCSC.hg38
x <- c(PRNP = 'chr20:4699600:+', # snp
HBB = 'chr11:5227002:-', # snp
HEXA = 'chr15:72346580-72346583:-', # del
CFTR = 'chr7:117559593-117559595:+') # ins
gr <- char_to_granges(x, bsgenome)
plot_intervals(gr, facet_var = c('targetname', 'seqnames'))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.