# HG changeset patch # User francesco_lapi # Date 1761507485 0 # Node ID 5d5583dc6082ad8664d1e1a5605152169c9746d2 # Parent fcdbc81feb4595bcbc8b9f8c26354a40a9705b93 Uploaded diff -r fcdbc81feb45 -r 5d5583dc6082 COBRAxy/src/flux_to_map.py --- a/COBRAxy/src/flux_to_map.py Sun Oct 26 19:27:41 2025 +0000 +++ b/COBRAxy/src/flux_to_map.py Sun Oct 26 19:38:05 2025 +0000 @@ -21,6 +21,7 @@ from PIL import Image from typing import Tuple, Union, Optional, List, Dict import matplotlib.pyplot as plt +import os ERRORS = [] ########################## argparse ########################################## diff -r fcdbc81feb45 -r 5d5583dc6082 COBRAxy/src/marea_cluster.py --- a/COBRAxy/src/marea_cluster.py Sun Oct 26 19:27:41 2025 +0000 +++ b/COBRAxy/src/marea_cluster.py Sun Oct 26 19:38:05 2025 +0000 @@ -18,6 +18,7 @@ import scipy.cluster.hierarchy as shc import matplotlib.cm as cm from typing import Optional, Dict, List +import os ################################# process args ############################### def process_args(args_in :List[str] = None) -> argparse.Namespace: diff -r fcdbc81feb45 -r 5d5583dc6082 COBRAxy/src/ras_generator.py --- a/COBRAxy/src/ras_generator.py Sun Oct 26 19:27:41 2025 +0000 +++ b/COBRAxy/src/ras_generator.py Sun Oct 26 19:38:05 2025 +0000 @@ -4,6 +4,7 @@ The script reads a tabular dataset (genes x samples) and a rules file (GPRs), computes RAS per reaction for each sample/cell line, and writes a tabular output. """ +import os from __future__ import division import sys import argparse diff -r fcdbc81feb45 -r 5d5583dc6082 COBRAxy/src/rps_generator.py --- a/COBRAxy/src/rps_generator.py Sun Oct 26 19:27:41 2025 +0000 +++ b/COBRAxy/src/rps_generator.py Sun Oct 26 19:38:05 2025 +0000 @@ -7,7 +7,7 @@ """ import math import argparse - +import os import numpy as np import pickle as pk import pandas as pd