The modeling.oemodeling.apply_mutations function has a fallback implemented to delete any residue that was not successfully mutated. This behavior is also tested in the unit tests. However, when attempting to mutate a PTR to TYR in the PDB structure 2GQG the residue was renamed to TYR but the side chain was not built. This PR makes sure the fallback behaves as expected and also deletes such renamed truncated amino acid.
Description
The
modeling.oemodeling.apply_mutations
function has a fallback implemented to delete any residue that was not successfully mutated. This behavior is also tested in the unit tests. However, when attempting to mutate a PTR to TYR in the PDB structure 2GQG the residue was renamed to TYR but the side chain was not built. This PR makes sure the fallback behaves as expected and also deletes such renamed truncated amino acid.Status