#NEWLINE# def getGeneticProfiles( self , study = None , study_name = None ) : #NEWLINE# #INDENT# 'Fetches the valid genetic profiles for a particular study.\n\n        study is the study id.  If both study and study_name are\n        specified, study is used. If neither study nor study name is\n        specified then the default study is used if set, if not a\n        value error is raised.\n        Returns a list of dictionaries\n        ' #NEWLINE# study = self . _getStudyId ( study , study_name ) #NEWLINE# if ( not study ) : #NEWLINE# #INDENT# raise ValueError ( 'A study must be specified if no default is set' ) #NEWLINE# #UNINDENT# genetic_studies = self . _executeQuery ( command = 'getGeneticProfiles' , args = dict ( cancer_study_id = study ) ) #NEWLINE# return genetic_studies