Mercurial > repos > bimib > cobraxy
comparison COBRAxy/ras_to_bounds.py @ 109:ba10ad78fc5f draft
Uploaded
author | luca_milaz |
---|---|
date | Sun, 13 Oct 2024 15:37:33 +0000 |
parents | 22cebbdb4b6d |
children | 76e87d3b9e0e |
comparison
equal
deleted
inserted
replaced
108:22cebbdb4b6d | 109:ba10ad78fc5f |
---|---|
264 df_mediums = pd.read_csv(ARGS.tool_dir + "/local/medium/medium.csv", index_col = 0) | 264 df_mediums = pd.read_csv(ARGS.tool_dir + "/local/medium/medium.csv", index_col = 0) |
265 ARGS.medium_selector = ARGS.medium_selector.replace("_", " ") | 265 ARGS.medium_selector = ARGS.medium_selector.replace("_", " ") |
266 medium = df_mediums[[ARGS.medium_selector]] | 266 medium = df_mediums[[ARGS.medium_selector]] |
267 medium = medium[ARGS.medium_selector].to_dict() | 267 medium = medium[ARGS.medium_selector].to_dict() |
268 | 268 |
269 warning(str(medium)) | |
270 | |
269 if(ARGS.ras_selector == True): | 271 if(ARGS.ras_selector == True): |
270 generate_bounds(model, medium, ras = ras_combined, output_folder=ARGS.output_folder) | 272 generate_bounds(model, medium, ras = ras_combined, output_folder=ARGS.output_folder) |
271 class_assignments.to_csv(ARGS.cell_class, sep = '\t', index = False) | 273 class_assignments.to_csv(ARGS.cell_class, sep = '\t', index = False) |
272 else: | 274 else: |
273 generate_bounds(model, medium, output_folder=ARGS.output_folder) | 275 generate_bounds(model, medium, output_folder=ARGS.output_folder) |