Density.core_mask#
- Density.core_mask()[source]#
Calculates a weighted core mask by performing iterative binary erosion on
Density.data
. In each iteration, all mask elements corresponding to a non-zero data elemnt are incremented by one. Therefore, a mask element with value N corresponds to a data value that remained non-zero for N iterations. Mask elements with high values are likely part of the core density [1].- Returns:
- NDArray
Core-weighted mask with shape of
Density.data
.
References
[1]Gydo Zundert and Alexandre Bonvin. Fast and sensitive rigid-body fitting into cryo-em density maps with powerfit. AIMS Biophysics, 2:73–87, 04 2015. doi:10.3934/biophy.2015.2.73