#NEWLINE# def getLink( self , gene_list , study = None , study_name = None , report = 'full' ) : #NEWLINE# #INDENT# 'return a perminant link to the cBioPortal report for the gene_list\n            cancer_study_id=[cancer study ID] gene_list=[a comma\n            separated list of HUGO gene symbols] (required)\n            report=[report to display; can be one of: full (default),\n            oncoprint_html]\n        ' #NEWLINE# study = self . _getStudyId ( study_name , study_name ) #NEWLINE# if ( not study ) : #NEWLINE# #INDENT# raise ValueError ( 'Study must be specified' ) #NEWLINE# #UNINDENT# if ( report not in [ 'full' , 'oncoprint_html' ] ) : #NEWLINE# #INDENT# raise ValueError ( ( '%s is not a valid report' % report ) ) #NEWLINE# #UNINDENT# url = '/' . join ( self . url . split ( '/' ) [ : ( - 1 ) ] ) #NEWLINE# gene_list = ',' . join ( gene_list ) #NEWLINE# return ( '%s/link.do?cancer_study_id=%s&gene_list=%s&report=%s' % ( url , study , gene_list , report ) )