Skip to content

Commit 8b5f9b4

Browse files
committed
fix linting py script
1 parent f3386f4 commit 8b5f9b4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tools/flexynesis/fetch_cbioportal_data.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,13 @@ def main():
1313
parser.add_argument("--mapped_files", default=None, help="Comma-separated list of .txt files to map to data_types (optional)")
1414
parser.add_argument("--split_ratio", type=float, default=0.7, help="Training/test split ratio (0.0 to 1.0)")
1515
parser.add_argument("--output_dir", required=True, help="Output directory for datasets")
16-
16+
1717
args = parser.parse_args()
18-
18+
1919
data_types = args.data_types.split(",")
2020
if "clin" not in data_types:
2121
raise ValueError("Clinical data ('clin') is required for splitting the dataset.")
22-
22+
2323
file_mapping = {
2424
"clin": "data_clinical_patient.txt", # can be any with 'clinical' in file name
2525
"mut": "data_mutations.txt", # any with 'mutations' in file name
@@ -37,7 +37,7 @@ def main():
3737
raise ValueError(f"Mapped file '{mf}' must end with '.txt'.")
3838
else:
3939
files_to_fetch = {dt: file_mapping[dt] for dt in data_types if dt in file_mapping}
40-
40+
4141
invalid_types = set(data_types) - set(file_mapping.keys())
4242
if invalid_types:
4343
raise ValueError(f"Invalid data types: {invalid_types}. Supported types: {list(file_mapping.keys())}")

0 commit comments

Comments
 (0)