#NEWLINE# def getProfileData( self , gene_list , case_set_id = None , genetic_profile_id = None , study = None , study_name = None ) : #NEWLINE# #INDENT# 'Retrieves genomic profile data for one or more genes.\n\n        You can specify one gene and many profiles or one profile and\n        many genes.  If you specify no genetic profiles then all\n        genetic profiles for the specified or default study are used\n        if the case_set_id is from that study otherwise a ValueError\n        is raised.\n\n        Return value depends on the parameters. If you specify a\n        single genetic profile and multiple genes a list of ordered\n        dictionaries with the following entries::\n\n            gene_id: Entrez Gene ID\n            common: HUGO Gene Symbol\n            entries 3 - N: Data for each case\n\n        If you specify multi genetic profiles and a single gene, a\n        list of ordered dictoraries with the following entries is\n        returned::\n\n            genetic_profile_id: The Genetic Profile ID.\n            alteration_type: The Genetic Alteration Type, e.g. MUTATION, MUTATION_EXTENDED, COPY_NUMBER_ALTERATION, or MRNA_EXPRESSION.\n            gene_id: Entrez Gene ID.\n            common: HUGO Gene Symbol.\n            Columns 5 - N: Data for each case.\n\n        ' #NEWLINE# if ( ( len ( gene_list ) > 1 ) and ( len ( genetic_profile_id ) > 1 ) ) : #NEWLINE# #INDENT# raise ValueError ( ( '%i genes and %i profiles specified\n.Please specify either one gene many profiles or one profile many genes' % ( len ( gene_list ) , len ( genetic_profile_id ) ) ) ) #NEWLINE# #UNINDENT# study_id = self . _getStudyId ( genetic_profile_id , study_name ) #NEWLINE# case_set_id = self . _getCaseListId ( case_set_id , study_id ) #NEWLINE# genetic_profile_id = self . _getAndCheckGeneticProfiles ( genetic_profile_id = genetic_profile_id , study = study ) #NEWLINE# gene_list = ',' . join ( gene_list ) #NEWLINE# genetic_profile_id = ',' . join ( genetic_profile_id ) #NEWLINE# profile_data = self . _executeQuery ( command = 'getProfileData' , args = { #NEWLINE# #INDENT# 'case_set_id' : case_set_id , #NEWLINE# 'genetic_profile_id' : genetic_profile_id , #NEWLINE# 'gene_list' : gene_list , #NEWLINE# #UNINDENT# } ) #NEWLINE# return profile_data