haddocking / pdb-tools

A dependency-free cross-platform swiss army knife for PDB files.
https://haddocking.github.io/pdb-tools/
Apache License 2.0
369 stars 112 forks source link

Improved `pdb_selaltloc` #117

Closed joaomcteixeira closed 2 years ago

joaomcteixeira commented 2 years ago

Closes #115

This one was tough.

Done:

The script might look more complex at first, but if you flow it is not, simply there are so many cases. We start at one function and we branch down to the yield statements. Some yield statements are tricky because of the ANISOU extra lines.

@JoaoRodrigues I really can't think about additional cases. You had already many different cases in dummy_altloc.pdb and dummy_altloc2.pdb and all those are covered.