You need to set 'Rfixed' to either FALSE or "subject":
trimLRPatterns(Rpattern=p, subject=a, Rfixed=FALSE)
trimLRPatterns(Rpattern=p, subject=a, Rfixed="subject")
See ?matchPattern and ?`lowlevel-matching`.
By the way, your pattern did not have to be a DNAString. "CCNNT"
would have been fine. But the ambiguity machinery with regard to
the subject requires that it be an RNA- or DNAString.
-Harris
On Sep 23, 2010, at 1:32 PM, Kunbin Qu wrote:
Hi, all,
Does trimLRPatterns function take wild card N? When I tested it, it
does not seem to work. Is there a way to do that? Thanks.
-Kunbin
a<-DNAString("AAACCCCTTTCCTTT")
p<-DNAString("CCNNT")
trimLRPatterns(Rpattern=p, subject=a)
15-letter "DNAString" instance
seq: AAACCCCTTTCCTTT
p<-DNAString("CCTTT")
trimLRPatterns(Rpattern=p, subject=a)
10-letter "DNAString" instance
seq: AAACCCCTTT
______________________________________________________________________
The contents of this electronic message, including any attachments,
are intended only for the use of the individual or entity to which
they are addressed and may contain confidential information. If you
are not the intended recipient, you are hereby notified that any
use, dissemination, distribution, or copying of this message or any
attachment is strictly prohibited. If you have received this
transmission in error, please send an e-mail to
[email protected] and delete this message, along with
any attachments, from your computer.
_______________________________________________
Bioc-sig-sequencing mailing list
[email protected]
https://stat.ethz.ch/mailman/listinfo/bioc-sig-sequencing
_______________________________________________
Bioc-sig-sequencing mailing list
[email protected]
https://stat.ethz.ch/mailman/listinfo/bioc-sig-sequencing