Skip to content

Commit

Permalink
Merge pull request #611 from DeepRank/remove_conda_deps
Browse files Browse the repository at this point in the history
CI: restore PyPI installation
  • Loading branch information
gcroci2 authored Jun 20, 2024
2 parents e28dbce + 0ca24d2 commit 375053b
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 25 deletions.
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ RUN \
apt install -y gcc && \
## Create the environment and install the dependencies
mamba env create -f /home/deeprank2/deeprank2-docker.yml && \
## Activate the environment and install pip packages
/opt/conda/bin/conda run -n deeprank2 pip install -r /home/deeprank2/requirements-docker.txt && \
## Activate the environment automatically when entering the container
echo "source activate deeprank2" >~/.bashrc && \
# Get the data for running the tutorials
Expand Down
2 changes: 1 addition & 1 deletion deeprank2/features/secondary_structure.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ def _get_secstructure(pdb_path: str) -> dict:

try:
dssp = DSSP(model, pdb_path, dssp="mkdssp")
except Exception as e: # noqa: BLE001, namely: # improperly formatted pdb files raise: `Exception: DSSP failed to produce an output`
except Exception as e:
pdb_format_link = "https://www.wwpdb.org/documentation/file-format-content/format33/sect1.html#Order"
msg = (
f"DSSP has raised the following exception: {e}.\n\t"
Expand Down
2 changes: 0 additions & 2 deletions env/deeprank2-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,5 +41,3 @@ dependencies:
- ruff>=0.3.0
- dill>=0.3.8
- pyarrow>=15.0.0
- pip:
- --requirement requirements-docker.txt
22 changes: 0 additions & 22 deletions env/deeprank2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,9 @@ channels:
- conda-forge
- sbl
dependencies:
- python==3.10
- pip>=23.3
- notebook>=7.0.6
- sbl::libcifpp>=5.1.0
- sbl::dssp>=4.2.2.1
- msms>=2.6.1
- markov_clustering>=0.0.6
- pytorch=2.1.1
- torchvision>=0.16.1
- torchaudio>=2.1.1
Expand All @@ -23,21 +19,3 @@ dependencies:
- pytorch-sparse>=0.6.18
- pytorch-cluster>=1.6.3
- pytorch-spline-conv>=1.2.2
- tables>=3.8.0
- numpy>=1.21.5
- scipy>=1.13.1
- h5py>=3.6.0
- networkx>=2.6.3
- matplotlib>=3.5.1
- scikit-learn>=1.0.2
- chart-studio>=1.1.0
- biopython>=1.81
- pdb2sql>=0.5.1
- python-louvain>=0.16
- tqdm>=4.63.0
- freesasa>=2.1.0
- tensorboard>=0.9.0
- protobuf>=3.20.1
- ruff>=0.3.0
- dill>=0.3.8
- pyarrow>=15.0.0
22 changes: 22 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,27 @@ classifiers = [
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
]
dependencies = [
"notebook >= 7.0.6",
"markov-clustering >= 0.0.6.dev0",
"tensorboard>=0.9.0",
"protobuf >= 3.20.1",
"dill >= 0.3.8",
"pyarrow >= 15.0.0",
"tables >= 3.8.0",
"numpy >= 1.25, < 2.0",
"scipy >= 1.13.1",
"h5py >= 3.6.0",
"networkx >= 2.6.3",
"matplotlib >= 3.5.1",
"scikit-learn >= 1.0.2",
"chart-studio >= 1.1.0",
"pdb2sql >= 0.5.1",
"python-louvain >= 0.16",
"tqdm >= 4.63.0",
"freesasa >= 2.1.0",
"biopython >= 1.81"
]

[project.optional-dependencies]
# development dependency groups
Expand All @@ -45,6 +66,7 @@ test = [
"pytest-cov",
"pytest-runner",
"coveralls",
"ruff>=0.3.0"
]
publishing = ["build", "twine", "wheel"]
notebooks = ["nbmake"]
Expand Down

0 comments on commit 375053b

Please sign in to comment.