|
492
|
1 # Installation
|
|
|
2
|
|
|
3 This guide walks you through installing COBRAxy on your system.
|
|
|
4
|
|
|
5 ## System Requirements
|
|
|
6
|
|
542
|
7 - **Python**: 3.8-3.13
|
|
492
|
8 - **Operating System**: Linux (recommended), macOS, Windows
|
|
542
|
9 - **Build tools**: C/C++ compiler (gcc, clang, or MSVC), CMake, pkg-config
|
|
|
10
|
|
|
11 ## Installation Methods
|
|
492
|
12
|
|
542
|
13 ### Recommended: Using Conda
|
|
|
14
|
|
|
15 Create an isolated environment with all dependencies:
|
|
|
16
|
|
|
17 ```bash
|
|
|
18 # Create a new conda environment
|
|
|
19 conda create -n cobraxy python=3.13 -y
|
|
|
20 conda activate cobraxy
|
|
492
|
21
|
|
542
|
22 # Install build tools via conda
|
|
|
23 conda install -c conda-forge cmake pkg-config swiglpk -y
|
|
|
24
|
|
|
25 # Clone and install COBRAxy
|
|
|
26 git clone https://github.com/CompBtBs/COBRAxy.git
|
|
|
27 cd COBRAxy/src
|
|
|
28 pip install .
|
|
|
29 ```
|
|
|
30
|
|
492
|
31
|
|
|
32 ## Verify Installation
|
|
|
33
|
|
|
34 Test your installation:
|
|
|
35
|
|
|
36 ```bash
|
|
|
37 # Check if COBRAxy tools are available
|
|
|
38 ras_generator --help
|
|
|
39 flux_simulation --help
|
|
542
|
40 marea --help
|
|
|
41
|
|
|
42 # Check Python can import COBRAxy modules
|
|
|
43 python -c "import ras_generator; print('COBRAxy installed successfully!')"
|
|
|
44 ```
|
|
|
45
|
|
|
46 ## Troubleshooting Installation
|
|
|
47
|
|
|
48 ### Missing Compiler Errors
|
|
|
49
|
|
|
50 If you see errors about missing compilers during installation:
|
|
|
51
|
|
|
52 ```bash
|
|
|
53 # Ubuntu/Debian
|
|
|
54 sudo apt-get install build-essential
|
|
|
55
|
|
|
56 # macOS
|
|
|
57 xcode-select --install
|
|
492
|
58 ```
|
|
|
59
|
|
542
|
60 ### CMake Not Found
|
|
|
61
|
|
|
62 ```bash
|
|
|
63 # Ubuntu/Debian
|
|
|
64 sudo apt-get install cmake
|
|
|
65
|
|
|
66 # macOS
|
|
|
67 brew install cmake
|
|
|
68
|
|
|
69 # Or via conda
|
|
|
70 conda install -c conda-forge cmake
|
|
|
71 ```
|
|
|
72
|
|
|
73 ### pkg-config Issues
|
|
|
74
|
|
|
75 ```bash
|
|
|
76 # Ubuntu/Debian
|
|
|
77 sudo apt-get install pkg-config
|
|
|
78
|
|
|
79 # macOS
|
|
|
80 brew install pkg-config
|
|
|
81
|
|
|
82 # Or via conda
|
|
|
83 conda install -c conda-forge pkg-config
|
|
|
84 ```
|
|
|
85
|
|
|
86 ## Alternative: Virtual Environment (without Conda)
|
|
492
|
87
|
|
|
88 Using a virtual environment prevents conflicts with other Python packages:
|
|
|
89
|
|
|
90 ```bash
|
|
|
91 # Create virtual environment
|
|
|
92 python -m venv cobraxy-env
|
|
|
93
|
|
|
94 # Activate environment
|
|
|
95 source cobraxy-env/bin/activate # Linux/macOS
|
|
|
96 # cobraxy-env\Scripts\activate # Windows
|
|
|
97
|
|
|
98 # Install COBRAxy
|
|
542
|
99 cd COBRAxy/src
|
|
492
|
100 pip install .
|
|
|
101
|
|
|
102 # When done, deactivate
|
|
|
103 deactivate
|
|
|
104 ```
|
|
|
105
|
|
|
106 ## Next Steps
|
|
|
107
|
|
|
108 After successful installation:
|
|
|
109
|
|
547
|
110 1. **[Quick Start Guide](quickstart)** - Run your first analysis
|
|
|
111 2. **[Tutorial: Galaxy Setup](tutorials/galaxy-setup)** - Set up web interface
|
|
492
|
112
|
|
|
113 ## Getting Help
|
|
|
114
|
|
|
115 If you encounter issues:
|
|
|
116
|
|
547
|
117 1. Check the [Troubleshooting Guide](troubleshooting)
|
|
492
|
118 2. Search [existing issues](https://github.com/CompBtBs/COBRAxy/issues)
|
|
|
119 3. Create a [new issue](https://github.com/CompBtBs/COBRAxy/issues/new) with:
|
|
|
120 - Your operating system
|
|
|
121 - Python version (`python --version`)
|
|
|
122 - Complete error message
|
|
547
|
123 - Installation method used
|