A new method has been developed for protein phase improvement using the joi
nt distribution of the electron density and its gradient (two-dimensional h
istogram) as a constraint in a density-modification procedure. Matching the
two-dimensional (2D) histogram of a given map to that of an ideal 2D histo
gram was achieved through alternating applications of one-dimensional (1D)
histogram matching on electron density and on density gradient. The 2D hist
ogram-matching method was compared with the 1D density histogram-matching m
ethod for phase refinement and extension starting from either medium-resolu
tion or high-resolution data on three different types of phases. These incl
uded phase refinement and extension using MIR phases of T-6 insulin and pha
ses with randomly generated errors. The test results demonstrated significa
nt improvement of the phases and the overall map quality using the 2D histo
gram-matching method compared with the 1D density histogram-matching method
in each of the three test cases.