Mercurial > repos > bimib > cobraxy
changeset 67:1f928ad6a87e draft
Uploaded
author | luca_milaz |
---|---|
date | Sun, 13 Oct 2024 09:01:06 +0000 |
parents | c46df775b9fa |
children | d5dd7e863488 |
files | COBRAxy/ras_to_bounds.py |
diffstat | 1 files changed, 7 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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"])