Skip to content

Commit 66330c9

Browse files
authored
Merge branch 'main' into lr-scheduler
2 parents a0a8934 + b02002e commit 66330c9

31 files changed

Lines changed: 4368 additions & 3616 deletions

.github/workflows/pypi-publish.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ jobs:
2121
run: |
2222
pip install --upgrade pip
2323
pip install -r docs/requirements.txt
24+
pip install -e .
2425
- name: Sphinx build
2526
run: |
2627
sphinx-build docs _build

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ exclude: '^docs/conf.py'
22

33
repos:
44
- repo: https://github.com/pre-commit/pre-commit-hooks
5-
rev: v5.0.0
5+
rev: v6.0.0
66
hooks:
77
- id: trailing-whitespace
88
- id: check-added-large-files

README.md

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,19 @@ gReLU is a Python library to train, interpret, and apply deep learning models to
66

77
![Flowchart](media/flowchart.jpg)
88

9-
## Notices
10-
[02-23-2026] Due to deprecated anonymous downloads from wandb (https://github.com/wandb/wandb/pull/10909) the gReLU model zoo has been migrated to huggingface (https://huggingface.co/collections/Genentech/grelu-model-zoo). In the next update, all functions to download models and datasets will connect to huggingface instead of wandb.
9+
## Breaking Changes in v1.1.0
10+
11+
**Model Zoo Migration:** The gReLU model zoo has moved from Weights & Biases to [HuggingFace](https://huggingface.co/collections/Genentech/grelu-model-zoo). The `grelu.resources` API has changed:
12+
13+
```python
14+
# Old API (wandb) - still available at grelu.resources.wandb but will be removed in future
15+
grelu.resources.load_model(project="human-atac-catlas", model_name="model")
16+
17+
# New API (HuggingFace)
18+
grelu.resources.load_model(repo_id="Genentech/human-atac-catlas-model", filename="model.ckpt")
19+
```
20+
21+
Browse the zoo at https://huggingface.co/collections/Genentech/grelu-model-zoo and see the [Model Zoo Tutorial](docs/tutorials/6_model_zoo.ipynb) for updated usage.
1122

1223
## Installation
1324

docs/conf.py

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,15 @@
1010
import os
1111
import sys
1212
import shutil
13+
from pathlib import Path
14+
15+
# -- Path setup --------------------------------------------------------------
16+
# Point to the absolute path of the 'src' directory
17+
docs_dir = Path(__file__).parent.resolve()
18+
root_dir = docs_dir.parent
19+
src_dir = root_dir / "src"
20+
21+
sys.path.insert(0, str(src_dir))
1322

1423
# -- General configuration ---------------------------------------------------
1524

@@ -34,8 +43,20 @@
3443
"autoapi.extension",
3544
]
3645

37-
autoapi_dirs = ['../src']
38-
autoapi_ignore = ['*.ipynb_checkpoints*/*.py']
46+
# -- AutoAPI configuration ---------------------------------------------------
47+
autoapi_type = 'python'
48+
autoapi_dirs = [os.path.abspath('../src/grelu')] # Point directly to the package folder
49+
autoapi_root = 'autoapi'
50+
autoapi_python_use_implicit_namespaces = True
51+
autoapi_options = [
52+
'members',
53+
'undoc-members',
54+
'show-inheritance',
55+
'show-module-summary',
56+
'special-members',
57+
'imported-members',
58+
]
59+
autoapi_ignore = ['*ipynb_checkpoints*']
3960

4061
def linkcode_resolve(domain, info):
4162
if domain != 'py':

docs/index.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,15 @@ This is the documentation of **gReLU**.
77
```{toctree}
88
:maxdepth: 1
99
Overview <readme>
10-
Module reference <api/modules>
10+
Module reference <autoapi/index>
1111
Tutorial: Inference <tutorials/1_inference>
1212
Tutorial: Fine-tuning <tutorials/2_finetune>
1313
Tutorial: Training <tutorials/3_train>
1414
Tutorial: Design <tutorials/4_design>
1515
Tutorial: Variant effect prediction <tutorials/5_variant>
1616
Tutorial: Model zoo <tutorials/6_model_zoo>
17+
Tutorial: Simulations <tutorials/7_simulations>
18+
Tutorial: Custom Model <tutorials/8_custom_models>
1719
contributing
1820
license
1921
authors

docs/tutorials/1_inference.ipynb

Lines changed: 137 additions & 231 deletions
Large diffs are not rendered by default.

docs/tutorials/2_finetune.ipynb

Lines changed: 778 additions & 1528 deletions
Large diffs are not rendered by default.

docs/tutorials/3_train.ipynb

Lines changed: 222 additions & 195 deletions
Large diffs are not rendered by default.

docs/tutorials/4_design.ipynb

Lines changed: 1072 additions & 495 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)