|
492
|
1 # RAS to Bounds
|
|
|
2
|
|
|
3 Apply Reaction Activity Scores (RAS) as constraints to metabolic model bounds.
|
|
|
4
|
|
|
5 ## Overview
|
|
|
6
|
|
547
|
7 RAS to Bounds integrates RAS values into metabolic model flux bounds, creating sample-specific constrained models.
|
|
|
8
|
|
|
9 ## Galaxy Interface
|
|
|
10
|
|
|
11 In Galaxy: **COBRAxy → RAS to Bounds**
|
|
|
12
|
|
|
13 1. Select model and upload RAS scores file
|
|
|
14 2. Configure medium and constraint options
|
|
|
15 3. Click **Execute**
|
|
492
|
16
|
|
|
17 ## Usage
|
|
|
18
|
|
|
19 ```bash
|
|
547
|
20 ras_to_bounds -ms ENGRO2 \
|
|
492
|
21 -ir ras_scores.tsv \
|
|
|
22 -rs true \
|
|
|
23 -mes allOpen \
|
|
|
24 -idop constrained_bounds/
|
|
|
25 ```
|
|
|
26
|
|
|
27 ## Parameters
|
|
|
28
|
|
|
29 | Parameter | Flag | Description | Default |
|
|
|
30 |-----------|------|-------------|---------|
|
|
547
|
31 | Model Selector | `-ms` | ENGRO2, Recon, or Custom | ENGRO2 |
|
|
|
32 | RAS Input | `-ir` | RAS scores TSV file | - |
|
|
|
33 | RAS Selector | `-rs` | Enable RAS constraints | false |
|
|
|
34 | Medium Selector | `-mes` | Medium configuration | allOpen |
|
|
|
35 | Save Models | `--save_models` | Save complete models with bounds | false |
|
|
|
36 | Output Path | `-idop` | Output directory | ras_to_bounds/ |
|
|
|
37 | Custom Model | `-mo` | Path to custom SBML model | - |
|
|
|
38 | Custom Medium | `-meo` | Custom medium file | - |
|
|
492
|
39
|
|
547
|
40 ## Input Format
|
|
492
|
41
|
|
547
|
42 RAS scores file (TSV):
|
|
492
|
43
|
|
|
44 ```
|
|
547
|
45 Reaction Sample1 Sample2 Sample3
|
|
|
46 R00001 1.25 0.85 1.42
|
|
|
47 R00002 0.65 1.35 0.72
|
|
492
|
48 ```
|
|
|
49
|
|
547
|
50 **File Format Notes:**
|
|
|
51 - Use **tab-separated** values (TSV)
|
|
|
52 - First row must contain column headers (Reaction, Sample names)
|
|
|
53 - Reaction IDs must match model reaction IDs
|
|
|
54 - Numeric values for RAS scores
|
|
492
|
55
|
|
|
56 ## Output Format
|
|
|
57
|
|
547
|
58 Bounds files for each sample:
|
|
492
|
59
|
|
|
60 ```
|
|
547
|
61 reaction lower_bound upper_bound
|
|
|
62 R00001 -125.0 125.0
|
|
|
63 R00002 -65.0 65.0
|
|
492
|
64 ```
|
|
|
65
|
|
547
|
66 ## Output Collections
|
|
|
67
|
|
|
68 The tool generates three types of output:
|
|
492
|
69
|
|
547
|
70 1. **Bounds files** (`ras_to_bounds/`): Individual bound files per sample (TSV format)
|
|
|
71 2. **Cell classes** (`cell_class`): Sample-to-class mapping file
|
|
|
72 3. **Complete models** (optional, `saved_models/`): Full tabular models with bounds applied
|
|
|
73
|
|
|
74 To save complete models with integrated bounds, set `--save_models true`. This creates ready-to-use model files that can be directly used with Flux Simulation or other downstream tools.
|
|
492
|
75
|
|
|
76 ## Examples
|
|
|
77
|
|
547
|
78 ### Basic Usage
|
|
492
|
79
|
|
|
80 ```bash
|
|
547
|
81 ras_to_bounds -ms ENGRO2 \
|
|
|
82 -ir ras_scores.tsv \
|
|
492
|
83 -rs true \
|
|
547
|
84 -idop output/
|
|
492
|
85 ```
|
|
|
86
|
|
547
|
87 ### With Custom Model
|
|
492
|
88
|
|
|
89 ```bash
|
|
547
|
90 ras_to_bounds -ms Custom \
|
|
|
91 -mo custom_model.xml \
|
|
|
92 -ir ras_scores.tsv \
|
|
|
93 -rs true \
|
|
|
94 -idop output/
|
|
492
|
95 ```
|
|
|
96
|
|
|
97 ## Troubleshooting
|
|
|
98
|
|
547
|
99 | Error | Solution |
|
|
|
100 |-------|----------|
|
|
|
101 | "Model not found" | Check model file path |
|
|
|
102 | "RAS file invalid" | Verify TSV format |
|
|
|
103 | "Infeasible solution" | Relax RAS scaling or constraints |
|
|
492
|
104
|
|
|
105 ## See Also
|
|
|
106
|
|
547
|
107 - [RAS Generator](tools/ras-generator)
|
|
|
108 - [Flux Simulation](tools/flux-simulation)
|
|
|
109 - [Built-in Models](reference/built-in-models)
|