Closed DTRademaker closed 2 years ago
Hi Daniel, I would not call that a bug really. It was the intended behavior at least. In most cases there will be more than 1 atom per atom type returned (i.e. many oxygens, carbons etc …) so returning only the coordinate would not allow to identify atoms.
I would strongly recommend against modifying the behavior of the get function to keep the order of the atom list provided by the user in argument of the get function
This issue is stale because it has been open for 30 days with no activity. Remove stale label or comment or this will be closed in 7 days.
This issue was closed because it has been inactive for 7 days since being marked as stale.
Hello,
Li and I found a bug. It seems that when you want the specific coordinates (or other values) from a pdb, the order of the atom-list is not uphold in the return values. So if you switch the order (e.g., CA, C, O -> O, C, CA) the return values are identical. Therefore the user will never know which values belong to which atoms. The order the program returns seems to be in the order the pdb itself has. Therefore, also, if one compares 2 pdbs where the atom-name order is different in the pdbs, the user will get wrong results and conclusions.
Some example code below, the pdb is uploaded with this issue.
ref.zip