Skip to content

Commit

Permalink
Make PTM atoms also apply their 'replace' attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
pckroon committed Jul 5, 2024
1 parent dfadbbb commit 05fd326
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions vermouth/processors/do_mapping.py
Original file line number Diff line number Diff line change
Expand Up @@ -426,6 +426,7 @@ def apply_mod_mapping(match, molecule, graph_out, mol_to_out, out_to_mol):
out_idx = max(graph_out) + 1
mod_to_out[mod_idx] = out_idx
graph_out.add_node(out_idx, **modification.nodes[mod_idx])
graph_out.nodes[out_idx].update(modification.nodes[mod_idx].get('replace', {}))
else:
# Node should already exist
# We need to find the out_index of this node. Since the
Expand Down

0 comments on commit 05fd326

Please sign in to comment.