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

Working with CCP4 Data within Cestimii #3

Open
biberger opened this issue Oct 2, 2021 · 1 comment
Open

Working with CCP4 Data within Cestimii #3

biberger opened this issue Oct 2, 2021 · 1 comment
Assignees
Labels
documentation Improvements or additions to documentation enhancement New feature or request

Comments

@biberger
Copy link
Collaborator

biberger commented Oct 2, 2021

You can use the Python library Gemmi to handle CCP4 data (example).

To get the data into Python, execute the following code found originally on StackExchange:

import gemmi
ccp4_map = gemmi.read_ccp4_map('my.map')
ccp4_map.setup()  # optional
vol = numpy.array(ccp4_map.grid, copy=False)

Generally, you can leave out the .setup() step.

Depending on the data, you can either work directly on 'vol' or segment it and then work on it with Cestimii. Depending on the segmentation, data or mask, choose whether you want to represent the data as a relaxed or strict occupancy grid (allow values between 0 and 1 or strictly restrict the allowed values to 0,1).

@biberger biberger self-assigned this Oct 5, 2021
@biberger biberger added documentation Improvements or additions to documentation enhancement New feature or request labels Oct 5, 2021
@biberger
Copy link
Collaborator Author

biberger commented Oct 5, 2021

Maybe I'll add this as a feature to Cestimii at one point. But this won't happen in the near future and only if there's interest. In the meantime, just follow the steps above and use the occupancy grid methods in cestimii.

@biberger biberger closed this as completed Oct 5, 2021
@biberger biberger reopened this Oct 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant