[3dem] Remove negative density from a map

Daniel Castano Diez daniel.castano at unibas.ch
Mon Apr 29 03:26:50 PDT 2013


Hi Max,

these kind of manipulations (pixelwise operations on volumes) are easy 
in Matlab  (or in the  Dynamo command line if you don't have a Matlab 
license), for instance in your case:

 >> dread mymap.mrc a;  % reads your map into the Matlab/Dynamo workspace
 >> a(a<0)=0;          % now it's just an array that you can manipulate 
from the command line and then write again into a .mrc file

cheers,
D.

> Dear all
> Does anybody know how to remove negative density (set to zero) from a mrc map?
> I subtracted two structures to highlight a factor and the negative peaks are making my life miserable.
> Best
> Max
>
> __________________________________
> Massimiliano Maletta
> post-doc in
> NKI Netherlands Cancer Institute -Antoni van Leeuwenhoek Hospital Plesmanlaan 121 B6 1066CX Amsterdam
> group of Peter Peters
> www.nki.nl/research/peters/<http://www.nki.nl/research/peters/>   | www.necen.nl<http://www.necen.nl/>
> m.maletta at nki.nl<mailto:m.maletta at nki.nl>
> Tel : +31 20 512 2022
> Fax : +31 20 512 2029
> _______________________________________________
> 3dem mailing list
> 3dem at ncmir.ucsd.edu
> https://mail.ncmir.ucsd.edu/mailman/listinfo/3dem
>   



More information about the 3dem mailing list