comparison COBRAxy/flux_simulation.py @ 162:b5a26d1c4fdc draft

Uploaded
author francesco_lapi
date Tue, 12 Nov 2024 17:14:08 +0000
parents 9159e12b03fa
children 79d6d5ca91fd
comparison
equal deleted inserted replaced
161:9159e12b03fa 162:b5a26d1c4fdc
112 print(s) 112 print(s)
113 113
114 114
115 def write_to_file(dataset: pd.DataFrame, name: str, keep_index:bool=False)->None: 115 def write_to_file(dataset: pd.DataFrame, name: str, keep_index:bool=False)->None:
116 dataset.index.name = 'Reactions' 116 dataset.index.name = 'Reactions'
117 print(ARGS.output_path + "/" + name + ".csv")
118 dataset.to_csv(ARGS.output_path + "/" + name + ".csv", sep = '\t', index = keep_index) 117 dataset.to_csv(ARGS.output_path + "/" + name + ".csv", sep = '\t', index = keep_index)
119 118
120 ############################ dataset input #################################### 119 ############################ dataset input ####################################
121 def read_dataset(data :str, name :str) -> pd.DataFrame: 120 def read_dataset(data :str, name :str) -> pd.DataFrame:
122 """ 121 """