|
492
|
1 # Flux to Map
|
|
|
2
|
|
547
|
3 Visualize flux distributions on metabolic pathway maps.
|
|
492
|
4
|
|
|
5 ## Overview
|
|
|
6
|
|
547
|
7 This tool analyzes and visualizes statistical differences in reaction fluxes of groups of samples, returned by the Flux Simulation tool. The results can be visualized on s SVG metabolic map.
|
|
|
8
|
|
|
9 ## Galaxy Interface
|
|
|
10
|
|
|
11 In Galaxy: **COBRAxy → Metabolic Flux Enrichment Analysis**
|
|
492
|
12
|
|
547
|
13 1. Upload flux data and sample class file
|
|
|
14 2. Select the map and configure the comparison type
|
|
|
15 3. Click **Run tool**
|
|
492
|
16
|
|
547
|
17 ## Command-line console
|
|
492
|
18
|
|
|
19 ```bash
|
|
547
|
20 flux_to_map -input_data fluxes.csv \
|
|
|
21 -input_class classes.csv \
|
|
492
|
22 -choice_map ENGRO2 \
|
|
547
|
23 -comparison manyvsmany \
|
|
|
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` | Flux data 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 | t |
|
|
|
40 | Color Map | `--color_map` | Color scheme: viridis or jet | viridis |
|
|
|
41 | Output Path | `-idop` | Output directory | flux_to_map/ |
|
|
492
|
42
|
|
|
43 ## Input Formats
|
|
|
44
|
|
547
|
45 ### Flux Data
|
|
492
|
46
|
|
|
47 ```
|
|
547
|
48 Reaction Sample1 Sample2 Sample3
|
|
|
49 R00001 12.5 8.5 14.2
|
|
|
50 R00002 -6.5 13.5 7.2
|
|
492
|
51 ```
|
|
|
52
|
|
547
|
53 ### Sample Classes
|
|
492
|
54
|
|
|
55 ```
|
|
547
|
56 SampleID Class
|
|
|
57 Sample1 Control
|
|
|
58 Sample2 Treatment
|
|
492
|
59 Sample3 Treatment
|
|
|
60 ```
|
|
|
61
|
|
547
|
62 **Note on Metabolic Map**
|
|
|
63 We provide a default SVG map for the ENGRO2 model. If another model is used, we suggest uploading a custom SVG map.
|
|
492
|
64
|
|
547
|
65 **File Format Notes:**
|
|
|
66 - Use **tab-separated** values (TSV) or **comma-separated** (CSV)
|
|
|
67 - First row must contain column headers
|
|
|
68 - Sample names must match between flux data and class file
|
|
|
69 - Class names should not contain spaces
|
|
492
|
70
|
|
547
|
71 ## Statistical Tests
|
|
492
|
72
|
|
547
|
73 - **t**: Student's t-test (parametric, assumes normality)
|
|
|
74 - **wilcoxon**: Wilcoxon/Mann-Whitney (non-parametric)
|
|
|
75 - **ks**: Kolmogorov-Smirnov (distribution-free)
|
|
492
|
76
|
|
547
|
77 ## Comparison Types
|
|
492
|
78
|
|
547
|
79 - **manyvsmany**: All pairwise class comparisons
|
|
|
80 - **onevsrest**: Each class vs all others
|
|
|
81 - **onevsmany**: One reference vs multiple classes
|
|
492
|
82
|
|
547
|
83 ## Output
|
|
492
|
84
|
|
547
|
85 - `*_map.svg`: Annotated pathway maps
|
|
|
86 - `comparison_results.tsv`: Statistical results
|
|
|
87 - `*.log`: Processing log
|
|
492
|
88
|
|
|
89 ## Examples
|
|
|
90
|
|
547
|
91 ### Basic Comparison
|
|
492
|
92
|
|
|
93 ```bash
|
|
547
|
94 flux_to_map -input_data fluxes.csv \
|
|
|
95 -input_class classes.csv \
|
|
|
96 -choice_map ENGRO2 \
|
|
|
97 -comparison manyvsmany \
|
|
|
98 -pvalue 0.05 \
|
|
|
99 -idop results/
|
|
492
|
100 ```
|
|
|
101
|
|
547
|
102 ### With Custom Map
|
|
492
|
103
|
|
|
104 ```bash
|
|
547
|
105 flux_to_map -input_data fluxes.csv \
|
|
|
106 -input_class classes.csv \
|
|
|
107 -choice_map Custom \
|
|
|
108 -custom_map pathway.svg \
|
|
|
109 -comparison onevsrest \
|
|
|
110 -test_type wilcoxon \
|
|
|
111 -idop results/
|
|
492
|
112 ```
|
|
|
113
|
|
|
114 ## Troubleshooting
|
|
|
115
|
|
547
|
116 | Error | Solution |
|
|
|
117 |-------|----------|
|
|
|
118 | "No matching reactions" | Verify reaction ID consistency |
|
|
|
119 | "Insufficient data" | Increase sample sizes |
|
|
492
|
120
|
|
|
121 ## See Also
|
|
|
122
|
|
547
|
123 - [MAREA](tools/marea)
|
|
|
124 - [Flux Simulation](tools/flux-simulation)
|
|
|
125 - [Built-in Models](reference/built-in-models)
|