//choose a macro mode and a directory #@ String (label=" ", value="Filename Transformation
IN Cell Analyzer
", visibility=MESSAGE, persist=false) heading #@ String(label="Select data input:", choices={"Operetta", "NIS Elements"}, style="radioButtonVertical") input #@ File(label="Select a directory:", style="directory") dir #@ String (label=" ", value="", visibility=MESSAGE, persist=false) logo #@ String (label=" ", value="Neuromolecular Biology Lab
ERI BIOTECMED - Universitat de València (Spain)
", visibility=MESSAGE, persist=false) message //Operetta if(input=="Operetta") { print("Initializing Filename Transformation"); //create an array containing the names of the files in the directory path list = getFileList(dir); Array.sort(list); tiffFiles=0; //count the number of TIF files for (i=0; i