You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to please ask if there is any way to modify the structure using an atom in the biotite? I know that the data of individual atoms can be accessed via indexing. For example, if I want to change the charge of the n-th atom to -1:
But I would like to ask if it is possible to access/change values for an atom without knowing its index? For example, if I want to iterate over residues and then over their atoms:
Using residue-wise iteration is not necessary in this snippet, but I suppose in your actual application it is.
Whenever possible, I recommend vectorized operations over the entire AtomArray or at least slices of it for performance reasons, though I do not know if this is possible for your some_nontrivial_magic_function().
Hello,
I would like to please ask if there is any way to modify the structure using an atom in the biotite? I know that the data of individual atoms can be accessed via indexing. For example, if I want to change the charge of the n-th atom to -1:
But I would like to ask if it is possible to access/change values for an atom without knowing its index? For example, if I want to iterate over residues and then over their atoms:
The problem with the code above is that if I store a value in atom.charge, that value is not written to protein.charge.
The text was updated successfully, but these errors were encountered: