Closed rimmartin closed 1 year ago
You can change type_energy (or anything else) using generic functions for working with CIF blocks. For example:
// gemmi::add_chemcomp_to_block(..., new_block);
for (auto row : new_block.find("_chem_comp_atom.", {"atom_id", "type_energy"}))
row[1] = row[0] + "_1"; // type_energy = atom_id + "_1"
// gemmi::cif::write_cif_block_to_stream(...);
A way to pass in or get types to the type_energy column.
Example:
The make_chemcomp_with_restraints sets the chem_type from the Element uname which currently is an all caps of the element symbol?
Determining the types seems to involve perception and topology outside the purvey of gemmi. Would it fit gemmi to provide a way to externally set these types?