primaryodors / primarydock

PrimaryOdors.org molecular docker.
Other
6 stars 4 forks source link

Revised amino acid similarity function. #267

Closed electronicsbyjulie closed 1 year ago

electronicsbyjulie commented 1 year ago

This PR revises AminoAcid::similarity_to() to use a per atom similarity algorithm with additional factors for matching hydrophilicity and charge. Amino acid similarities, like atom similarities, now fall in the range of zero to unity. The group classes have been updated to accommodate this new feature.

Additionally, the numerous amino tests have been replaced with one comprehensive test that compares all 21 aminos (selenocysteine being the extra member) in a grid format. The numerous one-at-a-time amino tests have been obviated and removed from the test folder, making it a little more tidy.

electronicsbyjulie commented 1 year ago

🟩🟩🟩