# HG changeset patch # User luca_milaz # Date 1728810066 0 # Node ID 1f928ad6a87e9f0b25d459dd47111da148790d3e # Parent c46df775b9fad1b897f23f29aebc90e59c761915 Uploaded diff -r c46df775b9fa -r 1f928ad6a87e COBRAxy/ras_to_bounds.py --- a/COBRAxy/ras_to_bounds.py Sun Oct 13 08:36:26 2024 +0000 +++ b/COBRAxy/ras_to_bounds.py Sun Oct 13 09:01:06 2024 +0000 @@ -63,6 +63,11 @@ type = str, help = 'output of cell class') + parser.add_argument('-rn', '--names', + required = True, + type=str, + help = 'ras class names') + ARGS = parser.parse_args() return ARGS @@ -216,8 +221,9 @@ if(ARGS.ras_selector == True): ras_file_list = ARGS.input_ras.split(",") + ras_file_names = ARGS.names.split(",") ras_class_names = [] - for file in ras_file_list: + for file in ras_file_names: ras_class_names.append(file.split(".")[0]) ras_list = [] class_assignments = pd.DataFrame(columns=["Patient_ID", "Class"])