-
Notifications
You must be signed in to change notification settings - Fork 18
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
Wrong conversion from CCP4 to DX #76
Labels
Comments
That looks wrong... do you have an example file that you can add to the issue or link? |
You can find the ccp4 file here https://www.ebi.ac.uk/pdbe/coordinates/files/1cbs.ccp4 |
Do we know if the problem is with
|
PR #100 does not fix this bug. In ChimeraX loading the densities gives
Clearly there's something wrong in how gridData interprets the data in some(?) CCP4 files. |
orbeckst
added a commit
that referenced
this issue
Feb 19, 2022
- mrcfile only reshapes the data to nz,ny,nx but does not take the mapc, mapr, maps into account. For gridData we need to do the coordinate system reorientation after transposing the mrcfile.data to nx, ny, nz. - add test (using CCP4_1JZV from the test data which contains mapc, mapr, maps = 2, 1, 3 - manually checked 1cbs.ccp4 from issue #76 (also a 2, 1, 3) and orientation is now correct but there is still an offset error that needs to be fixed
orbeckst
added a commit
that referenced
this issue
Feb 20, 2022
- mrcfile stores data in z,y,x format: we use the information of the axis orientation in mapc, mapr. maps to orient the data in the GridDataFormats x,y,z coordinate system - correctly reorient and center coordinates from MRC - fix #76 - add tests - mrcfile only reshapes the data to nz,ny,nx but does not take the mapc, mapr, maps into account. For gridData we need to do the coordinate system reorientation after transposing the mrcfile.data to nx, ny, nz. - add test (using CCP4_1JZV from the test data which contains mapc, mapr, maps = 2, 1, 3 - manually checked 1cbs.ccp4 from issue #76 (also a 2, 1, 3) and orientation is now correct but there is still an offset error that needs to be fixed - update CHANGELOG (and add @tluchko) Co-authored-by: tluchko <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Importing a CCP4 map to convert it to a DX file outputs an inverted DX file.
When displaying the DX file in Pymol or VMD, the molecule does not fit in the iso-surface
Level 1 of the exported DX file in Pymol:
Level 1 of the CCP4 file in Pymol:
Did I miss something ?
The text was updated successfully, but these errors were encountered: