Skip to content

Commit

Permalink
fix: do not require any base filename before the sample IDs
Browse files Browse the repository at this point in the history
  • Loading branch information
BinglanLi committed Aug 7, 2024
1 parent b7e66ea commit 7250db4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/scripts/json2tsv/utilities.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
def get_json_file_names(sample_id: str, matcher_json_list: list[str], phenotyper_json_list: list[str]) \
-> tuple[str, str]:
# get the matcher and phenotyper json names for the sample
matcher_pattern: str = f".{sample_id}.match.json"
matcher_pattern: str = f"{sample_id}.match.json"
matcher_match_list: list[str] = [x for x in matcher_json_list if matcher_pattern in x]
phenotyper_pattern: str = f".{sample_id}.phenotype.json"
phenotyper_pattern: str = f"{sample_id}.phenotype.json"
phenotyper_match_list: list[str] = [x for x in phenotyper_json_list if phenotyper_pattern in x]

matcher_file: str = ''
Expand Down

0 comments on commit 7250db4

Please sign in to comment.