comparison COBRAxy/docs/tools/README.md @ 547:73f2f7e2be17 draft

Uploaded
author francesco_lapi
date Tue, 28 Oct 2025 10:44:07 +0000
parents fcdbc81feb45
children
comparison
equal deleted inserted replaced
546:01147e83f43c 547:73f2f7e2be17
1 Complete reference for all COBRAxy tools with parameters, examples, and usage guidelines. 1 Complete reference for all COBRAxy tools with parameters, examples, and usage guidelines.
2 2
3 ## Available Tools 3 ## Available Tools
4 4
5 | Tool | Purpose | Input | Output | 5 | Galaxy Tool | Python script | Purpose | Input | Output |
6 |------|---------|--------|--------| 6 |------|---------|---------|--------|--------|
7 | [Import Metabolic Model](tools/import-metabolic-model) | Import and extract model components | SBML/JSON/MAT/YAML model | Tabular model data | 7 | [Import Metabolic Model](tools/import-metabolic-model) | importMetabolicModel | Import and extract model components | SBML/JSON/MAT/YAML model | Tabular model data |
8 | [Export Metabolic Model](tools/export-metabolic-model) | Export tabular data to model format | Tabular model data | SBML/JSON/MAT/YAML model | 8 | [Export Metabolic Model](tools/export-metabolic-model) | exportMetabolicModel |Export tabular data to model format | Tabular model data | SBML/JSON/MAT/YAML model |
9 | [RAS Generator](tools/ras-generator) | Compute reaction activity scores | Gene expression + GPR rules | RAS values | 9 | [Expression2RAS](tools/ras-generator) | ras_generator | Compute reaction activity scores | Gene expression + GPR rules | RAS values |
10 | [RPS Generator](tools/rps-generator) | Compute reaction propensity scores | Metabolite abundance | RPS values | 10 | [Expression2RPS](tools/rps-generator) | rps_generator | Compute reaction propensity scores | Metabolite abundance | RPS values |
11 | [MAREA](tools/marea) | Statistical pathway enrichment | RAS/RPS data | Enriched maps + statistics | 11 | [Metabolic Reaction Enrichment Analysis](tools/marea) | marea | Statistical pathway enrichment | RAS/RPS data | Enriched maps + statistics |
12 | [RAS to Bounds](tools/ras-to-bounds) | Apply RAS constraints to model | RAS + SBML model | Constrained bounds | 12 | [RAS2Bounds](tools/ras-to-bounds) | ras_to_bounds | Apply RAS constraints to model | RAS + SBML model | Constrained bounds |
13 | [Flux Simulation](tools/flux-simulation) | Sample metabolic fluxes | Constrained model | Flux distributions | 13 | [Flux Simulation](tools/flux-simulation) | flux_simulation | Sample metabolic fluxes | Constrained model | Flux distributions |
14 | [Flux to Map](tools/flux-to-map) | Visualize flux data on maps | Flux samples + statistical comparison | Color-coded pathway maps | 14 | [Metabolic Flux Enrichment Analysis](tools/flux-to-map) | flux_to_map | Visualize flux data on maps | Flux samples + statistical comparison | Color-coded pathway maps |
15 | [MAREA Cluster](tools/marea-cluster) | Cluster analysis | Expression/RAS/RPS/flux data | Sample clusters + validation plots | 15 | [Cluster Analysis](tools/marea-cluster) | marea_cluster | Cluster analysis | Expression/RAS/RPS/flux data | Sample clusters + validation plots |
16
17 16
18 ## Analysis Workflows 17 ## Analysis Workflows
19 18
20 **Enrichment Analysis**: Gene Expression → RAS Generator → MAREA → Pathway Maps 19 **Enrichment Analysis**: Gene Expression → RAS Generator → MAREA → Pathway Maps
21 20
27 All tools include Galaxy XML wrappers for web-based usage through the Galaxy interface. 26 All tools include Galaxy XML wrappers for web-based usage through the Galaxy interface.
28 27
29 ### Command Line Usage 28 ### Command Line Usage
30 ```bash 29 ```bash
31 # Basic pattern for all tools 30 # Basic pattern for all tools
32 tool_name -td $(pwd) [tool-specific options] 31 tool_name [tool-specific options]
33 32
34 # Example: Generate RAS scores 33 # Example: Generate RAS scores
35 ras_generator -td $(pwd) -in expression.tsv -ra ras_output.tsv -rs ENGRO2 34 ras_generator -in expression.tsv -ra ras_output.tsv -rs ENGRO2
36 ``` 35 ```
37
38 ## Parameter Reference
39
40 ### File Format Requirements
41
42 **Gene Expression Files**
43 - Format: TSV (tab-separated values)
44 - Structure: Genes (rows) × Samples (columns)
45 - First column: Gene IDs (HGNC, Ensembl, etc.)
46 - Subsequent columns: Expression values
47
48 **Metabolite Files**
49 - Format: TSV (tab-separated values)
50 - Structure: Metabolites (rows) × Samples (columns)
51 - First column: Metabolite names
52 - Subsequent columns: Abundance values
53
54 **Model Files**
55 - Format: SBML (.xml) or tabular rules (.tsv)
56 - Content: Metabolic network with GPR rules
57
58 ### Built-in Models
59
60 | Model | Organism | Reactions | Genes | Best For |
61 |-------|----------|-----------|-------|----------|
62 | **ENGRO2** | Human | ~500 | ~500 | Focused analysis, faster computation |
63 | **RECON3D** | Human | ~10,000 | ~2,000 | Comprehensive metabolism |
64 36
65 ## Tool Selection Guide 37 ## Tool Selection Guide
66 38
67 ### Choose Your Analysis Path 39 ### Choose Your Analysis Path
68 40
75 1. [RAS Generator](tools/ras-generator) → Generate activity scores 47 1. [RAS Generator](tools/ras-generator) → Generate activity scores
76 2. [RAS to Bounds](tools/ras-to-bounds) → Apply constraints 48 2. [RAS to Bounds](tools/ras-to-bounds) → Apply constraints
77 3. [Flux Simulation](tools/flux-simulation) → Sample fluxes 49 3. [Flux Simulation](tools/flux-simulation) → Sample fluxes
78 4. [Flux to Map](tools/flux-to-map) → Create visualizations 50 4. [Flux to Map](tools/flux-to-map) → Create visualizations
79 51
80 **For Model Exploration**
81 1. [Import Metabolic Model](tools/import-metabolic-model) → Extract model info
82 2. Analyze model structure and gene coverage
83
84 **For Model Creation** 52 **For Model Creation**
85 1. Create/edit tabular model data 53 1. Create/edit tabular model data
86 2. [Export Metabolic Model](tools/export-metabolic-model) → Create SBML/JSON/MAT/YAML model 54 2. [Export Metabolic Model](tools/export-metabolic-model) → Create SBML/JSON/MAT/YAML model
87
88 **For Sample Classification**
89 1. Generate RAS/RPS scores
90 2. [MAREA Cluster](tools/marea-cluster) → Cluster samples
91
92
93 55
94 ## Troubleshooting 56 ## Troubleshooting
95 57
96 ### Common Issues Across Tools 58 ### Common Issues Across Tools
97 59
98 **Model Issues** 60 **Model Issues**
99 - Verify model file format and gene ID consistency 61 - Verify model file format and gene ID consistency
100 - Check gene ID mapping between data and model 62 - Check gene ID mapping between data and model
101 - Use built-in models to avoid compatibility issues
102 63
103 ### Getting Help 64 ### Getting Help
104 65
105 For tool-specific issues: 66 For tool-specific issues:
106 1. Check individual tool documentation 67 1. Check individual tool documentation
107 2. Review parameter requirements and formats 68 2. Review parameter requirements and formats
108 3. Test with smaller datasets first 69 3. Test with smaller datasets first
109 4. Consult [troubleshooting guide](/troubleshooting.md) 70 4. Consult [troubleshooting guide](troubleshooting)
110 71
111 ## Contributing 72 ## Contributing
112 73
113 Help improve tool documentation: 74 Help improve tool documentation:
114 - Report unclear instructions 75 - Report unclear instructions
115 - Suggest additional examples 76 - Suggest additional examples
116 - Contribute usage patterns 77 - Contribute usage patterns
117 - Fix documentation errors 78 - Fix documentation errors
118 79
119 Each tool page includes detailed parameter descriptions, examples, and troubleshooting tips. Select a tool from the sidebar to get started! 80 Each tool page includes detailed parameter descriptions, examples, and troubleshooting tips.