/* * Macro to merge results files. * Bram van den Broek, Netherlands Cancer Institute, 2013-2021 * */ #@ String(label = "String that ends the filenames, including '.' (will be cut off in the resulting name)", value="_ch1.tsv") fileString #@ File (label = "Results folder", style = "directory") dir dir = dir+File.separator; print("\\Clear"); run("Clear Results"); run("Input/Output...", "save_column"); //Find all result files in directory //dir = getDirectory("Choose a directory containing the experiment."); showStatus("reading directory"); file_list = getFileList(dir); //get filenames of directory showStatus(""); //make a list of tables (files that end on 'string'. j=0; table_list=newArray(file_list.length); for(i=0; i