nglviewer / ngl

WebGL protein viewer
http://nglviewer.org/ngl/
MIT License
662 stars 167 forks source link

When opening a ccp4 map from EDS the map isn't well aligned onto the structure #1048

Open pschmidtke opened 1 month ago

pschmidtke commented 1 month ago

Hi,

when trying to visualize the structure 4o71 and others (3q0r etc) using an input pdb file and density (2Fo) from the pdbe we can observe that the map is not well centered on the structure itself. Also only a single cell is shown.

image

I noticed that the NGL code doesn't do symetry operations that can be specified in the ccp4 format, but this isn't the only issue here, as 3q0r also isn't displayed properly.

Any idea on what needs fixing here?

I investigated the symetry operations a bit and found source code in uglymol treating this, but didn't manage to make it work for now.

fredludlow commented 1 month ago

Hi @pschmidtke, it'd be nice to handle symmetry operations - I've never tried to implement this, but happy to look at some code and see if it's possible