Skip to content

Commit

Permalink
Bump version to v1.0.0 for release
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanwilliammd committed Feb 16, 2025
1 parent bd2418f commit b2989aa
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 9 deletions.
4 changes: 4 additions & 0 deletions RELEASE_PROCESS.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
19 changes: 11 additions & 8 deletions iderare_pheno/converter.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import os
import gc
import os

import pandas as pd

# Declare the folder path for phenotype data source
Expand All @@ -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)
Expand Down Expand Up @@ -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()
gc.collect()
2 changes: 1 addition & 1 deletion scripts/personalize.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
)

Expand Down

0 comments on commit b2989aa

Please sign in to comment.