Skip to content
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

nup84 2D EM map in PGM format can't be read by Python Image Library #33

Closed
tomgoddard opened this issue Apr 5, 2017 · 2 comments
Closed
Assignees

Comments

@tomgoddard
Copy link
Collaborator

The 2D EM map in the nup84.cif example is in ASCII PGM format which is not supported by the Python Image Library (Pillow 4.0.0, latest available). Binary PGM is supported. This is such an obscure format it is not worth adding support in ChimeraX to read it. Better to convert to a commonly used format like MRC or CCP4 or PNG or TIFF to make the example represent best practice.

@benmwebb benmwebb self-assigned this Apr 5, 2017
@benmwebb
Copy link
Contributor

benmwebb commented May 5, 2017

Unfortunately the code in IMP to handle 2D EM maps only works with ASCII PGM format, so we can't change the file in the repository. It has to reflect what was actually done in the modeling.

Fortunately the file format is very simple and the parser is correspondingly simple. You can certainly steal Dina's code to parse it.

@tomgoddard
Copy link
Collaborator Author

tomgoddard commented May 9, 2017 via email

benmwebb added a commit to integrativemodeling/nup84 that referenced this issue May 11, 2017
Binary PGM is much better supported by external tools and
libraries than text PGM. Relates ihmwg/IHMCIF#33.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants