# vermouth.processors.rename_modified_residues module¶

Provides a processor that renames residues based on their current residue names and identified modifications, such as PTMs.

class vermouth.processors.rename_modified_residues.RenameModifiedResidues[source]
run_molecule(molecule)[source]
vermouth.processors.rename_modified_residues.rename_modified_residues(mol)[source]

Renames residue names based on the current residue name, and the found modifications. The new names are found in force_field.renamed_residues, which should be a mapping of {(rename, [modification_name, ...]): new_name}.

Parameters: mol (Molecule) – The molecule whose residue names should be changed. Is modified in-place.