I have a each slice of the Z-stack as a separate .tif file for 4 different channels. I wanted to convert each channel as .tif by combining all the slices. I have written a small macro, here it is. But not working. I don’t know where I am going wrong.
Any help would be greatful.
“C01” is my channel number. My “path” looks correct
input = getDirectory("Choose input directory"); list = getFileList(input); path = input + list; print (path); run("Bio-Formats Macro Extensions"); //Ext.setId(path); run("Bio-Formats Importer", "open=path color_mode=Default group_files open_all_series specify_range view=Hyperstack stack_order=XYCZT axis_1_number_of_images= axis_1_axis_first_image= axis_1_axis_increment= file=C01 pattern= t_begin=1 t_end=234 t_step=1"); saveAs("Tiff", input+"F001_DAPI_C01.tif");