Mercurial > repos > bimib > cobraxy
diff COBRAxy/docs/tools/ras-generator.md @ 542:fcdbc81feb45 draft
Uploaded
| author | francesco_lapi |
|---|---|
| date | Sun, 26 Oct 2025 19:27:41 +0000 |
| parents | fd53d42348bd |
| children | 73f2f7e2be17 |
line wrap: on
line diff
--- a/COBRAxy/docs/tools/ras-generator.md Sat Oct 25 15:20:55 2025 +0000 +++ b/COBRAxy/docs/tools/ras-generator.md Sun Oct 26 19:27:41 2025 +0000 @@ -18,7 +18,6 @@ | Parameter | Short | Type | Description | |-----------|--------|------|-------------| -| `--tool_dir` | `-td` | string | COBRAxy installation directory | | `--input` | `-in` | file | Gene expression dataset (TSV format) | | `--ras_output` | `-ra` | file | Output file for RAS values | | `--rules_selector` | `-rs` | choice | Built-in model (ENGRO2, Recon, HMRcore) | @@ -27,11 +26,14 @@ | Parameter | Short | Type | Default | Description | |-----------|--------|------|---------|-------------| +| `--tool_dir` | `-td` | string | auto-detected | COBRAxy installation directory (automatically detected after pip install) | | `--none` | `-n` | boolean | true | Handle missing gene values | | `--model_upload` | `-rl` | file | - | Custom GPR rules file | | `--model_upload_name` | `-rn` | string | - | Custom model name | | `--out_log` | - | file | log.txt | Output log file | +> **Note**: After installing COBRAxy via pip, the `--tool_dir` parameter is automatically detected and doesn't need to be specified. + ## Input Format ### Gene Expression File @@ -102,35 +104,25 @@ ### Command Line ```bash -# Basic usage with built-in model -ras_generator -td /path/to/COBRAxy \ +# Basic usage with built-in model (after pip install) +ras_generator \ -in expression_data.tsv \ -ra ras_output.tsv \ -rs ENGRO2 # With custom model and strict missing gene handling -ras_generator -td /path/to/COBRAxy \ +ras_generator \ -in expression_data.tsv \ -ra ras_output.tsv \ -rl custom_rules.tsv \ -rn "CustomModel" \ -n false -``` -### Python API - -```python -import ras_generator - -# Basic RAS generation -args = [ - '-td', '/path/to/COBRAxy', - '-in', 'expression_data.tsv', - '-ra', 'ras_output.tsv', - '-rs', 'ENGRO2' -] - -ras_generator.main(args) +# Explicitly specify tool directory (only needed if not using pip install) +ras_generator -td /path/to/COBRAxy \ + -in expression_data.tsv \ + -ra ras_output.tsv \ + -rs ENGRO2 ``` ### Galaxy Usage
