// Processing raw data with image correction images from the microscope for TRUE background-subtracted biological signal. // Followed by mask generation and application to the Signal channel to measure mean of single cells. // This macro was written by Darren Thomson February 2018. Any comments or quereys should be directed to Darrenthomson.research@gmail.com // Instructions: Make folders for GFP and RFP images (copy them into the folder). Also make an 'output' folder to store processed images and results. // Open the 'Dark' and MedianShade' images in FIJI. // run this macro and locate the folders for GFP, RFP and output. // Leave the macro to run, DO NOT OPEN OR SELECT ANYTHING ELSE (IN FIJI) WHILE THE MACRO IS RUNNING // After it has finished, save the final results from all the images as .xls // IMPORTANT. Quality control Look at the output folder and check that the macro has perfomed to a satisfactory level. // Here you can identify big mistakes, relate it to a unique cell # and take them out of the data. //What does the macro do? // Sequentially opens a set of GFP/RFP images // The GFP and RFP images will be background-corrected followed by mask generation in the GFP channel that is then applied to the RFP signal image for measuring. //A results table will appear at the end which is saved containing measurements from each individual object (cell) // Problems to solve: 1) Analyze particles does not segment crossing hyhae and just counts one large item. //Step 1 Image correction for background camera and microscope noise/illumination // The small macro below utilises data with 2 channels, put into different folders. It will find the file in one folder and look for a similar named file, but with the channel descriptor, in another folder. dir1 = getDirectory("Where are the GFP images"); // This is where the Ch1 images are list = getFileList(dir1); // This lists all the files in Ch1 folder dir2 = getDirectory("Where are the RFP images"); // This is where the Ch2 images are SaveDir = getDirectory("Where to save processed images + results"); // This is where results/processed images are stored for (g=0; g