I need to find how well several different lists match a reference list. I'm looking for a percentage or some kind of similarity score.
For example,
a = {"A278", "G279", "S280", "G281", "I282", "I283", "I284", "S285", "D286", "T287", "P288", "V289", "H290", "D291", "C292"} b = {"S280", "G281", "I282", "I284"} c = {"C275", "S276", "T277", "A278", "G279"} How can I determine that b is a better match against a than c? a is the reference list.
Order matters.
After looking through the documentation, the only way I can think of doing this is to iterate through b and c and test if each element is MemberQ of a, tallying up the total and comparing the totals at the end. Is there a better approach?
*Distance[]/*Dissimilarity[]functions available.SequenceAlignment[]might also be of use. $\endgroup$Complement. $\endgroup$Complementnow, it seems promising @bbgodfrey $\endgroup$