|
492
|
1 # MAREA
|
|
|
2
|
|
547
|
3 Metabolic Enrichment Analysis and Visualization.
|
|
492
|
4
|
|
|
5 ## Overview
|
|
|
6
|
|
547
|
7 MAREA performs statistical comparison of metabolic scores (RAS/RPS) and visualizes results on pathway maps.
|
|
|
8
|
|
|
9 ## Galaxy Interface
|
|
|
10
|
|
|
11 In Galaxy: **COBRAxy → Metabolic Reaction Enrichment Analysis**
|
|
492
|
12
|
|
547
|
13 1. Upload RAS/RPS scores and sample class file
|
|
|
14 2. Select map and configure statistical parameters
|
|
|
15 3. Click **Run tool**
|
|
492
|
16
|
|
547
|
17 ## Command-line console
|
|
492
|
18
|
|
|
19 ```bash
|
|
547
|
20 marea -input_data scores.tsv \
|
|
|
21 -input_class classes.csv \
|
|
|
22 -choice_map ENGRO2 \
|
|
492
|
23 -comparison manyvsmany \
|
|
547
|
24 -pvalue 0.05 \
|
|
|
25 -idop output/
|
|
492
|
26 ```
|
|
|
27
|
|
|
28 ## Parameters
|
|
|
29
|
|
|
30 | Parameter | Flag | Description | Default |
|
|
|
31 |-----------|------|-------------|---------|
|
|
547
|
32 | Input Data | `-input_data` | RAS/RPS scores file | - |
|
|
|
33 | Input Class | `-input_class` | Sample class definitions | - |
|
|
|
34 | Map Choice | `-choice_map` | ENGRO2, Recon, or Custom | ENGRO2 |
|
|
|
35 | Custom Map | `-custom_map` | Path to custom SVG map | - |
|
|
|
36 | Comparison | `-comparison` | manyvsmany, onevsrest, onevsmany | manyvsmany |
|
|
|
37 | P-value | `-pvalue` | Significance threshold | 0.05 |
|
|
|
38 | FDR Correction | `-fdr` | Apply FDR correction | true |
|
|
|
39 | Test Type | `-test_type` | t, wilcoxon, ks, DESeq | t |
|
|
|
40 | Net RPS | `--net` | Use net contribution for reversible reactions (RPS only) | false |
|
|
|
41 | Output Path | `-idop` | Output directory | marea/ |
|
|
492
|
42
|
|
|
43 ## Input Formats
|
|
|
44
|
|
547
|
45 ### Metabolic Scores
|
|
492
|
46
|
|
|
47 ```
|
|
547
|
48 Reaction Sample1 Sample2 Sample3
|
|
|
49 R00001 1.25 0.85 1.42
|
|
|
50 R00002 0.65 1.35 0.72
|
|
492
|
51 ```
|
|
|
52
|
|
547
|
53 ### Sample Classes
|
|
492
|
54
|
|
|
55 ```
|
|
547
|
56 SampleID Class
|
|
492
|
57 Sample1 Control
|
|
|
58 Sample2 Treatment
|
|
547
|
59 Sample3 Treatment
|
|
492
|
60 ```
|
|
|
61
|
|
547
|
62 **File Format Notes:**
|
|
|
63 - Use **tab-separated** values (TSV) or **comma-separated** (CSV)
|
|
|
64 - First row must contain column headers
|
|
|
65 - Sample names must match between scores and class file
|
|
|
66 - Class names should not contain spaces
|
|
492
|
67
|
|
|
68 ## Statistical Tests
|
|
|
69
|
|
547
|
70 - **t**: Student's t-test (parametric, assumes normality)
|
|
|
71 - **wilcoxon**: Wilcoxon/Mann-Whitney (non-parametric)
|
|
|
72 - **ks**: Kolmogorov-Smirnov (distribution-free)
|
|
|
73 - **DESeq**: DESeq2-like test (**RAS only**, requires ≥2 replicates per sample)
|
|
|
74
|
|
|
75 ## Comparison Types
|
|
492
|
76
|
|
547
|
77 - **manyvsmany**: All pairwise comparisons
|
|
|
78 - **onevsrest**: Each class vs all others
|
|
|
79 - **onevsmany**: One reference vs multiple classes
|
|
|
80
|
|
|
81 ## Advanced Options
|
|
|
82
|
|
|
83 ### Net RPS Values
|
|
492
|
84
|
|
547
|
85 When analyzing RPS data with reversible reactions, the `--net` parameter controls arrow coloring:
|
|
|
86
|
|
|
87 **When `--net false` (default):**
|
|
|
88 - Each direction of a reversible reaction colored independently
|
|
|
89 - Forward and backward contributions shown separately
|
|
492
|
90
|
|
547
|
91 **When `--net true` (RPS only):**
|
|
|
92 - Arrow tips colored with net contribution of both directions
|
|
|
93 - Useful for visualizing overall metabolite flow direction
|
|
|
94
|
|
|
95 **Note**: This option only applies to RPS analysis and affects visualization of reversible reactions on metabolic maps.
|
|
|
96
|
|
|
97 ## Output
|
|
|
98
|
|
|
99 - `*_map.svg`: Annotated pathway maps
|
|
|
100 - `comparison_results.tsv`: Statistical results
|
|
|
101 - `*.log`: Processing log
|
|
492
|
102
|
|
|
103 ## Examples
|
|
|
104
|
|
547
|
105 ### Basic Analysis
|
|
492
|
106
|
|
|
107 ```bash
|
|
547
|
108 marea -input_data ras_scores.tsv \
|
|
|
109 -input_class classes.csv \
|
|
|
110 -choice_map ENGRO2 \
|
|
492
|
111 -comparison manyvsmany \
|
|
547
|
112 -pvalue 0.05 \
|
|
492
|
113 -idop results/
|
|
|
114 ```
|
|
|
115
|
|
547
|
116 ### Custom Map
|
|
492
|
117
|
|
|
118 ```bash
|
|
547
|
119 marea -input_data rps_scores.tsv \
|
|
|
120 -input_class classes.csv \
|
|
|
121 -choice_map Custom \
|
|
|
122 -custom_map pathway.svg \
|
|
492
|
123 -comparison onevsrest \
|
|
547
|
124 -idop results/
|
|
492
|
125 ```
|
|
|
126
|
|
547
|
127 ### Non-parametric Test
|
|
492
|
128
|
|
547
|
129 ```bash
|
|
|
130 marea -input_data scores.tsv \
|
|
|
131 -input_class classes.csv \
|
|
|
132 -choice_map ENGRO2 \
|
|
|
133 -test_type wilcoxon \
|
|
|
134 -pvalue 0.01 \
|
|
|
135 -fdr true \
|
|
|
136 -idop results/
|
|
|
137 ```
|
|
492
|
138
|
|
|
139 ## Troubleshooting
|
|
|
140
|
|
547
|
141 | Error | Solution |
|
|
|
142 |-------|----------|
|
|
|
143 | "No matching reactions" | Verify reaction IDs |
|
|
|
144 | "Insufficient samples" | Increase sample sizes per group |
|
|
492
|
145
|
|
|
146 ## See Also
|
|
|
147
|
|
547
|
148 - [RAS Generator](tools/ras-generator)
|
|
|
149 - [RPS Generator](tools/rps-generator)
|
|
|
150 - [Flux to Map](tools/flux-to-map)
|
|
|
151 - [Built-in Models](reference/built-in-models)
|