changeset 543:5d5583dc6082 draft

Uploaded
author francesco_lapi
date Sun, 26 Oct 2025 19:38:05 +0000
parents fcdbc81feb45
children 540ab7dd1322
files COBRAxy/src/flux_to_map.py COBRAxy/src/marea_cluster.py COBRAxy/src/ras_generator.py COBRAxy/src/rps_generator.py
diffstat 4 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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 ##########################################
--- 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:
--- 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
--- 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