You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<paramname="non_commercial_use"label="I certify that I am not using this tool for commercial purposes."type="boolean"truevalue="NON_COMMERCIAL_USE"falsevalue="COMMERCIAL_USE"checked="False">
20
+
<validatortype="expression"message="This tool is only available for non-commercial use.">value == True</validator>
21
+
</param>
22
+
<paramname="study_id"type="text"label="cBioPortal study ID"help="The ID of the study to fetch from cBioPortal (e.g., 'brca_tcga')." />
23
+
<paramname="data_types"type="select"multiple="true"label="Data types to fetch"help="Select the types of data to retrieve from cBioPortal.">
24
+
<optionvalue="clin"selected="true">Clinical data (default: data_clinical_patient.txt)</option>
<optionvalue="omics">Omics data (default: data_cna.txt)</option>
27
+
<optionvalue="other">Other custom data</option>
28
+
</param>
29
+
<paramname="mapped_files"type="text"optional="true"label="Mapped files"help="Comma-separated list of .txt files to map to the selected data types (e.g., 'data_clinical_sample.txt,data_mutations.txt,data_castom.txt'). Must match the number and order of data types." />
30
+
<paramname="split_ratio"type="float"value="0.7"min="0.0"max="1.0"label="Training/Test split ratio"help="Proportion of data to use for training (e.g., 0.7 means 70% train, 30% test)." />
31
+
</inputs>
32
+
<outputs>
33
+
<collectionname="datasets"type="list"label="${tool.name} on ${study_id}: datasets">
This tool fetches data from cBioPortal using the Flexynesis `CBioPortalData` class and prepares it for use with the Flexynesis Galaxy tool. It downloads a specified study, extracts the requested data types, splits them into training and test sets, and outputs them as CSV files compatible with Flexynesis (e.g., `clin_train.csv`, `mut_test.csv`).
94
+
95
+
**Inputs**
96
+
97
+
- **cBioPortal study ID**: The identifier of the study to fetch (e.g., `brca_tcga`, `lgg_tcga`). Find study IDs on the cBioPortal.
98
+
- **Data types to fetch**: Select one or more data types to retrieve. 'Clinical data' (`clin`) is required for splitting. Options:
99
+
- `clin`: Clinical data (default: `data_clinical_patient.txt`)
100
+
- `mut`: Mutation data (default: `data_mutations.txt`)
101
+
- `omics`: Omics data (default: `data_cna.txt`)
102
+
- `other`: Custom data type (requires `--mapped_files`)
103
+
- **Mapped files (optional)**: A comma-separated list of `.txt` files to override default filenames. Must match the number and order of selected data types (e.g., `data_clinical_sample.txt,data_mutations.txt,data_custom.txt`).
104
+
- **Training/Test split ratio**: The proportion of data for training (e.g., 0.7 means 70% train, 30% test).
105
+
106
+
**Outputs**
107
+
108
+
A collection of datasets including:
109
+
- `clin_train.csv` and `clin_test.csv`: Training and test clinical data (always included).
110
+
- `mut_train.csv` and `mut_test.csv`: Training and test mutation data (if selected).
111
+
- `omics_train.csv` and `omics_test.csv`: Training and test omics/CNA data (if selected).
112
+
- `other_train.csv` and `other_test.csv`: Training and test custom data (if `other` is selected with a mapped file).
113
+
114
+
These datasets can be used as inputs to the Flexynesis Galaxy tool for multi-omics analysis.
115
+
116
+
**Note**: Ensure the study ID is valid and the selected data types (or mapped files) are available in the study archive. Clinical data (`clin`) is mandatory for splitting.
0 commit comments