[BioC] questions about matchPattern and vmatchPattern

wang peter wng.peter at gmail.com
Thu Nov 1 19:07:04 CET 2012


> thx for your reply
> i donot think the manual can answer my question
>
>> For example, see inline:
>>
>>> subject = "TGCATTT"
>>> Rpattern = "TGCAATTT"
>>> result <- matchPattern(Rpattern, subject, max.mismatch= 4, min.mismatch=0)
>>> result
>>>   Views on a 7-letter BString subject
>>> subject: TGCATTT
>>> views:
>>>     start end width
>>> [1]     0   7     8 [ TGCATTT]
>>> [2]     1   8     8 [TGCATTT ]
>
> using my ass,i think it is position on the subject. but 0 and 8 are
> out of border of subject
>
> absolutely i know what is MIndex object
> but you never answer me
> if i use
>
> startIndex(result)
>
> it will return all of hits of on your subject or just the first one????



-- 
shan gao
Room 231(Dr.Fei lab)
Boyce Thompson Institute
Cornell University
Tower Road, Ithaca, NY 14853-1801
Office phone: 1-607-254-1267(day)
Official email:sg839 at cornell.edu
Facebook:http://www.facebook.com/profile.php?id=100001986532253



More information about the Bioconductor mailing list