Skip to content

Commit

Permalink
add p-dt git submodule
Browse files Browse the repository at this point in the history
  • Loading branch information
vemonet committed Apr 11, 2024
1 parent a914f05 commit 2780e0c
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 6 deletions.
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "predict-drug-target"]
path = predict-drug-target
url = https://github.com/MaastrichtU-IDS/predict-drug-target.git
10 changes: 10 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,16 @@ To work with translator-openpredict locally:
hatch env create
```

> [!WARNING]
>
> For the project to take into account the code changes in dependencies you will need to activate the virtual environment yourself and install all packages that will changes in edit mode:
>
> ```bash
> pip install -e ./predict-drug-target .
> ```
>
>

### 🚀 Start the API

Start the API in development with docker, the API will automatically reload when you make changes in the code:
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ The data used by the models in this repository is versionned using `dvc` in the

Requirements: Python 3.8+ and `pip` installed

1. Clone the repository:
1. Clone the repository with submodule:

```bash
git clone https://github.com/MaastrichtU-IDS/translator-openpredict.git
git clone --recursive https://github.com/MaastrichtU-IDS/translator-openpredict.git
cd translator-openpredict
```

Expand Down
1 change: 1 addition & 0 deletions predict-drug-target
Submodule predict-drug-target added at ace228
8 changes: 4 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -35,18 +35,18 @@ dependencies = [
"scikit-learn",
"gensim", # For word2vec
"scipy ==1.10.1", # https://stackoverflow.com/questions/78279136/importerror-cannot-import-name-triu-from-scipy-linalg-gensim

"requests >=2.23.0",
"rdflib >=6.1.1",
"SPARQLWrapper >=2.0.0,<3.0.0",
"reasoner-pydantic >=4.1.4",

# "trapi-predict-kit[web,opentelemetry] >=0.2.3",
"trapi-predict-kit[web,opentelemetry] @ git+https://github.com/MaastrichtU-IDS/trapi-predict-kit.git",
# "trapi-predict-kit @ {root:uri}/trapi-predict-kit",
"predict-drug-target @ git+https://github.com/MaastrichtU-IDS/predict-drug-target.git",
# "predict-drug-target", # Load from workspace

# "pydantic >=1.9",
# "predict-drug-target @ git+https://github.com/MaastrichtU-IDS/predict-drug-target.git", # Uncomment for prod
"predict-drug-target", # Uncomment if you want to run locally in dev
# "predict-drug-target @ {root:uri}/predict-drug-target",
]

[project.optional-dependencies]
Expand Down

0 comments on commit 2780e0c

Please sign in to comment.