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
The "residue" letter codes for DNA is slightly different to the convention used for proteins: it uses 2-letter codes instead of 3. While this isn't a problem for creating prolif.Molecule objects and generating a fingerprint, it might cause some issues when indexing the molecule to look for a particular residue, as shown below:
The problem comes from the ResidueId.from_string method which converts DA2 to ResidueId(name=None, number=None, chain="D")
You can still index the molecule correctly by using a ResidueId directly instead of a string: dmol[plf.ResidueId("DA", 2)]. It's less user friendly but also less error prone, since some residue names actually contain numbers like DA5 which correspond to the first residue.
The "residue" letter codes for DNA is slightly different to the convention used for proteins: it uses 2-letter codes instead of 3. While this isn't a problem for creating
prolif.Molecule
objects and generating a fingerprint, it might cause some issues when indexing the molecule to look for a particular residue, as shown below:The problem comes from the
ResidueId.from_string
method which convertsDA2
toResidueId(name=None, number=None, chain="D")
You can still index the molecule correctly by using a ResidueId directly instead of a string:
dmol[plf.ResidueId("DA", 2)]
. It's less user friendly but also less error prone, since some residue names actually contain numbers likeDA5
which correspond to the first residue.PS: prmtop file from the Amber tutorials
The text was updated successfully, but these errors were encountered: