Skip to content

Commit

Permalink
105 reusableclassses linkml (#107)
Browse files Browse the repository at this point in the history
* updated

* update

* update

* dwa

* fix

* upddates

* updated cli

* added label fetching

* updates

* update

* added bioportal .env file and updated docs

* update

* updated fetching displays from oaklib and bioportal

* implemented display fetching

* updated api config and added add_prefix function

* added prefix code fetch

* bug fix

* updated cli download records command and schema

* updated downloard records functin

* typo

* updated licsense

* fixed schema validation

* fixed schema

* deleted_api_super token test

* fix

* update

* fix

* fix

* fix

* edit workflow

* fix

* fix
  • Loading branch information
aslgraefe authored Jan 6, 2025
1 parent 19851c1 commit 888c5f9
Show file tree
Hide file tree
Showing 39 changed files with 1,179 additions and 616 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/cli_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,3 +47,7 @@ jobs:
with:
name: cli-status
path: rarelink/tests/cli/status.json


env:
BIOPORTAL_API_TOKEN: ${{ secrets.BIOPORTAL_API_TOKEN }}
13 changes: 10 additions & 3 deletions .github/workflows/python_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ jobs:
- name: Checkout code
uses: actions/checkout@v3
with:
submodules: true # This ensures submodules are checked out - name: Checkout code
submodules: true

- name: Set up Python
uses: actions/setup-python@v4
with:
Expand All @@ -29,7 +29,14 @@ jobs:
python3 -m pip install --upgrade pip
python3 -m pip install --editable .[test,docs]
python3 -m pip install --editable ./submodules/phenopacket_mapper # Install the submodule package
- name: Configure BioPortal API Key for Oaklib
run: |
mkdir -p ~/.config/ontology-access-kit
echo "${{ secrets.BIOPORTAL_API_TOKEN }}" > ~/.config/ontology-access-kit/bioportal-apikey.txt
- name: Run tests with pytest
env:
BIOPORTAL_API_TOKEN: ${{ secrets.BIOPORTAL_API_TOKEN }}
run: |
pytest
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,11 @@ Public/

# DS Store
.DS_Store/
.DS_Store?
.DS_Store
.src/.DS_Store?
.src/rarelink/.DS_Store?
.src/rarelink/utils/.DS_Store?

# FHIR SUSHI
echo "/fsh-generated" >> .gitignore
66 changes: 55 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@
Rare Disease Interoperability Framework in REDCap linking international
registries, FHIR and Phenopackets.

> ⚠️ **Note:** RareLink v2.0.0.dev0 is currently under development, and many things are subject to change. Please reach out before implementing or using the software to ensure you have the latest updates and guidance.
> ⚠️ **Note:** RareLink v2.0.0.dev0 is currently under development, and many
things are subject to change. Please reach out before implementing or using the
software to ensure you have the latest updates and guidance.


[![Python CI](https://github.com/BIH-CEI/rarelink/actions/workflows/python_ci.yml/badge.svg)](https://github.com/BIH-CEI/rarelink/actions/workflows/python_ci.yml)
Expand Down Expand Up @@ -91,23 +93,63 @@ running REDCap server. For more information, visit the official REDCap site:
If your institution already provides a REDCap instance, proceed to the RareLink
Documentation on [Setting Up a REDCap Project](https://rarelink.readthedocs.io/en/latest/3_installation/3_2_setup_redcap_project.html#).


## Installation

RareLink can be set up using various Python project management approaches. One
common method is to use a virtual environment. Below is an example where the
virtual environment is named `rarelink-venv`, but you can name it as you prefer:
RareLink can be set up using various Python project management approaches. One
common method is to use a virtual environment. Below is an example where the
virtual environment is named `rarelink-venv`, but you can name it as you prefer:

```bash
python3 -m venv rarelink-venv
source rarelink-venv/bin/activate
pip install --upgrade pip
```

Next, clone the RareLink repository, navigate to its root directory, and install RareLink using:
Next, clone the RareLink repository, navigate to its root directory, and
install RareLink using:

```bash
git clone https://github.com/BIH-CEI/rarelink.git
cd rarelink
pip install .
```

If you want to install development dependencies (e.g., `pytest`), use:

```bash
pip install .[dev]
```

### Setting Up the `.env` File

Create a `.env` file in the project root directory to store your BioPortal API
token securely. Add the following line:

```plaintext
BIOPORTAL_API_TOKEN=your_api_token_here
```

> You can create your free BioPortal account here: [https://bioportal.bioontology.org/](https://bioportal.bioontology.org/)
Then replace `your_api_token_here` with your actual BioPortal API token.

### Running Tests

To ensure everything is set up correctly, run the test suite using `pytest`:

```bash
pip install rarelink
pytest
```

---

### Notes

- Ensure that your `.env` file is not committed to version control by adding
it to `.gitignore`.
- If you encounter issues, verify you are using the correct Python version and
have installed all dependencies properly.

### Framework setup

To ensure you have the latest version of RareLink installed and to check the current version, run:
Expand Down Expand Up @@ -196,7 +238,7 @@ use of REDCap for rare disease research and care.

## License

This project is licensed under the terms of the [MIT License](https://github.com/BIH-CEI/RareLink/blob/develop/LICENSE)
This project is licensed under the terms of the [BSD 3-Clause License](https://github.com/BIH-CEI/RareLink/blob/develop/LICENSE)

## Acknowledgements

Expand All @@ -208,7 +250,9 @@ We would like to extend our thanks to everyone in the last three years for their
- Authors:
- [Adam SL Graefe](https://github.com/aslgraefe)
- [Filip Rehburg](https://github.com/frehburg)
- Daniel Danis, PhD
- Prof. Peter N. Robinson
- Prof. Sylvia Thun
- Prof. Oya Beyan
- [Samer Alkarkoukly](https://github.com/alkarkoukly)
- [Daniel R Korn](https://github.com/DnlRKorn)
- [Daniel Danis](https://github.com/ielis)
- [Peter N. Robinson](https://github.com/pnrobinson)
- Sylvia Thun
- [Oya Beyan](https://github.com/oyadenizbeyan)
Loading

0 comments on commit 888c5f9

Please sign in to comment.