Skip to content

Commit

Permalink
update bed file case for msg formatting purposes
Browse files Browse the repository at this point in the history
  • Loading branch information
rxu17 committed Nov 16, 2023
1 parent f48037e commit f9f3e42
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion genie_registry/clinical.py
Original file line number Diff line number Diff line change
Expand Up @@ -1032,7 +1032,7 @@ def _cross_validate_bed_files_exist(self, clinicaldf) -> list:
**exception_params,
)
if not bed_files["files"]:
missing_files.append(f"{seq_assay_id}.bed")
missing_files.append(f"{seq_assay_id.upper()}.bed")
return missing_files

def _cross_validate_bed_files_exist_message(self, missing_bed_files: list) -> tuple:
Expand Down
6 changes: 3 additions & 3 deletions tests/test_clinical.py
Original file line number Diff line number Diff line change
Expand Up @@ -1094,7 +1094,7 @@ def get_cross_validate_bed_files_test_cases():
[{"name": "SAGE-1-1.bed", "path": ""}],
[{"name": "SAGE-1.bed", "path": ""}],
],
"expected_missing_files": ["sage-1-2.bed"],
"expected_missing_files": ["SAGE-1-2.bed"],
},
{
"name": "no_match",
Expand All @@ -1106,7 +1106,7 @@ def get_cross_validate_bed_files_test_cases():
[{"name": "SAGE-1-1.bed", "path": ""}],
[{"name": "SAGE-1.bed", "path": ""}],
],
"expected_missing_files": ["sage-1-2.bed", "sage-1-3.bed"],
"expected_missing_files": ["SAGE-1-2.bed", "SAGE-1-3.bed"],
},
{
"name": "no_bed_files",
Expand All @@ -1116,7 +1116,7 @@ def get_cross_validate_bed_files_test_cases():
"test_ancillary_files": [
[{"name": "SAGE-1.txt", "path": ""}],
],
"expected_missing_files": ["sage-1-2.bed", "sage-1-3.bed"],
"expected_missing_files": ["SAGE-1-2.bed", "SAGE-1-3.bed"],
},
]

Expand Down

0 comments on commit f9f3e42

Please sign in to comment.