Hello
I have 2 columns of short sequences that I would like to compare and count the
number of mismatches and record the number of mismatches in a new column. The
sequences are part of a data frame that looks like this:
seq1=c("CGGTGTAGAGGAAAAAAAGGAAACAGGAGTTC","CGGTGGTCAGTCTGGGACCTGGGCAGCAGGCT",
"CGGGCCTCTCGGCCTGCAGCCCCCAACAGCCA")
seq2=c("AGGTGTAGAGGAAAAAAAGGAAACAGGAGTTC","CAGTGGTCAGTCTGGGACCTGGGCATCAGGCT",
"CGGGCCTCTCGGCCTGCAGCCCCCAACAGCCA")
d.f=data.frame(seq1, seq2)
thank you for your help
Joseph
____________________________________________________________________________________
Looking for last minute shopping deals?
[[alternative HTML version deleted]]
______________________________________________
[email protected] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.