A generally applicable allowed structure generator could be constructed to streamline code and remove duplicate sections, as well as prevent unnecessary calculations of illegal protein structures. It could be complete or iterative, meaning it could make a completely new random but legal structure, or it could make one legal change to an existing protein structure. Currently something like this exists as a method of a random algorithm, but implementing it within Protein could work better.
A generally applicable allowed structure generator could be constructed to streamline code and remove duplicate sections, as well as prevent unnecessary calculations of illegal protein structures. It could be complete or iterative, meaning it could make a completely new random but legal structure, or it could make one legal change to an existing protein structure. Currently something like this exists as a method of a random algorithm, but implementing it within Protein could work better.