Skip to content

Commit

Permalink
Merge branch 'master' into insertion
Browse files Browse the repository at this point in the history
  • Loading branch information
a-r-j authored Dec 7, 2022
2 parents 707e6e5 + 4882b7a commit 98dbe17
Show file tree
Hide file tree
Showing 68 changed files with 52,466 additions and 52,391 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/changelog.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ jobs:
- uses: actions/checkout@v3
- uses: dangoslen/changelog-enforcer@v3
with:
skipLabels: 'skip-changelog'
skipLabels: 'skip-changelog'
43 changes: 43 additions & 0 deletions .github/workflows/minimal__install.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: minimal_install

on:
push:
paths-ignore:
- "README.md"
- "docs/**"

pull_request:
paths-ignore:
- "README.md"
- "docs/*"
- "CHANGELOG.md"
- "CONTRIBUTORS.md"
- "CONTRIBUTING.md"
- "imgs/"

jobs:
build_cpu:
runs-on: ubuntu-18.04
strategy:
matrix:
python-version: [3.7, 3.8, 3.9, 3.11]
steps:
- name: Checkout repository
uses: actions/checkout@v2
# See: https://github.com/marketplace/actions/setup-conda
- name: Setup anaconda
uses: s-weigand/setup-conda@v1
with:
python-version: ${{ matrix.python-version }}
conda-channels: "conda-forge"

- name: Install Graphein
run: pip install -e .
- name: Install Extras
run: pip install -r .requirements/extras.in
- name: Install Dev Dependencies
run: pip install -r .requirements/dev.in
- name: Run unit tests and generate coverage report
run: pytest .
- name: Test notebook execution
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"
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.3.0
rev: v4.4.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
Expand All @@ -19,4 +19,4 @@ repos:
- repo: https://github.com/pycqa/isort
rev: 5.10.1
hooks:
- id: isort
- id: isort
2 changes: 1 addition & 1 deletion .readthedocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@ python:
version: 3.8
install:
- method: setuptools
path: .
path: .
2 changes: 1 addition & 1 deletion .requirements/base.in
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ rich-click
seaborn
pyyaml>=5.1,<6.*
scikit-learn
scipy
scipy
tqdm
typing_extensions
wget
Expand Down
4 changes: 2 additions & 2 deletions .requirements/extras.in
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ biovec
propy3
pyaaisc
mpl_chord_diagram==0.3.2
rdkit-pypi
rdkit
selfies
smilite
smilite
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
#### Protein

* [Bugfix] - [#223](https://github.com/a-r-j/graphein/pull/220) Fix handling of insertions in protein graphs. Insertions are now given IDs like: `A:SER:12:A`. Contribution by @manonreau.
* [Bugfix] - [#226](https://github.com/a-r-j/graphein/pull/226) Catches failed AF2 structure downloads [#225](https://github.com/a-r-j/graphein/issues/225)
* [Feature] - [#229](https://github.com/a-r-j/graphein/pull/220) Adds support for filtering KNN edges based on self-loops and chain membership. Contribution by @anton-bushuiev.
* [Bugfix] - [#229](https://github.com/a-r-j/graphein/pull/220) Fixes bug in KNN edge computation. Contribution by @anton-bushuiev.
* [Bugfix] - [#220](https://github.com/a-r-j/graphein/pull/220) Fixes edge metadata conversion to PyG. Contribution by @manonreau.
Expand Down
2 changes: 1 addition & 1 deletion CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,4 +73,4 @@ available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.ht
[homepage]: https://www.contributor-covenant.org

For answers to common questions about this code of conduct, see
https://www.contributor-covenant.org/faq
https://www.contributor-covenant.org/faq
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ RUN export CUDA=$(python -c "import torch; print('cu'+torch.version.cuda.replace
&& pip install torch-spline-conv -f https://pytorch-geometric.com/whl/torch-${TORCH}+${CUDA}.html --no-cache-dir \
&& pip install torch-geometric --no-cache-dir

RUN pip install jupyter_contrib_nbextensions
RUN pip install jupyter_contrib_nbextensions
RUN jupyter nbextension enable --py widgetsnbextension

# Testing
Expand Down
2 changes: 1 addition & 1 deletion MANIFEST.in
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ include versioneer.py
include README.md
include .requirements/*
include graphein/protein/features/nodes/amino_acid_properties.csv
include graphein/protein/features/nodes/meiler_embeddings.csv
include graphein/protein/features/nodes/meiler_embeddings.csv
2 changes: 1 addition & 1 deletion datasets/proteins_ligands/parse_dataset.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -409,4 +409,4 @@
},
"nbformat": 4,
"nbformat_minor": 5
}
}
2 changes: 1 addition & 1 deletion datasets/proteins_metal/parse_dataset.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -311,4 +311,4 @@
},
"nbformat": 4,
"nbformat_minor": 5
}
}
2 changes: 1 addition & 1 deletion datasets/proteins_nucleic/parse_dataset.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -300,4 +300,4 @@
},
"nbformat": 4,
"nbformat_minor": 5
}
}
2 changes: 1 addition & 1 deletion datasets/proteins_nucleotides/parse_dataset.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -313,4 +313,4 @@
},
"nbformat": 4,
"nbformat_minor": 5
}
}
2 changes: 1 addition & 1 deletion datasets/pscdb/process_data.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -1894,4 +1894,4 @@
},
"nbformat": 4,
"nbformat_minor": 4
}
}
2 changes: 1 addition & 1 deletion docs/source/dataset_readme.rst
Original file line number Diff line number Diff line change
@@ -1 +1 @@
.. mdinclude:: ../../datasets/README.md
.. mdinclude:: ../../datasets/README.md
1 change: 0 additions & 1 deletion docs/source/datasets.rst
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,3 @@ Summaries
notebooks/pscdb_processing.nblink
notebooks/pscdb_baselines.nblink
datasets/ppisp

2 changes: 1 addition & 1 deletion docs/source/datasets/ppisp.rst
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ The dataset can be viewed here: `a-r-j/graphein/datasets/pscdb <https://www.gith
Reference
----------
[1] Min Zeng, Fuhao Zhang, Fang-Xiang Wu, Yaohang Li, Jianxin Wang, Min Li. Protein-protein interaction site prediction
through combining local and global features with deep neural networks. Bioinformatics. DOI:10.1093/bioinformatics/btz699
through combining local and global features with deep neural networks. Bioinformatics. DOI:10.1093/bioinformatics/btz699
2 changes: 1 addition & 1 deletion docs/source/datasets/pscdb.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ The dataset can be viewed here: `a-r-j/graphein/datasets/pscdb <https://www.gith
Reference
----------
[1] Amemiya, T., Koike, R., Kidera, A., & Ota, M. (2011). PSCDB: a database for protein structural change upon ligand
binding. Nucleic Acids Research, 40(D1), D554–D558. https://doi.org/10.1093/nar/gkr966
binding. Nucleic Acids Research, 40(D1), D554–D558. https://doi.org/10.1093/nar/gkr966
1 change: 0 additions & 1 deletion docs/source/getting_started/introduction.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,3 @@ Graphein
Graphein is a python library for constructing graph and surface-mesh representations of protein structures for computational analysis. The library interfaces with popular geometric deep learning libraries: `DGL <https://www.dgl.ai/>`_ (and `DGL-LifeSci <https://lifesci.dgl.ai/>`_), `PyTorch Geometric <https://pytorch-geometric.readthedocs.io/en/latest/>`_ and `PyTorch3D <https://pytorch3d.org/>`_.

As feature engineering is a vital step in a machine learning project, the library is designed to be highly flexible, allowing the user to parameterise the graph construction, scalable to facilitate working with large protein complexes,and containing useful pre-processing tools for preparing experimental structure files. Graphein is also designed to facilitate network-based and graph-theoretic analyses of protein structures in a high-throughput manner.

2 changes: 1 addition & 1 deletion docs/source/license.rst
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
SOFTWARE.
2 changes: 1 addition & 1 deletion docs/source/modules/graphein.ml.rst
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@ Dataset Splitting
Utils
-------
.. automodule:: graphein.ml.utils
:members:
:members:
2 changes: 1 addition & 1 deletion docs/source/modules/graphein.ppi.rst
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,4 @@ BioGrid
STRINGDB
^^^^^^^^^
.. automodule:: graphein.ppi.parse_stringdb
:members:
:members:
2 changes: 1 addition & 1 deletion docs/source/molecule_notebooks.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ Molecules
:glob:

notebooks/molecule_tutorial.nblink
notebooks/molecules_from_zinc_and_chembl.nblink
notebooks/molecules_from_zinc_and_chembl.nblink
Loading

0 comments on commit 98dbe17

Please sign in to comment.