#NEWLINE# def della_gatta_TRP63_gene_expression( data_set = 'della_gatta' , gene_number = None ) : #NEWLINE# #INDENT# if ( not data_available ( gene_number ) ) : #NEWLINE# #INDENT# download_data ( data_set ) #NEWLINE# #UNINDENT# mat_data = scipy . io . loadmat ( os . path . join ( data_path , data_set , 'DellaGattadata.mat' ) ) #NEWLINE# X = np . double ( mat_data [ 'timepoints' ] ) #NEWLINE# if ( gene_number == None ) : #NEWLINE# #INDENT# Y = mat_data [ 'exprs_tp53_RMA' ] #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# Y = mat_data [ 'exprs_tp53_RMA' ] [ : , gene_number ] #NEWLINE# if ( len ( Y . shape ) == 1 ) : #NEWLINE# #INDENT# Y = Y [ : , None ] #NEWLINE# #UNINDENT# #UNINDENT# return data_details_return ( { #NEWLINE# #INDENT# 'X' : X , #NEWLINE# 'Y' : Y , #NEWLINE# 'gene_number' : gene_number , #NEWLINE# #UNINDENT# } , data_set )