-
Notifications
You must be signed in to change notification settings - Fork 170
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ngl/src/store /residue-type.ts isRna() issue #1016
Comments
There's also a bonding problem for coarse-grained DNA/RNA chains. For two backbone atoms to make a bond, the max distance between them is set to I set it to |
Note that the code is not doing the same thing in the two passes. The first test checks for That being said, I don't know what was the exact rationale behind those tests (it was coded more than 6 years ago by Alex Rose who is now dedicating his efforts towards Mol*). I remember that in some legacy PDB files the resnames A, T, C, G were used in DNA instead of proper DA, DT, DC, DG, which makes the test on the rna residue name insufficient. Also, there are typically multiple non-standard/modified bases in RNA. |
Thank you for the reply. So that condition is meant to prevent DNA chains in some older PDBs to be recognized as RNA chains? A possible solution could be to handle those exceptions in the ... ||
DnaBases.includes(this.resname) ||
RnaBases.includes(this.resname) && ! this.hasAtomWithName([ "O2'", 'O2*', "F2'", 'F2*' ]) But in that case, coarse-grainded RNA chains would be evaluated as |
@Fravadona I am not sure why it was written this way. |
@ppillot I'm not sure what you call a "public coarse grained RNA structure" but here's an example that works with my "patched" version of http://www.dynstr.pasteur.fr/servers/minactionpath/minactionpath2_submission/examples/8G34_to_8G31/ If you load the |
Hi,
I've got a little issue with
ngl.js
.Coarse-grainied DNA chains (with only
P
and/orC3'
atoms) work fine, but coarse-grained RNA chains (with onlyP
and/orC4'
atoms) are not displayed.With some efforts I found out that the
isRna()
function ofngl/src/store /residue-type.ts
has a little problem:In the expression
the
&& this.hasAtomWithName([ "O2'", 'O2*', "F2'", 'F2*' ])
shouldn't be there, IMHO. Why check for the presence of specific atoms when you already failed at it and felled-back to inquire the residue name?Removing that expression makes NGL display coarse-grained RNA chains:
Cheers
Rafael.
The text was updated successfully, but these errors were encountered: