Masking : Mask creation tool for 2D or 3D masks.
Usage in command line
sp_mask.py input_volume output_directory --prefix=PREFIX --overwrite --low_pass_filter_resolution=LOW_PASS_FILTER_RESOLUTION --low_pass_filter_falloff=LOW_PASS_FILTER_FALLOFF --pixel_size=PIXEL_SIZE --threshold=THRESHOLD --nsigma=NSIGMA --mol_mass=MOL_MASS --ndilation=NDILATION --nerosion=NEROSION --edge_width=EDGE_WIDTH --edge_type=EDGE_TYPE --do_old --allow_disconnected --fill_mask --second_mask=SECOND_MASK --second_mask_shape=SECOND_MASK_SHAPE --s_radius=S_RADIUS --s_nx=S_NX --s_ny=S_NY --s_nz=S_NZ --s_threshold=THRESHOLD --s_nsigma=NSIGMA --s_mol_mass=MOL_MASS --s_ndilation=NDILATION --s_nerosion=NEROSION --s_edge_width=EDGE_WIDTH --s_edge_type=EDGE_TYPE --s_do_old --s_allow_disconnected --s_invert=S_INVERT --s_fill_mask
sp_mask.py exists only in non-MPI version.
Create a binary mask dilated by 2 pixel using the binary threshold from chimera
sp_mask.py input_volume output_directory --threshold=0.3 --edge_width=0 --ndilation=1
Create an adapted mask dilated by 2 pixel and a soft edge of 5 pixel using the binary threshold from chimera
sp_mask.py input_volume output_directory --threshold=0.3 --edge_width=5 --ndilation=1
Create an adapted mask dilated by 2 pixel and a soft edge of 5 pixel using the binary threshold from chimera and masked by a soft edged cylinder to 80% (e.g. for helical reconstruction with a box size of 300)
sp_mask.py input_volume output_directory --threshold=0.3 --edge_width=5 --ndilation=1 --second_mask_shape=cylinder --s_radius=40 --s_nx=240 --s_ny=240 --s_nz=240 --s_ndilation=1 --s_edge_width=5
Markus Stabrin
Category 1:: APPLICATIONS
sparx/bin/sp_mask.py
Beta:: Under evaluation and testing. Please let us know if there are any bugs.
There are no known bugs so far.