changeset 125:edc46e89ae20 draft

Uploaded
author luca_milaz
date Tue, 02 Jul 2024 21:19:26 +0000
parents b99c5230b928
children 829f9349099d
files marea_2_0/flux_sampling.py
diffstat 1 files changed, 15 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/marea_2_0/flux_sampling.py	Tue Jul 02 20:57:49 2024 +0000
+++ b/marea_2_0/flux_sampling.py	Tue Jul 02 21:19:26 2024 +0000
@@ -29,6 +29,11 @@
     parser.add_argument('-ol', '--out_log', 
                         help = "Output log")
     
+    parser.add_argument('-td', '--tool_dir',
+                        type = str,
+                        required = True,
+                        help = 'your tool directory')
+    
     parser.add_argument(
         "-of", "--output_format",
         type = utils.FileFormat.fromExt, default = utils.FileFormat.PICKLE,
@@ -188,7 +193,7 @@
     global ARGS
     ARGS = process_args(sys.argv)
 
-    ARGS.output_folder = 'flux_sampling/'
+    ARGS.output_folder = 'flux_sampling'
 
 
 
@@ -201,9 +206,16 @@
     utils.logWarning(
         "Warning: gene(s) not found in class the expression level for this gene will be considered NaN",
         ARGS.out_log)
+    
 
-    with open("./", 'w') as f:
-                f.write([model1, model2])
+    a = pd.DataFrame(columns=["a"])
+    a.loc[0] = ["sss"]
+    a.to_csv(ARGS.output_folder+"test1.csv")
+
+    a = pd.DataFrame(columns=["a"])
+    a.loc[0] = ["sss"]
+    a.to_csv(ARGS.output_folder+"test2.csv")
+
 
     '''