Skip to content

Commit

Permalink
FoldComp ML Datasets (#284)
Browse files Browse the repository at this point in the history
* add foldcomp dataset util

* clean up

* add import warnings

* add foldcomp dataset extra dependencies

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* exclude foldcomp from notebook tests. download too big :(

* update changelog

* add lightning datamodule wrapper

* add transform functionality

* docs: add new module to API reference

* update notebook

* fix: fix paths issue on setup

* add foldcomp dataset tutorial to docs

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* add stage param to setup

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
a-r-j and pre-commit-ci[bot] authored Mar 27, 2023
1 parent 82d3ba3 commit bf53b26
Showing 9 changed files with 142,113 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -80,4 +80,4 @@ jobs:
- 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/datasets_and_dataloaders.ipynb"
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"
2 changes: 1 addition & 1 deletion .github/workflows/minimal__install.yaml
Original file line number Diff line number Diff line change
@@ -47,4 +47,4 @@ jobs:
- name: Run unit tests and generate coverage report
run: pytest . --ignore-glob="tests/protein/tensor"
- 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" --ignore-glob="notebooks/protein_tensors.ipynb" --ignore-glob="notebooks/datasets_and_dataloaders.ipynb"
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"
2 changes: 2 additions & 0 deletions .requirements/extras.in
Original file line number Diff line number Diff line change
@@ -6,3 +6,5 @@ rdkit
selfies
smilite
einops
foldcomp
nest_asyncio
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
### 1.6.1 - UNRELEASED

#### New Features
* [FoldComp Dataset] - [#284](https://github.com/a-r-j/graphein/pull/284) - Create ML datasets from FoldComp databases.


### 1.6.0dev - UNRELEASED

#### New Features
1 change: 1 addition & 0 deletions docs/source/datasets.rst
Original file line number Diff line number Diff line change
@@ -12,6 +12,7 @@ Summaries
:glob:

notebooks/dataloader_tutorial.nblink
notebooks/foldcomp.nblink
datasets/pscdb
notebooks/pscdb_processing.nblink
notebooks/pscdb_baselines.nblink
3 changes: 3 additions & 0 deletions docs/source/modules/graphein.ml.rst
Original file line number Diff line number Diff line change
@@ -16,6 +16,9 @@ Datasets
.. automodule:: graphein.ml.datasets.torch_geometric_dataset
:members:

.. automodule:: graphein.ml.datasets.foldcomp_dataset
:members:

Dataset Splitting
-----------------
.. automodule:: graphein.ml.clustering
3 changes: 3 additions & 0 deletions docs/source/notebooks/foldcomp.nblink
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"path": "../../../notebooks/foldcomp.ipynb"
}
Loading

0 comments on commit bf53b26

Please sign in to comment.