Mercurial > repos > bimib > cobraxy
comparison COBRAxy/flux_simulation.py @ 160:e1b0ddc770a9 draft
Uploaded
author | francesco_lapi |
---|---|
date | Tue, 12 Nov 2024 17:05:33 +0000 |
parents | 898f2641d3f7 |
children | 9159e12b03fa |
comparison
equal
deleted
inserted
replaced
159:898f2641d3f7 | 160:e1b0ddc770a9 |
---|---|
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") | |
117 dataset.to_csv(ARGS.output_path + name + ".csv", sep = '\t', index = keep_index) | 118 dataset.to_csv(ARGS.output_path + name + ".csv", sep = '\t', index = keep_index) |
118 | 119 |
119 ############################ dataset input #################################### | 120 ############################ dataset input #################################### |
120 def read_dataset(data :str, name :str) -> pd.DataFrame: | 121 def read_dataset(data :str, name :str) -> pd.DataFrame: |
121 """ | 122 """ |