From b2989aa746b095c78801842f35e116b0f02227e9 Mon Sep 17 00:00:00 2001 From: ivanwilliammd Date: Sun, 16 Feb 2025 17:48:59 +0700 Subject: [PATCH] Bump version to v1.0.0 for release --- RELEASE_PROCESS.md | 4 ++++ iderare_pheno/converter.py | 19 +++++++++++-------- scripts/personalize.py | 2 +- 3 files changed, 16 insertions(+), 9 deletions(-) diff --git a/RELEASE_PROCESS.md b/RELEASE_PROCESS.md index e73ab58..8ef64d8 100644 --- a/RELEASE_PROCESS.md +++ b/RELEASE_PROCESS.md @@ -25,7 +25,11 @@ If for some reason the GitHub Actions release workflow failed with an error that needs to be fixed, you'll have to delete both the tag and corresponding release from GitHub. After you've pushed a fix, delete the tag from your local clone with ```bash +# Linux git tag -l | xargs git tag -d && git fetch -t + +# Windows +git tag -l | ForEach-Object { git tag -d $_ } ; git fetch -t ``` Then repeat the steps above. diff --git a/iderare_pheno/converter.py b/iderare_pheno/converter.py index c3af570..0a074be 100644 --- a/iderare_pheno/converter.py +++ b/iderare_pheno/converter.py @@ -1,5 +1,6 @@ -import os import gc +import os + import pandas as pd # Declare the folder path for phenotype data source @@ -20,19 +21,20 @@ clinical_data = "clinical_data.txt" # Read the clinical data and parse the data -with open(icd10omim, 'r') as file: +with open(icd10omim, "r") as file: icd10omim_df = pd.read_csv(file, sep="\t") -with open(loinc2hpo, 'r') as file: +with open(loinc2hpo, "r") as file: loinc2hpo_df = pd.read_csv(file, sep="\t") -with open(orpha2omim, 'r') as file: +with open(orpha2omim, "r") as file: orpha2omim_df = pd.read_csv(file, sep="\t") -with open(omim2hpo, 'r') as file: +with open(omim2hpo, "r") as file: omim2hpo_df = pd.read_csv(file, sep="\t") -with open(snomed2hpo, 'r') as file: +with open(snomed2hpo, "r") as file: snomed2hpo_df = pd.read_csv(file, sep="\t") -with open(snomed2orpha, 'r') as file: +with open(snomed2orpha, "r") as file: snomed2orpha_df = pd.read_csv(file, sep="\t") + # Convert SNOMED to ORPHA First def term2orpha(clinical_data): print("Trying to parse ORPHA from SNOMEDCT", clinical_data) @@ -285,6 +287,7 @@ def batchconvert(clinical_data_list): return hpo_sets, diagnosis_sets + # Ensure DataFrames are deleted and memory is freed up after all operations del icd10omim_df, loinc2hpo_df, orpha2omim_df, omim2hpo_df, snomed2hpo_df, snomed2orpha_df -gc.collect() \ No newline at end of file +gc.collect() diff --git a/scripts/personalize.py b/scripts/personalize.py index 5d72661..be89676 100644 --- a/scripts/personalize.py +++ b/scripts/personalize.py @@ -122,7 +122,7 @@ def main( install_example = Syntax("pip install -e '.[dev]'", "bash") print( - "[green]\N{check mark} Success![/] You can now install your package locally in development mode with:\n", + "[green]\N{CHECK MARK} Success![/] You can now install your package locally in development mode with:\n", install_example, )