|
492
|
1 # Quick Start Guide
|
|
|
2
|
|
|
3 Get started with COBRAxy! This guide walks you through your first metabolic analysis.
|
|
|
4
|
|
|
5 ## Step 1: Verify Installation
|
|
|
6
|
|
|
7 Test that COBRAxy is working:
|
|
|
8
|
|
|
9 ```bash
|
|
|
10 # Check if tools are available
|
|
|
11 ras_generator --help
|
|
|
12
|
|
|
13 # Should display help text without errors
|
|
|
14 ```
|
|
|
15
|
|
|
16 ## Step 2: Download Sample Data
|
|
|
17
|
|
|
18 Create a sample gene expression file:
|
|
|
19
|
|
|
20 ```bash
|
|
|
21 # Create sample data
|
|
|
22 cat > sample_expression.tsv << 'EOF'
|
|
|
23 Gene_ID Control_1 Control_2 Treatment_1 Treatment_2
|
|
|
24 HGNC:5 8.5 9.2 15.7 14.3
|
|
|
25 HGNC:10 3.2 4.1 8.8 7.9
|
|
|
26 HGNC:15 7.9 8.2 4.4 5.1
|
|
|
27 HGNC:25 12.1 13.5 18.2 17.8
|
|
|
28 HGNC:30 6.3 7.1 11.5 10.8
|
|
|
29 HGNC:55 14.2 15.8 22.1 21.3
|
|
|
30 HGNC:80 5.7 6.4 2.8 3.2
|
|
|
31 HGNC:100 9.8 10.5 16.7 15.9
|
|
|
32 EOF
|
|
|
33 ```
|
|
|
34
|
|
|
35 ## Step 3: Generate Activity Scores
|
|
|
36
|
|
|
37 Compute Reaction Activity Scores (RAS) from your gene expression:
|
|
|
38
|
|
|
39 ```bash
|
|
|
40 # Generate RAS scores using built-in ENGRO2 model
|
|
542
|
41 ras_generator \
|
|
492
|
42 -in sample_expression.tsv \
|
|
|
43 -ra ras_scores.tsv \
|
|
|
44 -rs ENGRO2
|
|
|
45
|
|
|
46 # Check output
|
|
|
47 head ras_scores.tsv
|
|
|
48 ```
|
|
|
49
|
|
|
50 **Expected output**:
|
|
|
51 ```tsv
|
|
|
52 Reactions Control_1 Control_2 Treatment_1 Treatment_2
|
|
|
53 R_HEX1 8.5 9.2 15.7 14.3
|
|
|
54 R_PGI 7.9 8.2 4.4 5.1
|
|
|
55 ...
|
|
|
56 ```
|
|
|
57
|
|
|
58 ## Step 4: Create Pathway Visualizations
|
|
|
59
|
|
|
60 Generate enriched pathway maps with statistical analysis:
|
|
|
61
|
|
|
62 ```bash
|
|
|
63 # Create pathway maps with statistical analysis
|
|
542
|
64 marea \
|
|
492
|
65 -using_RAS true \
|
|
|
66 -input_data ras_scores.tsv \
|
|
|
67 -choice_map ENGRO2 \
|
|
|
68 -gs true \
|
|
|
69 -idop pathway_maps
|
|
|
70
|
|
|
71 # Check results
|
|
|
72 ls pathway_maps/
|
|
|
73 ```
|
|
|
74
|
|
|
75 **Expected output**: SVG files with colored pathway maps showing metabolic changes.
|
|
|
76
|
|
|
77 ## Step 5: View Results
|
|
|
78
|
|
|
79 Open the generated pathway maps:
|
|
|
80
|
|
|
81 ```bash
|
|
|
82 # Open SVG files in your browser or image viewer
|
|
|
83 # Files will be in pathway_maps/ directory
|
|
|
84 firefox pathway_maps/*.svg # Linux
|
|
|
85 open pathway_maps/*.svg # macOS
|
|
|
86 ```
|
|
|
87
|
|
|
88 ## What Just Happened?
|
|
|
89
|
|
|
90 1. **RAS Generation**: Mapped gene expression to metabolic reactions using GPR rules
|
|
|
91 2. **Statistical Analysis**: Identified significantly altered pathways between conditions
|
|
|
92 3. **Visualization**: Created colored pathway maps highlighting metabolic changes
|
|
|
93
|
|
|
94 ## Next Steps
|
|
|
95
|
|
|
96 ### Learn More About the Analysis
|
|
|
97
|
|
547
|
98 - **[Understanding RAS](tools/ras-generator)** - How activity scores are computed
|
|
|
99 - **[MAREA Analysis](tools/marea)** - Statistical enrichment methods
|
|
492
|
100 - **[Data Flow](getting-started.md#analysis-workflows)** - Complete workflow overview
|
|
|
101
|
|
|
102 ### Try Advanced Features
|
|
|
103
|
|
|
104 - **[Flux Sampling](tutorials/workflow.md#flux-simulation-workflow)** - Predict metabolic flux distributions
|
|
547
|
105 - **[Galaxy Interface](tutorials/galaxy-setup)** - Web-based analysis
|
|
492
|
106
|
|
|
107 ### Use Your Own Data
|
|
|
108
|
|
547
|
109 - **[Data Formats](tutorials/data-formats)** - Prepare your expression data
|
|
|
110 - **[Troubleshooting](troubleshooting)** - Common issues and solutions
|
|
492
|
111
|
|
|
112 ## Complete Example Pipeline
|
|
|
113
|
|
|
114 Here's the full command sequence for reference:
|
|
|
115
|
|
|
116 ```bash
|
|
|
117 # Set up
|
|
|
118 cd /path/to/analysis/
|
|
|
119
|
|
|
120 # Generate sample data (or use your own)
|
|
|
121 cat > expression.tsv << 'EOF'
|
|
|
122 [your gene expression data]
|
|
|
123 EOF
|
|
|
124
|
|
|
125 # Run analysis pipeline
|
|
542
|
126 ras_generator -in expression.tsv -ra ras.tsv -rs ENGRO2
|
|
|
127 marea -using_RAS true -input_data ras.tsv -choice_map ENGRO2 -gs true -idop maps
|
|
492
|
128
|
|
|
129 # View results
|
|
|
130 ls maps/*.svg
|
|
|
131 ```
|
|
|
132
|
|
|
133 ## Getting Help
|
|
|
134
|
|
|
135 If something doesn't work:
|
|
|
136
|
|
|
137 1. **Check Prerequisites**: Ensure COBRAxy is properly installed
|
|
|
138 2. **Verify File Format**: Make sure your data is tab-separated TSV
|
|
|
139 3. **Review Logs**: Look for error messages in the terminal output
|
|
547
|
140 4. **Consult Guides**: [Troubleshooting](troubleshooting) and [Installation](installation) |