Here we describe a method to quantify molecular heterogeneity in histological sections of tumor material using quantitative immunofluorescence, image analysis, and a statistical measure of heterogeneity. The method is intended for use in clinical biomarker development and analysis.