Open ChrisMoth opened 3 years ago
Could you attach an example of failing cif file for reproducibility and testing? Thanks!
Here is a working example page using 4cox.cif as deposited at PDBe https://structbio.vanderbilt.edu/~mothcw/NGL_4COX_WorksGreat/
Here is a failing example using 4cox_chimeraX.cif (file I created by opening 4cox.cif in chimeraX, and saving as mmcif) There are no helix entries in this file, and NGL seems to want to see them:
https://structbio.vanderbilt.edu/~mothcw/NGL_4COX_chimeraX_Fails/
You can directly get the file from chimeraX with missing helix entries here: https://structbio.vanderbilt.edu/~mothcw/NGL_4COX_chimeraX_Fails/4cox_chimeraX.cif
Tracing through with web debugger I see:
"Paused on exception TypeError: can't access property 0, u.pdbx_PDB_helix_class is undefined"
I probably should find non-minified NGL... but the offending code in minified is this parseInt, presuably because PDB_helpx_class not a member of this structure:
.beg_auth_seq_id.length;r<n;++r){var h=parseInt(u.pdbx_PDB_helix_class[r]);Number.isNaN(h)||(o=u.pdbx_beg_PDB_ins_code[r],a=u
I attach the failing .cif, output by chimeraX without secondary structure notes, in next comment.
I dragged a containing zip file from my Windows (sorry) desktop.
I saved a .cif file with ChimeraX and NGL Viewer won't display it. The web-debugger showing:
The javascript level error I see in firefox debugger from NGL Viewer is:
"Uncaught (in promise) TypeError: can't access property 0, u.pdbx_PDB_helix_class is undefined"
My failing .html is:
$ cat ngltest.html