Entering edit mode
Vinicius Henrique da Silva
▴
40
@vinicius-henrique-da-silva-6713
Last seen 19 months ago
Brazil
I would like to produce a GRanges from a XStringViews object. However I am getting an error:
library(BSgenome.Hsapiens.UCSC.hg19) hg19=BSgenome.Hsapiens.UCSC.hg19 tata <- DNAString("TATAAA") ma <- matchPattern(tata,hg19$chr22) gma <- as(ma, "GRanges") Error in as(ma, "GRanges") : no method or default for coercing “XStringViews” to “GRanges”
Some idea how to successfully make a conversion between this two classes?