//Coloc macro close("*"); // close any window // clears the Log window for this round print("\\Clear"); // Clear previous results window run("Clear Results"); //run("Clear Results"); // Determine general analysis parameters Dialog.create("Experimental and Calculation Variables"); Dialog.addChoice("Name of Bait1", newArray("VPS25", "VPS20L", "VPS36A", "CHMP7")); Dialog.addChoice("Bait1 Channel", newArray("C1-", "C2-", "C3-", "C4-")); Dialog.addChoice("Name of Bait2", newArray("Dextran", "PDI2", "IscU", "VPS25", "VPS20L", "VPS36A", "CHMP7")); Dialog.addChoice("Bait2 Channel", newArray("C1-", "C2-", "C3-", "C4-")); Dialog.addFile("WEKA training model for Bait1", "defaultPath"); Dialog.addSlider("Threshold for WEKA segmentation", 0, 1, 0.8); Dialog.addFile("WEKA training model for bait2", "defaultPath"); Dialog.addSlider("Threshold for WEKA segmentation bait 2", 0, 1, 0.8); Dialog.addDirectory ("Select your input folder", "defaultPath"); Dialog.addDirectory ("Select your folder for results", "defaultPath"); Dialog.show(); bait1 = Dialog.getChoice(); channelBait1 = Dialog.getChoice(); bait2 = Dialog.getChoice(); channelBait2 = Dialog.getChoice(); modelBait1 = Dialog.getString(); t1= Dialog.getNumber(); modelBait2 = Dialog.getString(); t2 = Dialog.getNumber(); inputDir = Dialog.getString(); outputDir = Dialog.getString(); print ("Bait1 is ", bait1); print ("Bait2 is ", bait2); print ("Bait1 model is in ", modelBait1); print ("Bait2 model is in ", modelBait2); print ("Threshold of bait 1 is: ", t1); print ("Threshold of bait 2 is: ", t2); print ("Files will be saved in ", outputDir); print ("Look your analysis values"); wait (5000); // give time to review analyses parameters //Measure start time of the entire workflow startTime = getTime(); // Analysis list = getFileList(inputDir); print("-----The input folder contains "+list.length+" files that will be processed.-----"); for (i=0; i