Names for selection positions
- If/when a mechanism of writing a (pdb/gro) trajectory out of the selected positions is implemented, the atom/residue names in the output need to come from somewhere.
- Some tools may want to use these in output, e.g., in the form of plot legends. For example, g_bond has a legend like "CA RES1 - O RES2".
- Tool code would need less access to the actual atom data; it would even be possible to write them such that a custom vdwradii.dat etc. could be used to assign properties to these selected positions, even if they would not map to individual atoms.
Should be relatively straightforward to implement once it is clear what the names should consist of. Probably they need to be split to (at least) three parts: "atom" name, "residue" name, and "residue" number to accommodate the above uses. The last probably naturally maps to SelectionPosition::refId() or SelectionPosition::mappedId(), but the names are less clear. We should decide on the rules of how these names are set for different types of selections (e.g., res_com, mol_cog), and also fallbacks and/or user control for cases where it's difficult to have a generic solution (e.g., com of molecule 1 to 10); suggestions are welcome.