| 492 | 1 Complete reference for all COBRAxy tools with parameters, examples, and usage guidelines. | 
|  | 2 | 
|  | 3 ## Available Tools | 
|  | 4 | 
|  | 5 | Tool | Purpose | Input | Output | | 
|  | 6 |------|---------|--------|--------| | 
|  | 7 | [RAS Generator](ras-generator.md) | Compute reaction activity scores | Gene expression + GPR rules | RAS values | | 
|  | 8 | [RPS Generator](rps-generator.md) | Compute reaction propensity scores | Metabolite abundance | RPS values | | 
|  | 9 | [MAREA](marea.md) | Statistical pathway enrichment | RAS/RPS data | Enriched maps + statistics | | 
|  | 10 | [RAS to Bounds](ras-to-bounds.md) | Apply RAS constraints to model | RAS + SBML model | Constrained bounds | | 
|  | 11 | [Flux Simulation](flux-simulation.md) | Sample metabolic fluxes | Constrained model | Flux distributions | | 
|  | 12 | [Flux to Map](flux-to-map.md) | Visualize flux data on maps | Flux samples + statistical comparison | Color-coded pathway maps | | 
|  | 13 | [Model Setting](metabolic-model-setting.md) | Extract model components | SBML/JSON/MAT/YML model | Tabular model data | | 
|  | 14 | [MAREA Cluster](marea-cluster.md) | Cluster analysis | Expression/RAS/RPS/flux data | Sample clusters + validation plots | | 
|  | 15 | 
|  | 16 ## Common Parameters | 
|  | 17 | 
|  | 18 All tools share these basic parameters: | 
|  | 19 | 
|  | 20 - **`-td, --tool_dir`**: COBRAxy installation directory (required) | 
|  | 21 - **`-in, --input`**: Input dataset file | 
|  | 22 - **`-idop, --output_dir`**: Output directory for results | 
|  | 23 - **`-rs, --rules_selector`**: Built-in model (ENGRO2, Recon, HMRcore) | 
|  | 24 | 
|  | 25 ## Analysis Workflows | 
|  | 26 | 
|  | 27 **Enrichment Analysis**: Gene Expression → RAS Generator → MAREA → Pathway Maps | 
|  | 28 | 
|  | 29 **Flux Simulation**: Gene Expression → RAS Generator → RAS to Bounds → Flux Simulation → Flux to Map | 
|  | 30 | 
|  | 31 ## Usage Patterns | 
|  | 32 | 
| 538 | 33 ### Galaxy Integration | 
|  | 34 All tools include Galaxy XML wrappers for web-based usage through the Galaxy interface. | 
|  | 35 | 
| 492 | 36 ### Command Line Usage | 
|  | 37 ```bash | 
|  | 38 # Basic pattern for all tools | 
|  | 39 tool_name -td $(pwd) [tool-specific options] | 
|  | 40 | 
|  | 41 # Example: Generate RAS scores | 
|  | 42 ras_generator -td $(pwd) -in expression.tsv -ra ras_output.tsv -rs ENGRO2 | 
|  | 43 ``` | 
|  | 44 | 
|  | 45 ## Parameter Reference | 
|  | 46 | 
|  | 47 ### File Format Requirements | 
|  | 48 | 
|  | 49 **Gene Expression Files** | 
|  | 50 - Format: TSV (tab-separated values) | 
|  | 51 - Structure: Genes (rows) × Samples (columns) | 
|  | 52 - First column: Gene IDs (HGNC, Ensembl, etc.) | 
|  | 53 - Subsequent columns: Expression values | 
|  | 54 | 
|  | 55 **Metabolite Files** | 
|  | 56 - Format: TSV (tab-separated values) | 
|  | 57 - Structure: Metabolites (rows) × Samples (columns) | 
|  | 58 - First column: Metabolite names | 
|  | 59 - Subsequent columns: Abundance values | 
|  | 60 | 
|  | 61 **Model Files** | 
|  | 62 - Format: SBML (.xml) or tabular rules (.tsv) | 
|  | 63 - Content: Metabolic network with GPR rules | 
|  | 64 | 
|  | 65 ### Built-in Models | 
|  | 66 | 
|  | 67 | Model | Organism | Reactions | Genes | Best For | | 
|  | 68 |-------|----------|-----------|-------|----------| | 
| 538 | 69 | **ENGRO2** | Human | ~500 | ~500 | Focused analysis, faster computation | | 
|  | 70 | **RECON3D** | Human | ~10,000 | ~2,000 | Comprehensive metabolism | | 
| 492 | 71 | 
|  | 72 ## Tool Selection Guide | 
|  | 73 | 
|  | 74 ### Choose Your Analysis Path | 
|  | 75 | 
|  | 76 **For Pathway Enrichment** | 
|  | 77 1. [RAS Generator](ras-generator.md) → Generate activity scores | 
|  | 78 2. [RPS Generator](rps-generator.md) → Generate propensity scores (optional) | 
|  | 79 3. [MAREA](marea.md) → Statistical analysis and visualization | 
|  | 80 | 
|  | 81 **For Flux Analysis** | 
|  | 82 1. [RAS Generator](ras-generator.md) → Generate activity scores | 
|  | 83 2. [RAS to Bounds](ras-to-bounds.md) → Apply constraints | 
|  | 84 3. [Flux Simulation](flux-simulation.md) → Sample fluxes | 
|  | 85 4. [Flux to Map](flux-to-map.md) → Create visualizations | 
|  | 86 | 
|  | 87 **For Model Exploration** | 
|  | 88 1. [Model Setting](metabolic-model-setting.md) → Extract model info | 
|  | 89 2. Analyze model structure and gene coverage | 
|  | 90 | 
|  | 91 **For Sample Classification** | 
|  | 92 1. Generate RAS/RPS scores | 
|  | 93 2. [MAREA Cluster](marea-cluster.md) → Cluster samples | 
|  | 94 | 
|  | 95 | 
|  | 96 | 
|  | 97 ## Troubleshooting | 
|  | 98 | 
|  | 99 ### Common Issues Across Tools | 
|  | 100 | 
|  | 101 **File Path Problems** | 
|  | 102 - Use absolute paths when possible | 
|  | 103 - Ensure all input files exist before starting | 
|  | 104 - Check write permissions for output directories | 
|  | 105 | 
|  | 106 **File Issues** | 
|  | 107 - Check file paths and permissions | 
|  | 108 - Verify input file formats | 
|  | 109 - Ensure sufficient disk space | 
|  | 110 | 
|  | 111 **Model Issues** | 
|  | 112 - Verify model file format and gene ID consistency | 
|  | 113 - Check gene ID mapping between data and model | 
|  | 114 - Use built-in models to avoid compatibility issues | 
|  | 115 | 
|  | 116 ### Getting Help | 
|  | 117 | 
|  | 118 For tool-specific issues: | 
|  | 119 1. Check individual tool documentation | 
|  | 120 2. Review parameter requirements and formats | 
|  | 121 3. Test with smaller datasets first | 
|  | 122 4. Consult [troubleshooting guide](../troubleshooting.md) | 
|  | 123 | 
|  | 124 ## Contributing | 
|  | 125 | 
|  | 126 Help improve tool documentation: | 
|  | 127 - Report unclear instructions | 
|  | 128 - Suggest additional examples | 
|  | 129 - Contribute usage patterns | 
|  | 130 - Fix documentation errors | 
|  | 131 | 
|  | 132 Each tool page includes detailed parameter descriptions, examples, and troubleshooting tips. Select a tool from the sidebar to get started! |