|
542
|
1 # Import Metabolic Model
|
|
|
2
|
|
547
|
3 Import and extract metabolic model components into tabular format.
|
|
542
|
4
|
|
|
5 ## Overview
|
|
|
6
|
|
547
|
7 Import Metabolic Model extracts metabolic models from SBML/JSON/MAT/YAML formats into tabular summary for analysis.
|
|
|
8
|
|
|
9 **Input**: Model file or built-in models
|
|
|
10 **Output**: Tabular data (CSV/TSV)
|
|
|
11
|
|
|
12 ## Galaxy Interface
|
|
542
|
13
|
|
547
|
14 In Galaxy: **COBRAxy → Import Metabolic Model**
|
|
542
|
15
|
|
547
|
16 1. Select built-in model or upload custom file
|
|
|
17 2. Set model name and medium configuration
|
|
|
18 3. Click **Run tool**
|
|
|
19
|
|
|
20 ## Command-line console
|
|
542
|
21
|
|
|
22 ```bash
|
|
547
|
23 # Import built-in model
|
|
|
24 importMetabolicModel \
|
|
|
25 --model ENGRO2 \
|
|
|
26 --name ENGRO2 \
|
|
|
27 --medium_selector allOpen \
|
|
|
28 --out_tabular model_data.csv \
|
|
|
29 --out_log extraction.log
|
|
542
|
30 ```
|
|
|
31
|
|
|
32 ## Parameters
|
|
|
33
|
|
547
|
34 ### Model Selection
|
|
542
|
35
|
|
|
36 | Parameter | Flag | Description |
|
|
|
37 |-----------|------|-------------|
|
|
547
|
38 | Built-in Model | `--model` | ENGRO2 or Recon |
|
|
|
39 | Custom Model | `--input` | Path to SBML/JSON/MAT/YAML file |
|
|
542
|
40
|
|
547
|
41 **Note**: Use either `--model` OR `--input`.
|
|
|
42
|
|
|
43
|
|
|
44 ### Required
|
|
542
|
45
|
|
547
|
46 | Parameter | Flag | Description |
|
|
|
47 |-----------|------|-------------|
|
|
|
48 | Model Name | `--name` | Model identifier |
|
|
|
49 | Medium Selector | `--medium_selector` | Medium configuration (use `allOpen`) |
|
|
|
50 | Output Tabular | `--out_tabular` | Output file (CSV/XLSX) |
|
|
|
51 | Output Log | `--out_log` | Log file |
|
|
542
|
52
|
|
547
|
53 ### Optional
|
|
542
|
54
|
|
|
55 | Parameter | Flag | Description | Default |
|
|
|
56 |-----------|------|-------------|---------|
|
|
|
57 | Custom Medium | `--custom_medium` | CSV file with medium constraints | - |
|
|
547
|
58 | Gene Format | `--gene_format` | Gene ID conversion: Default, ENSG, HGNC_ID, entrez_id | Default |
|
|
542
|
59
|
|
547
|
60 ## Built-in Models
|
|
542
|
61
|
|
547
|
62 - **ENGRO2**: ~500 reactions (recommended)
|
|
|
63 - **Recon**: ~10,000 reactions (genome-wide)
|
|
542
|
64
|
|
547
|
65 See [Built-in Models](reference/built-in-models) for details.
|
|
542
|
66
|
|
547
|
67 ## Supported Formats
|
|
542
|
68
|
|
547
|
69 - **Model formats**: SBML (.xml), JSON (.json), MAT (.mat), YAML (.yml)
|
|
|
70 - **Compression**: .zip, .gz, .bz2 (e.g., `model.xml.gz`)
|
|
542
|
71
|
|
547
|
72 Compressed files are automatically detected and extracted.
|
|
542
|
73
|
|
|
74 ## Output Format
|
|
|
75
|
|
547
|
76 **ENGRO2 model:**
|
|
|
77 ```
|
|
|
78 ReactionID Formula GPR lower_bound upper_bound ObjectiveCoefficient Pathway_1 Pathway_2 InMedium TranslationIssues
|
|
|
79 R00001 A + B -> C + D GENE1 or GENE2 -1000.0 1000.0 0.0 Glycolysis Central_Metabolism FALSE
|
|
|
80 EX_glc_e glc_e <-> - -1000.0 1000.0 0.0 Exchange Transport TRUE
|
|
|
81 ```
|
|
542
|
82
|
|
547
|
83 **Other models (Recon):**
|
|
542
|
84 ```
|
|
547
|
85 ReactionID Formula GPR lower_bound upper_bound ObjectiveCoefficient InMedium TranslationIssues
|
|
|
86 R00001 A + B -> C + D GENE1 or GENE2 -1000.0 1000.0 0.0 FALSE
|
|
|
87 EX_glc_e glc_e <-> - -1000.0 1000.0 0.0 TRUE
|
|
542
|
88 ```
|
|
|
89
|
|
547
|
90 **File Format Notes:**
|
|
|
91 - Output can be **tab-separated** (CSV) or Excel (XLSX)
|
|
|
92 - Contains all model information in tabular format
|
|
|
93 - Can be edited and re-imported using Export Metabolic Model
|
|
|
94
|
|
|
95 ## Understanding Medium Composition
|
|
542
|
96
|
|
547
|
97 Exchange reactions with `InMedium = TRUE` represent nutrients in the medium:
|
|
|
98 - **Lower bound**: Uptake rate (negative value, e.g., -10 = uptake 10 mmol/gDW/hr)
|
|
|
99 - **Upper bound**: Secretion rate (positive value)
|
|
|
100
|
|
|
101 Example:
|
|
|
102 ```
|
|
|
103 EX_glc_e glc_e <-> - -10.0 1000.0 0.0 TRUE
|
|
|
104 ```
|
|
|
105 Glucose uptake: 10 mmol/gDW/hr (lower bound = -10)
|
|
|
106
|
|
|
107 More info: [COBRApy Media Documentation](https://cobrapy.readthedocs.io/en/latest/media.html)
|
|
542
|
108
|
|
|
109 ## Examples
|
|
|
110
|
|
547
|
111 ### Extract Built-in Model
|
|
542
|
112
|
|
|
113 ```bash
|
|
|
114 importMetabolicModel --model ENGRO2 \
|
|
|
115 --name ENGRO2_extraction \
|
|
|
116 --medium_selector allOpen \
|
|
|
117 --out_tabular ENGRO2_data.csv \
|
|
547
|
118 --out_log ENGRO2_log.txt
|
|
542
|
119 ```
|
|
|
120
|
|
|
121 ### Process Custom Model
|
|
|
122
|
|
|
123 ```bash
|
|
547
|
124 importMetabolicModel --input custom_model.xml \
|
|
542
|
125 --name CustomModel \
|
|
|
126 --medium_selector allOpen \
|
|
547
|
127 --out_tabular custom_data.csv \
|
|
|
128 --out_log custom_log.txt
|
|
542
|
129 ```
|
|
|
130
|
|
|
131 ## Troubleshooting
|
|
|
132
|
|
547
|
133 | Error | Solution |
|
|
|
134 |-------|----------|
|
|
|
135 | "Model file not found" | Check file path |
|
|
|
136 | "Unsupported format" | Use SBML, JSON, MAT, or YAML |
|
|
542
|
137
|
|
|
138 ## See Also
|
|
|
139
|
|
547
|
140 - [Export Metabolic Model](reference/export-metabolic-model)
|
|
|
141 - [RAS Generator](tools/ras-generator)
|
|
|
142 - [RPS Generator](tools/rps-generator)
|