Description Usage Arguments Value Examples
GRanges <-> data.table
1 2 3 |
gr |
|
dt |
data.table |
seqinfo |
|
data.table (gr2dt) or GRanges (dt2gr)
1 2 3 4 5 6 7 8 | bsgenome <- BSgenome.Hsapiens.UCSC.hg38::BSgenome.Hsapiens.UCSC.hg38
gr <- char_to_granges(c(PRNP = 'chr20:4699600:+', # snp
HBB = 'chr11:5227002:-', # snp
HEXA = 'chr15:72346580-72346583:-', # del
CFTR = 'chr7:117559593-117559595:+'), # ins
bsgenome)
(dt <- gr2dt(gr))
(gr <- dt2gr(dt, BSgenome::seqinfo(bsgenome)))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.