bebop / poly

A Go package for engineering organisms.
https://pkg.go.dev/github.com/bebop/poly
MIT License
665 stars 70 forks source link

Add NdeI fixing plus regression #314

Closed Koeng101 closed 1 year ago

Koeng101 commented 1 year ago

Previously, palindromes would be fixed twice. This caused failures with NdeI, which is often at methionine codons (HM). The program would ask for 2 fixes at a HM aa in a protein - but only 1 codon codes for M. The fixer would fix the H once, and then not have any other possible fixes next.

Fixed the code and added a regression test with comment.