Entering edit mode
wang peter
★
2.0k
@wang-peter-4647
Last seen 10.2 years ago
i want to remove the PCR2rc from the subject, but it is can not
recognized
if i set the mismatch =0.2
how can i sent parameter to let trimLRPatterns works
GATCGGAAGAGCACACGTCTGAACTCCA
TCACATCACGATATCGTATGCCGTCTTCTGCTTGAAAAAAAAAAAAAAACGACACAAGCCC
AGATCGGAAGAGCACACGTCTGAACTCCAGTCACATCACGATCTCGTATGCCGTCTTCTGCTTG
subject<- DNAString("
GATCGGAAGAGCACACGTCTGAACTCCATCACATCACGATATCGTATGCCGTCTTCTGCTTGAAAAAAAA
AAAAAAACGACACAAGCCC")
PCR2rc <-
DNAString("AGATCGGAAGAGCACACGTCTGAACTCCAGTCACATCACGATCTCGTATGCCGTCTTCT
GCTTG")
max.mismatchs <- 0.25*1:nchar(PCR2rc)
trimLRPatterns( Lpattern = PCR2rc, subject = subject,
max.Lmismatch=0.2,with.Rindels=T)
88-letter "DNAString" instance
seq:
ATCGGAAGAGCACACGTCTGAACTCCATCACATCACGATATCGTATGCCGTCTTCTGCTTGAAAAAAAAA
AAAAAACGACACAAGCCC
trimLRPatterns( Lpattern = PCR2rc, subject = subject,
max.Lmismatch=0.5,with.Rindels=T)
27-letter "DNAString" instance
seq: AAAAAAAAAAAAAAACGACACAAGCCC
countPattern(PCR2rc, subject, max.mismatch= 0.2, min.mismatch=0,
with.indels=TRUE)
[1] 0
[[alternative HTML version deleted]]