Skip to content

Commit 34c816b

Browse files
authored
Merge branch 'master' into graph_plots
2 parents 37aaee8 + 0c5fdd0 commit 34c816b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+17765
-339
lines changed

.github/workflows/build.yaml

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ jobs:
2222
runs-on: ubuntu-latest
2323
strategy:
2424
matrix:
25-
python-version: [3.8, 3.9, "3.10"]
26-
torch: [1.13.0, 2.1.0, 2.2.0]
25+
python-version: [3.8, 3.9, "3.10", "3.11"]
26+
torch: [1.13.0, 2.1.0, 2.2.0, 2.3.0, 2.4.0]
2727
# https://github.com/marketplace/actions/setup-miniconda#use-a-default-shell
2828
defaults:
2929
run:
@@ -33,28 +33,33 @@ jobs:
3333
uses: actions/checkout@v3
3434
# See: https://github.com/marketplace/actions/setup-miniconda
3535
- name: Setup miniconda
36-
uses: conda-incubator/setup-miniconda@v2
36+
uses: conda-incubator/setup-miniconda@v3
3737
with:
3838
auto-update-conda: true
3939
miniforge-variant: Mambaforge
4040
channels: "conda-forge, salilab, pytorch, pyg"
4141
python-version: ${{ matrix.python-version }}
4242
use-mamba: true
43+
- name: Install setuptools
44+
run: pip install setuptools==69.5.1
4345
- name: Install Boost 1.7.3 (for DSSP)
4446
run: conda install -c anaconda libboost=1.73.0
4547
- name: Install DSSP
4648
run: conda install dssp -c salilab
4749
- name: Install mmseqs
4850
run: mamba install -c conda-forge -c bioconda mmseqs2
49-
- name: Install PyTorch
50-
#run: mamba install -c pytorch pytorch==${{matrix.torch}} cpuonly
51-
run: pip install torch==${{matrix.torch}}+cpu -f https://download.pytorch.org/whl/torch_stable.html
51+
- name: Install PyTorch (1.13.0)
52+
if: matrix.torch == '1.13.0'
53+
run: pip install torch==${{matrix.torch}}+cpu --extra-index-url https://download.pytorch.org/whl/cpu
54+
- name: Install PyTorch (2.0+)
55+
if: matrix.torch != '1.13.0'
56+
run: pip install torch==${{matrix.torch}} -f https://download.pytorch.org/whl/cpu
5257
- name: Install PyG
5358
#run: mamba install -c pyg pyg
5459
run: pip install torch_geometric
5560
- name: Install torch-cluster
5661
#run: mamba install pytorch-cluster -c pyg
57-
run: pip install pyg_lib torch_scatter torch_sparse torch_cluster torch_spline_conv -f https://data.pyg.org/whl/torch-${{matrix.torch}}+cpu.html
62+
run: pip install torch_scatter torch_sparse torch_cluster torch_spline_conv -f https://data.pyg.org/whl/torch-${{matrix.torch}}+cpu.html
5863
- name: Install BLAST
5964
run: sudo apt install ncbi-blast+
6065
- name: Install Graphein
@@ -68,4 +73,4 @@ jobs:
6873
- name: Run unit tests and generate coverage report
6974
run: pytest .
7075
- name: Test notebook execution
71-
run: pytest --nbval-lax notebooks/ --current-env --ignore-glob="notebooks/dataloader_tutorial.ipynb" --ignore-glob="notebooks/datasets_and_dataloaders.ipynb" --ignore-glob="notebooks/foldcomp.ipynb"
76+
run: pytest --nbval-lax notebooks/ --nbval-current-env --ignore-glob="notebooks/dataloader_tutorial.ipynb" --ignore-glob="notebooks/datasets_and_dataloaders.ipynb" --ignore-glob="notebooks/foldcomp.ipynb" --ignore-glob="notebooks/grn_tutorial.ipynb"

.github/workflows/code-tests-docker.yaml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
name: Code tests (docker)
22

3-
on: [pull_request]
3+
on:
4+
pull_request:
5+
paths-ignore:
6+
- "README.md"
7+
- "CHANGELOG.md"
8+
- "CONTRIBUTORS.md"
9+
- "CONTRIBUTING.md"
10+
- "docs/**"
411

512
jobs:
613
code-tests-docker:
@@ -38,7 +45,7 @@ jobs:
3845
- name: Build Docker container
3946
# if: steps.cache-environment.outputs.cache-hit != 'true'
4047
run: |
41-
docker-compose -f docker-compose.cpu.yml up -d --build
48+
docker compose -f docker-compose.cpu.yml up -d --build
4249
4350
- name: Install Graphein (Docker)
4451
run: |
@@ -50,7 +57,7 @@ jobs:
5057
5158
- name: Run example notebooks (Docker)
5259
run: |
53-
docker exec $(docker ps -q) bash -c 'grep -l smoke_test notebooks/*.ipynb | pytest --nbval-lax --current-env'
60+
docker exec $(docker ps -q) bash -c 'grep -l smoke_test notebooks/*.ipynb | pytest --nbval-lax --nbval-current-env'
5461
5562
- name: Upload code coverage
5663
run: |

.github/workflows/minimal__install.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
uses: actions/checkout@v3
3535
# See: https://github.com/marketplace/actions/setup-miniconda
3636
- name: Setup miniconda
37-
uses: conda-incubator/setup-miniconda@v2
37+
uses: conda-incubator/setup-miniconda@v3
3838
with:
3939
auto-update-conda: true
4040
miniforge-variant: Mambaforge
@@ -50,4 +50,4 @@ jobs:
5050
- name: Run unit tests and generate coverage report
5151
run: pytest . --ignore-glob="tests/protein/tensor" --ignore="tests/ml/test_conversion.py" --ignore="tests/ml/test_torch_geometric_dataset.py"
5252
- name: Test notebook execution
53-
run: pytest --nbval-lax notebooks/ --current-env --ignore-glob="notebooks/dataloader_tutorial.ipynb" --ignore-glob="notebooks/higher_order_graphs.ipynb" --ignore-glob="notebooks/protein_graph_analytics.ipynb" --ignore-glob="notebooks/subgraphing_tutorial.ipynb" --ignore-glob="notebooks/splitting_a_dataset.ipynb" --ignore-glob="notebooks/protein_tensors.ipynb" --ignore-glob="notebooks/datasets_and_dataloaders.ipynb" --ignore-glob="notebooks/foldcomp.ipynb" --ignore-glob="notebooks/creating_datasets_from_the_pdb.ipynb"
53+
run: pytest --nbval-lax notebooks/ --nbval-current-env --ignore-glob="notebooks/dataloader_tutorial.ipynb" --ignore-glob="notebooks/higher_order_graphs.ipynb" --ignore-glob="notebooks/protein_graph_analytics.ipynb" --ignore-glob="notebooks/subgraphing_tutorial.ipynb" --ignore-glob="notebooks/splitting_a_dataset.ipynb" --ignore-glob="notebooks/protein_tensors.ipynb" --ignore-glob="notebooks/datasets_and_dataloaders.ipynb" --ignore-glob="notebooks/foldcomp.ipynb" --ignore-glob="notebooks/creating_datasets_from_the_pdb.ipynb" --ignore-glob="notebooks/grn_tutorial.ipynb"

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@
22
# See https://pre-commit.com/hooks.html for more hooks
33
repos:
44
- repo: https://github.com/pre-commit/pre-commit-hooks
5-
rev: v4.5.0
5+
rev: v4.6.0
66
hooks:
77
- id: trailing-whitespace
88
- id: end-of-file-fixer
99
- id: check-yaml
1010
- id: check-added-large-files
1111
- repo: https://github.com/psf/black
12-
rev: 24.3.0
12+
rev: 24.8.0
1313
hooks:
1414
- id: black
1515
- repo: https://github.com/pre-commit/pre-commit-hooks

.requirements/base.in

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,16 @@
1-
pandas<2.0.0
2-
biopandas>=0.5.0.dev0
1+
pandas
2+
biopandas>=0.5.1
33
biopython
44
bioservices>=1.10.0
5+
cpdb-protein==0.2.0
6+
cython
57
deepdiff
68
loguru
79
looseversion
810
matplotlib>=3.4.3
911
multipledispatch
1012
networkx
11-
numpy<1.24.0
13+
numpy<2
1214
pandas
1315
plotly
1416
pydantic

0 commit comments

Comments
 (0)