Where:
- imol_ligand_new is an integer number
- chain_id_ligand_new is a string
- resno_ligand_new is an integer number
- imol_current is an integer number
- chain_id_ligand_current is a string
- resno_ligand_current is an integer number
Copy a molecule with addition of a ligand and a deletion of current ligand.
This function is used when adding a new (modified) ligand to a structure. It creates a new molecule that is a copy of the current molecule except that the new ligand is added and the current ligand/residue is deleted.