|
492
|
1 # Troubleshooting
|
|
|
2
|
|
|
3 Common issues and solutions when using COBRAxy.
|
|
|
4
|
|
|
5 ## Installation Issues
|
|
|
6
|
|
542
|
7 ### Missing Build Tools
|
|
|
8
|
|
|
9 **Problem**: `gcc: command not found` or compilation errors (Linux/macOS)
|
|
|
10 ```bash
|
|
|
11 # Ubuntu/Debian
|
|
|
12 sudo apt-get install build-essential cmake pkg-config
|
|
|
13
|
|
|
14 # macOS
|
|
|
15 xcode-select --install
|
|
|
16 brew install cmake pkg-config
|
|
|
17 ```
|
|
|
18
|
|
|
19 **Problem**: `CMake not found`
|
|
|
20 ```bash
|
|
|
21 # Ubuntu/Debian
|
|
|
22 sudo apt-get install cmake
|
|
|
23
|
|
|
24 # macOS
|
|
|
25 brew install cmake
|
|
|
26
|
|
|
27 # Or via conda
|
|
|
28 conda install -c conda-forge cmake
|
|
|
29 ```
|
|
|
30
|
|
492
|
31 ### Python Import Errors
|
|
|
32
|
|
|
33 **Problem**: `ModuleNotFoundError: No module named 'cobra'`
|
|
|
34 ```bash
|
|
542
|
35 # Solution: Reinstall COBRAxy with dependencies
|
|
|
36 cd COBRAxy/src
|
|
|
37 pip install .
|
|
492
|
38
|
|
542
|
39 # Or install missing dependency directly
|
|
|
40 pip install cobra
|
|
492
|
41 ```
|
|
|
42
|
|
|
43 **Problem**: `ImportError: No module named 'cobraxy'`
|
|
|
44 ```python
|
|
542
|
45 # Solution: Ensure COBRAxy is installed
|
|
|
46 pip install /path/to/COBRAxy/src/
|
|
|
47
|
|
|
48 # Or add to Python path temporarily
|
|
492
|
49 import sys
|
|
542
|
50 sys.path.insert(0, '/path/to/COBRAxy/src')
|
|
492
|
51 ```
|
|
|
52
|
|
|
53 ### System Dependencies
|
|
|
54
|
|
|
55 **Problem**: GLPK solver not found
|
|
|
56 ```bash
|
|
|
57 # Ubuntu/Debian
|
|
|
58 sudo apt-get install libglpk40 glpk-utils
|
|
|
59 pip install swiglpk
|
|
|
60
|
|
|
61 # macOS
|
|
|
62 brew install glpk
|
|
|
63 pip install swiglpk
|
|
|
64
|
|
|
65 # Windows (using conda)
|
|
|
66 conda install -c conda-forge glpk swiglpk
|
|
|
67 ```
|
|
|
68
|
|
|
69
|
|
550
|
70 ## Galaxy Tool Issues
|
|
492
|
71
|
|
550
|
72 ### Import Metabolic Model
|
|
492
|
73
|
|
550
|
74 **Error message**:
|
|
492
|
75 ```bash
|
|
550
|
76 Traceback (most recent call last):
|
|
|
77 File "/export/tool_deps/_conda/envs/mulled-v1-d3fef6bda7daedb89425f527672b54ab0a4be6cfe3c8725b7f8c0948e0c80773/lib/python3.11/site-packages/cobra/io/sbml.py", line 458, in read_sbml_model
|
|
|
78 return _sbml_to_model(doc, number=number, f_replace=f_replace, **kwargs)
|
|
|
79 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
80 File "/export/tool_deps/_conda/envs/mulled-v1-d3fef6bda7daedb89425f527672b54ab0a4be6cfe3c8725b7f8c0948e0c80773/lib/python3.11/site-packages/cobra/io/sbml.py", line 563, in _sbml_to_model
|
|
|
81 raise CobraSBMLError("No SBML model detected in file.")
|
|
|
82 cobra.io.sbml.CobraSBMLError: No SBML model detected in file.
|
|
492
|
83 ```
|
|
|
84
|
|
550
|
85 **Meaning:**
|
|
|
86 The Import Metabolic Model tool cannot read the input file as a valid SBML model with FBC annotations.
|
|
492
|
87
|
|
550
|
88 **Suggested Action:**
|
|
|
89 Verify that the input XML file is in proper SBML format and includes all necessary FBC annotations.
|
|
492
|
90
|
|
|
91
|
|
550
|
92 ### Flux simulation
|
|
492
|
93
|
|
550
|
94 **Error message**:
|
|
|
95 ```bash
|
|
|
96 Execution aborted: wrong format of bounds dataset
|
|
492
|
97 ```
|
|
|
98
|
|
550
|
99 **Meaning:**
|
|
|
100 Flux simulation cannot read the bounds of the metabolic model for the constrained simulation problem (optimization or sampling).
|
|
|
101 This usually happens if the input “Bound file(s): *” is incorrect. For example, it occurs when the **RasToBounds - Cell Class** file is passed instead of the collection of bound files named **"RAS to bounds"**.
|
|
492
|
102
|
|
550
|
103 **Suggested Action:**
|
|
|
104 Check the input files and ensure the correct bounds collection is used.
|
|
492
|
105
|
|
|
106 ## Getting Help
|
|
|
107
|
|
|
108 ### Information to Include in Bug Reports
|
|
|
109
|
|
|
110 When reporting issues, include:
|
|
|
111
|
|
|
112 1. **System information**:
|
|
|
113 ```bash
|
|
|
114 python --version
|
|
|
115 pip list | grep cobra
|
|
|
116 uname -a # Linux/macOS
|
|
|
117 ```
|
|
|
118
|
|
|
119 2. **Complete error messages**: Copy full traceback
|
|
|
120 3. **Input file format**: First few lines of input data
|
|
|
121 4. **Command/parameters used**: Exact command or Python code
|
|
|
122 5. **Expected vs actual behavior**: What should happen vs what happens
|
|
|
123
|
|
|
124 ### Community Resources
|
|
|
125
|
|
542
|
126 - **GitHub Issues**: [Report bugs and ask questions](https://github.com/CompBtBs/COBRAxy/issues)
|
|
492
|
127 - **COBRApy Community**: [General metabolic modeling help](https://github.com/opencobra/cobrapy)
|
|
|
128
|
|
|
129 ### Self-Help Checklist
|
|
|
130
|
|
|
131 Before reporting issues:
|
|
|
132
|
|
547
|
133 - Checked this troubleshooting guide
|
|
|
134 - Verified installation completeness
|
|
|
135 - Tested with built-in example data
|
|
|
136 - Searched existing GitHub issues
|
|
|
137 - Tried alternative models/parameters
|
|
|
138 - Checked file formats and permissions
|
|
492
|
139
|
|
|
140
|
|
550
|
141 This troubleshooting guide covers the most common issues. For tool-specific problems, check the individual tool documentation pages.
|