@@ -282,7 +282,7 @@ def map_proteomics(proteomics_data, improve_id_data, entrez_data):
282282 parser .add_argument ('-T' , '--transcriptomics' , action = 'store_true' , default = False , help = 'Generate transcriptomics data' )
283283 parser .add_argument ('-M' , '--mutations' , action = 'store_true' , default = False , help = 'Generate mutations data' )
284284 parser .add_argument ('-C' , '--copy_number' , action = 'store_true' , default = False , help = 'Generate copy number data' )
285-
285+ parser . add_argument ( '-R' , '--proteomics' , action = 'store_true' , default = False , help = 'Generate proteomics data' )
286286
287287 args = parser .parse_args ()
288288
@@ -338,4 +338,16 @@ def map_proteomics(proteomics_data, improve_id_data, entrez_data):
338338 print ("Starting copy number data." )
339339 mutation_df = map_copy_number (copy_number_data = "/tmp/raw_copynum_data.csv" , improve_id_data = "/tmp/liver_samples.csv" , entrez_data = "/tmp/genes.csv" )
340340 mutation_df .to_csv ("/tmp/liver_copy_number.csv" , index = False )
341+
342+ if args .proteomics :
343+ if args .genes is None or args .genes == '' :
344+ print ("No genes data provided. Exiting script." )
345+ exit ()
346+ if args .ids is None or args .ids == '' :
347+ print ("No samples data provided. Exiting script." )
348+ exit ()
349+ else :
350+ print ("Starting proteomics data." )
351+ proteomics_df = map_proteomics (proteomics_data = "/tmp/raw_proteomics_data.csv" , improve_id_data = "/tmp/liver_samples.csv" , entrez_data = "/tmp/genes.csv" )
352+ proteomics_df .to_csv ("/tmp/liver_proteomics.csv" , index = False )
341353
0 commit comments