mutect_path = system.file("examples", "mutect.tsv", package = "SomaticSignatures")
vr1 = readMutect(mutect_path, strip = TRUE)
## extract the GRanges
gr = granges(vr1)
## convert back and forth
gr_ncbi = ncbi(gr)
gr_ucsc = ucsc(gr_ncbi)
identical(gr, gr_ucsc)
## extract the seqnames as a character vector
seq_chars = seqchar(gr)
Run the code above in your browser using DataLab