Mercurial > repos > bimib > cobraxy
comparison COBRAxy/metabolicModel2Tabular.py @ 538:fd53d42348bd draft
Uploaded
| author | francesco_lapi |
|---|---|
| date | Sat, 25 Oct 2025 11:39:03 +0000 |
| parents | 698802db290d |
| children |
comparison
equal
deleted
inserted
replaced
| 537:f79250e824b5 | 538:fd53d42348bd |
|---|---|
| 20 | 20 |
| 21 | 21 |
| 22 ARGS : argparse.Namespace | 22 ARGS : argparse.Namespace |
| 23 def process_args(args: List[str] = None) -> argparse.Namespace: | 23 def process_args(args: List[str] = None) -> argparse.Namespace: |
| 24 """ | 24 """ |
| 25 Parse command-line arguments for metabolic_model_setting. | 25 Parse command-line arguments. |
| 26 """ | 26 """ |
| 27 | 27 |
| 28 parser = argparse.ArgumentParser( | 28 parser = argparse.ArgumentParser( |
| 29 usage="%(prog)s [options]", | 29 usage="%(prog)s [options]", |
| 30 description="Generate custom data from a given model" | 30 description="Generate custom data from a given model" |
| 340 | 340 |
| 341 # verify output exists and non-empty | 341 # verify output exists and non-empty |
| 342 if not expected or not os.path.exists(expected) or os.path.getsize(expected) == 0: | 342 if not expected or not os.path.exists(expected) or os.path.getsize(expected) == 0: |
| 343 raise utils.DataErr(expected, "Output not created or empty") | 343 raise utils.DataErr(expected, "Output not created or empty") |
| 344 | 344 |
| 345 print("Metabolic_model_setting: completed successfully") | 345 print("Completed successfully") |
| 346 | 346 |
| 347 if __name__ == '__main__': | 347 if __name__ == '__main__': |
| 348 | 348 |
| 349 main() | 349 main() |
