Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

processing 3D electron density maps (.map) #226

Unanswered
jaydeepsb asked this question in Q&A
Discussion options

I wish to do some basic preprocessing on 3D maps (EMDB .map files), in python.
The steps I wish to carry out are -

  1. open a file, and read as numpy array,
  2. apply c_value contour (to get the surface of the enclosed structure),
  3. remove dust (and apply filters),
  4. reshape, e.g. initial volume (560,560,600) to (100,100,100) without distorting (padding with zeros if necessary)

I can load the map as numpy array as -

input_map = gemmi.read_ccp4_map(fname)
map_3d_array = np.array(input_map.grid, copy=False)

However, is it also possible to do the step 2, 3, and 4?
I am aware of chimera, but I wish to do it within my own python script.
Any help is highly appreciated.

You must be logged in to vote

Replies: 0 comments

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant

AltStyle によって変換されたページ (->オリジナル) /