Entering edit mode
9.1 years ago
ad
▴
30
Hi, is there a way to use matchPattern from Biostrings to search for a set of patterns rather than just one? If not is there any similar alternative?
I'm using it this so far and it doesn't work
matchPattern("TAATTAAT|ATTAATTATAATAT|ATTATA",subSeq)
and
MotifSearch<-DNAStringSet(c("TAATTAAT","ATTAATTA","TAATAT","ATTATA"))
MotifResults<-vmatchPattern(MotifSearch,subSeq)
Could searching for multiple patterns in multiple strings work too?
Thanks
Doesn't seem to work if the strings in the stringset are different sizes.
Also matchPDict doesn't seem to work with an XStringSet.