def fruitfly_tomancak(data_set='<STR_LIT>', gene_number=None):
if not data_available(data_set):<EOL><INDENT>download_data(data_set)<EOL><DEDENT>from pandas import read_csv<EOL>dir_path = os.path.join(data_path, data_set)<EOL>filename = os.path.join(dir_path, '<STR_LIT>')<EOL>Y = read_csv(filename, header=<NUM_LIT:0>, index_col=<NUM_LIT:0>).T<EOL>num_repeats = <NUM_LIT:3><EOL>num_time = <NUM_LIT:12><EOL>xt = np.linspace(<NUM_LIT:0>, num_time-<NUM_LIT:1>, num_time)<EOL>xr = np.linspace(<NUM_LIT:0>, num_repeats-<NUM_LIT:1>, num_repeats)<EOL>xtime, xrepeat = np.meshgrid(xt, xr)<EOL>X = np.vstack((xtime.flatten(), xrepeat.flatten())).T<EOL>return data_details_return({'<STR_LIT:X>': X, '<STR_LIT:Y>': Y, '<STR_LIT>' : gene_number}, data_set)<EOL>
Fruitfly gene expression data from Tomancak et al.