Note that this is strictly speaking not entirely correct as entity_ids should be deduplicated for the same chains (e.g. an A3-homomer would have 3 chains A, B, C, but just a single entity 1). However, pragmatically this is better than just setting it to being unset (?) and a simple fix to do.
Currently, OpenMM writes
?
in the_atom_site.label_entity_id
mmCIF field:This happens in pdbxfile.py#L453:
Would it be possible to write
chainIndex + 1
instead? I.e.:Note that this is strictly speaking not entirely correct as entity_ids should be deduplicated for the same chains (e.g. an A3-homomer would have 3 chains
A, B, C
, but just a single entity1
). However, pragmatically this is better than just setting it to being unset (?
) and a simple fix to do.