Entering edit mode
wang peter
★
2.0k
@wang-peter-4647
Last seen 10.2 years ago
i found a wired problem, but i donot know if it is a bug
triming from left is different from triming from right, please see
those
coding
such two sequence have distance of 3
AAAAAAAAAAAAAAACGACACAAGCCCGATCGGAAGAGCACACGTCTGAACTCCA
TCACATCACGATATCGTATGCCGTCTTCTGCTTG
AGATCGGAAGAGCACACGTCTGAACTCCAGTCACATCACGATCTCGTATGCCGTCTTCTGCTTG
subject<-
DNAString("AAAAAAAAAAAAAAACGACACAAGCCCGATCGGAAGAGCACACGTCTGAACTCCATCAC
ATCACGATATCGTATGCCGTCTTCTGCTTG")
PCR2rc <-
DNAString("AGATCGGAAGAGCACACGTCTGAACTCCAGTCACATCACGATCTCGTATGCCGTCTTCT
GCTTG")
trimLRPatterns(Rpattern = PCR2rc, subject = subject,
max.Rmismatch=0.2,with.Rindels=T)
or trimLRPatterns(Rpattern = PCR2rc, subject = subject,
max.Rmismatch=3,with.Rindels=T)
25-letter "DNAString" instance
seq: AAAAAAAAAAAAAAACGACACAAGC
such two sequence are symitric of those above
GATCGGAAGAGCACACGTCTGAACTCCA
TCACATCACGATATCGTATGCCGTCTTCTGCTTGAAAAAAAAAAAAAAACGACACAAGCCC
AGATCGGAAGAGCACACGTCTGAACTCCAGTCACATCACGATCTCGTATGCCGTCTTCTGCTTG
subject<-
DNAString("GATCGGAAGAGCACACGTCTGAACTCCATCACATCACGATATCGTATGCCGTCTTCTGC
TTGAAAAAAAAAAAAAAACGACACAAGCCC")
PCR2rc <-
DNAString("AGATCGGAAGAGCACACGTCTGAACTCCAGTCACATCACGATCTCGTATGCCGTCTTCT
GCTTG")
trimLRPatterns(Lpattern = PCR2rc, subject = subject,
max.Lmismatch=0.2,with.Rindels=T)
88-letter "DNAString" instance
seq:
ATCGGAAGAGCACACGTCTGAACTCCATCACATCACGATATCGTATGCCGTCTTCTGCTTGAAAAAAAAA
AAAAAACGACACAAGCCC
[[alternative HTML version deleted]]