// "ParticleClusterAnalysis" // Displays the percentage of particles that have a // neighbor within 13nm (center-to-center). Such particles // are assumed to be part of a cluster. The scale // is assumed to be 3.997 pixels/nm. maxDistance = 13; //nm scale = 3.997; //pixels/nm run("Set Scale...", "distance="+scale+" known=1 unit=nm pixel=1"); title = getTitle(); setAutoThreshold(); saveSettings(); run("Set Measurements...", "centroid redirect=None decimal=2"); run("Analyze Particles...", "minimum=50 maximum=9999 bins=100 show=Nothing display clear"); restoreSettings(); n = nResults; xloc = newArray(n); yloc = newArray(n); for (i=0; i0 && distance