no need to add, works just fine.
thanks!
Having them as static variables means you have a proper type associated with the identifiers, which is kind of nice. It also means that you can add your own residue names and have the mapping to a string accessible to i/o code.
On Dec 16, 2008, at 11:40 AM, Dina Schneidman wrote:
Hi,
is there any reason that ResidueTypes and AtomTypes are defined as static variables, rather than enum?
ResidueType("pdbname") should work for now. Same for AtomType.
what is the best way to map between ResidueType and the PDB residue name string and the same for atoms?
I think I should add a function residue_type_from_pdb_name and atom_type_from_pdb_name to provide a cleaner and clearer route. I'll check in such code shortly.
thanks!
Dina
_______________________________________________
IMP-dev mailing list
IMP-dev@salilab.org
https://salilab.org/mailman/listinfo/imp-dev
_______________________________________________
IMP-dev mailing list
IMP-dev@salilab.org
https://salilab.org/mailman/listinfo/imp-dev