Snippets

Dave Mason PostAcquisition: Create data for blog post about pivot tables

Created by Dave Mason
//-- Uses the Broad BioImage Benchmark collection #8
//-- Download from: https://data.broadinstitute.org/bbbc/BBBC008/
//-- unzip and point the script to one of the files

saveSettings();
run("Set Measurements...", "shape feret's stack display redirect=None decimal=2");
inPath="c:\\path\\to\\BBBC008_v1_images/human_ht29_colon_cancer_2_images/AS_09125_050116000001_A24f00d0_slice1_channel1.tif"

run("Image Sequence...", "open=["+inPath+"] file=channel1 sort");
setAutoThreshold("Default dark");
run("Convert to Mask", "method=Yen background=Dark calculate black");
run("Watershed", "stack");
run("Analyze Particles...", "size=10-Infinity show=Masks display exclude clear in_situ stack");
restoreSettings();

//-- Save out the results table as a CSV

Comments (0)

HTTPS SSH

You can clone a snippet to your computer for local editing. Learn more.