import seaborn as sns import pandas as pd import os except ImportError: raise ImportError("Please verify the module is in the working directory.") #def ogre_show(axrow, x, y, z): # axrow[0].imshow(x, cmap=plt.cm.gray) # axrow[1].imshow(y, cmap=plt.cm.gray) # axrow[2].imshow(z, cmap=plt.cm.gray) # - MAIN - # platepath = 'B:\\Projects\\Research\\2015-05-11 AlyssaScreen1' output_filename = '2015-05-11 AlyssaScreen1.csv' output_filepath = os.path.join(platepath, output_filename) w1_files = ogre.iter_plate(platepath) w1_files_length = len(w1_files) columns = [ "path", "file", "raw_dapi", "raw_fitc", "raw_texas", "live", "dead", "all" ] df = pd.DataFrame(index=range(0, w1_files_length), columns=columns) for f in w1_files: row = w1_files.index(f) path, name = os.path.split(f) print "Status Update:" print "File: {0}".format(f) print "Item: {0}/{1}".format(row, w1_files_length)
import seaborn as sns import pandas as pd import os except ImportError: raise ImportError("Please verify the module is in the working directory.") # def ogre_show(axrow, x, y, z): # axrow[0].imshow(x, cmap=plt.cm.gray) # axrow[1].imshow(y, cmap=plt.cm.gray) # axrow[2].imshow(z, cmap=plt.cm.gray) # - MAIN - # platepath = "B:\\Projects\\Research\\2015-05-11 AlyssaScreen1" output_filename = "2015-05-11 AlyssaScreen1.csv" output_filepath = os.path.join(platepath, output_filename) w1_files = ogre.iter_plate(platepath) w1_files_length = len(w1_files) columns = ["path", "file", "raw_dapi", "raw_fitc", "raw_texas", "live", "dead", "all"] df = pd.DataFrame(index=range(0, w1_files_length), columns=columns) for f in w1_files: row = w1_files.index(f) path, name = os.path.split(f) print "Status Update:" print "File: {0}".format(f) print "Item: {0}/{1}".format(row, w1_files_length) img = ogre.site_to_array(f)