gReLU 1.0.10__tar.gz → 1.2.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {grelu-1.0.10 → grelu-1.2.0}/.github/workflows/pypi-publish.yml +2 -1
- grelu-1.2.0/.github/workflows/pypi-test.yml +74 -0
- {grelu-1.0.10 → grelu-1.2.0}/.pre-commit-config.yaml +1 -1
- grelu-1.2.0/AUTHORS.md +19 -0
- {grelu-1.0.10 → grelu-1.2.0}/PKG-INFO +19 -2
- {grelu-1.0.10 → grelu-1.2.0}/README.md +17 -1
- {grelu-1.0.10 → grelu-1.2.0}/docs/conf.py +23 -2
- {grelu-1.0.10 → grelu-1.2.0}/docs/index.md +3 -1
- {grelu-1.0.10 → grelu-1.2.0}/docs/requirements.txt +1 -1
- grelu-1.2.0/docs/tutorials/1_inference.ipynb +2474 -0
- grelu-1.2.0/docs/tutorials/2_finetune.ipynb +2548 -0
- grelu-1.2.0/docs/tutorials/3_train.ipynb +1335 -0
- grelu-1.2.0/docs/tutorials/4_design.ipynb +3528 -0
- grelu-1.2.0/docs/tutorials/5_variant.ipynb +1626 -0
- grelu-1.2.0/docs/tutorials/6_model_zoo.ipynb +533 -0
- grelu-1.2.0/docs/tutorials/7_simulations.ipynb +2597 -0
- grelu-1.2.0/docs/tutorials/8_custom_models.ipynb +1313 -0
- {grelu-1.0.10 → grelu-1.2.0}/setup.cfg +5 -0
- {grelu-1.0.10 → grelu-1.2.0}/src/gReLU.egg-info/PKG-INFO +19 -2
- {grelu-1.0.10 → grelu-1.2.0}/src/gReLU.egg-info/SOURCES.txt +8 -0
- {grelu-1.0.10 → grelu-1.2.0}/src/gReLU.egg-info/requires.txt +1 -0
- grelu-1.2.0/src/gReLU.egg-info/scm_file_list.json +138 -0
- grelu-1.2.0/src/gReLU.egg-info/scm_version.json +8 -0
- {grelu-1.0.10 → grelu-1.2.0}/src/grelu/data/preprocess.py +3 -3
- grelu-1.2.0/src/grelu/data/utils.py +113 -0
- {grelu-1.0.10 → grelu-1.2.0}/src/grelu/design.py +1 -1
- {grelu-1.0.10 → grelu-1.2.0}/src/grelu/interpret/modisco.py +11 -2
- {grelu-1.0.10 → grelu-1.2.0}/src/grelu/interpret/motifs.py +97 -44
- {grelu-1.0.10 → grelu-1.2.0}/src/grelu/io/__init__.py +4 -2
- {grelu-1.0.10 → grelu-1.2.0}/src/grelu/io/genome.py +23 -6
- {grelu-1.0.10 → grelu-1.2.0}/src/grelu/lightning/__init__.py +194 -13
- {grelu-1.0.10 → grelu-1.2.0}/src/grelu/model/models.py +13 -15
- {grelu-1.0.10 → grelu-1.2.0}/src/grelu/model/trunks/explainn.py +1 -0
- grelu-1.2.0/src/grelu/resources/__init__.py +290 -0
- grelu-1.2.0/src/grelu/resources/utils.py +71 -0
- grelu-1.0.10/src/grelu/resources/__init__.py → grelu-1.2.0/src/grelu/resources/wandb.py +13 -70
- {grelu-1.0.10 → grelu-1.2.0}/src/grelu/sequence/mutate.py +4 -2
- {grelu-1.0.10 → grelu-1.2.0}/src/grelu/transforms/prediction_transforms.py +7 -7
- {grelu-1.0.10 → grelu-1.2.0}/src/grelu/variant.py +2 -0
- grelu-1.2.0/tests/files/test_genome.fa +52 -0
- grelu-1.2.0/tests/files/test_genome.fa.fai +2 -0
- grelu-1.2.0/tests/files/test_genome.fa.sizes +2 -0
- {grelu-1.0.10 → grelu-1.2.0}/tests/files/test_modisco.h5 +1 -1
- {grelu-1.0.10 → grelu-1.2.0}/tests/test_data_utils.py +43 -3
- {grelu-1.0.10 → grelu-1.2.0}/tests/test_interpret.py +67 -9
- {grelu-1.0.10 → grelu-1.2.0}/tests/test_io.py +57 -0
- {grelu-1.0.10 → grelu-1.2.0}/tests/test_lightning.py +62 -6
- {grelu-1.0.10 → grelu-1.2.0}/tests/test_models.py +0 -8
- {grelu-1.0.10 → grelu-1.2.0}/tests/test_preprocess.py +25 -3
- {grelu-1.0.10 → grelu-1.2.0}/tests/test_resources.py +17 -12
- grelu-1.2.0/tests/test_resources_hf.py +141 -0
- {grelu-1.0.10 → grelu-1.2.0}/tests/test_sequence.py +4 -0
- {grelu-1.0.10 → grelu-1.2.0}/tests/test_variant.py +7 -0
- {grelu-1.0.10 → grelu-1.2.0}/tox.ini +2 -0
- grelu-1.0.10/.github/workflows/pypi-test.yml +0 -40
- grelu-1.0.10/AUTHORS.md +0 -11
- grelu-1.0.10/docs/tutorials/1_inference.ipynb +0 -2568
- grelu-1.0.10/docs/tutorials/2_finetune.ipynb +0 -3298
- grelu-1.0.10/docs/tutorials/3_train.ipynb +0 -1308
- grelu-1.0.10/docs/tutorials/4_design.ipynb +0 -2749
- grelu-1.0.10/docs/tutorials/5_variant.ipynb +0 -2042
- grelu-1.0.10/docs/tutorials/6_model_zoo.ipynb +0 -542
- grelu-1.0.10/docs/tutorials/7_simulations.ipynb +0 -2506
- grelu-1.0.10/docs/tutorials/8_custom_models.ipynb +0 -1001
- grelu-1.0.10/src/grelu/data/utils.py +0 -94
- {grelu-1.0.10 → grelu-1.2.0}/.gitignore +0 -0
- {grelu-1.0.10 → grelu-1.2.0}/CHANGELOG.md +0 -0
- {grelu-1.0.10 → grelu-1.2.0}/CONTRIBUTING.md +0 -0
- {grelu-1.0.10 → grelu-1.2.0}/Dockerfile +0 -0
- {grelu-1.0.10 → grelu-1.2.0}/LICENSE.txt +0 -0
- {grelu-1.0.10 → grelu-1.2.0}/MANIFEST.in +0 -0
- {grelu-1.0.10 → grelu-1.2.0}/docs/Makefile +0 -0
- {grelu-1.0.10 → grelu-1.2.0}/docs/_static/switcher.json +0 -0
- {grelu-1.0.10 → grelu-1.2.0}/docs/authors.rst +0 -0
- {grelu-1.0.10 → grelu-1.2.0}/docs/changelog.rst +0 -0
- {grelu-1.0.10 → grelu-1.2.0}/docs/contributing.rst +0 -0
- {grelu-1.0.10 → grelu-1.2.0}/docs/license.rst +0 -0
- {grelu-1.0.10 → grelu-1.2.0}/docs/media/flowchart.jpg +0 -0
- {grelu-1.0.10 → grelu-1.2.0}/docs/readme.rst +0 -0
- {grelu-1.0.10 → grelu-1.2.0}/docs/tutorials/lineage.jpeg +0 -0
- {grelu-1.0.10 → grelu-1.2.0}/docs/tutorials/open-run.jpeg +0 -0
- {grelu-1.0.10 → grelu-1.2.0}/docs/tutorials/run-page.jpeg +0 -0
- {grelu-1.0.10 → grelu-1.2.0}/media/flowchart.jpg +0 -0
- {grelu-1.0.10 → grelu-1.2.0}/media/fork.jpg +0 -0
- {grelu-1.0.10 → grelu-1.2.0}/media/new_issue.jpg +0 -0
- {grelu-1.0.10 → grelu-1.2.0}/pyproject.toml +0 -0
- {grelu-1.0.10 → grelu-1.2.0}/setup.py +0 -0
- {grelu-1.0.10 → grelu-1.2.0}/src/gReLU.egg-info/dependency_links.txt +0 -0
- {grelu-1.0.10 → grelu-1.2.0}/src/gReLU.egg-info/not-zip-safe +0 -0
- {grelu-1.0.10 → grelu-1.2.0}/src/gReLU.egg-info/top_level.txt +0 -0
- {grelu-1.0.10 → grelu-1.2.0}/src/grelu/__init__.py +0 -0
- {grelu-1.0.10 → grelu-1.2.0}/src/grelu/data/__init__.py +0 -0
- {grelu-1.0.10 → grelu-1.2.0}/src/grelu/data/augment.py +0 -0
- {grelu-1.0.10 → grelu-1.2.0}/src/grelu/data/dataset.py +0 -0
- {grelu-1.0.10 → grelu-1.2.0}/src/grelu/interpret/__init__.py +0 -0
- {grelu-1.0.10 → grelu-1.2.0}/src/grelu/interpret/score.py +0 -0
- {grelu-1.0.10 → grelu-1.2.0}/src/grelu/interpret/simulate.py +0 -0
- {grelu-1.0.10 → grelu-1.2.0}/src/grelu/io/bed.py +0 -0
- {grelu-1.0.10 → grelu-1.2.0}/src/grelu/io/bigwig.py +0 -0
- {grelu-1.0.10 → grelu-1.2.0}/src/grelu/io/fasta.py +0 -0
- {grelu-1.0.10 → grelu-1.2.0}/src/grelu/io/motifs.py +0 -0
- {grelu-1.0.10 → grelu-1.2.0}/src/grelu/lightning/losses.py +0 -0
- {grelu-1.0.10 → grelu-1.2.0}/src/grelu/lightning/metrics.py +0 -0
- {grelu-1.0.10 → grelu-1.2.0}/src/grelu/model/__init__.py +0 -0
- {grelu-1.0.10 → grelu-1.2.0}/src/grelu/model/blocks.py +0 -0
- {grelu-1.0.10 → grelu-1.2.0}/src/grelu/model/heads.py +0 -0
- {grelu-1.0.10 → grelu-1.2.0}/src/grelu/model/layers.py +0 -0
- {grelu-1.0.10 → grelu-1.2.0}/src/grelu/model/position.py +0 -0
- {grelu-1.0.10 → grelu-1.2.0}/src/grelu/model/trunks/__init__.py +0 -0
- {grelu-1.0.10 → grelu-1.2.0}/src/grelu/model/trunks/borzoi.py +0 -0
- {grelu-1.0.10 → grelu-1.2.0}/src/grelu/model/trunks/enformer.py +0 -0
- {grelu-1.0.10 → grelu-1.2.0}/src/grelu/resources/blacklists/encode/hg19-blacklist.v2.bed +0 -0
- {grelu-1.0.10 → grelu-1.2.0}/src/grelu/resources/blacklists/encode/hg38-blacklist.v2.bed +0 -0
- {grelu-1.0.10 → grelu-1.2.0}/src/grelu/resources/blacklists/encode/mm10-blacklist.v2.bed +0 -0
- {grelu-1.0.10 → grelu-1.2.0}/src/grelu/resources/blacklists/mito_combined/hg19.full.blacklist.bed +0 -0
- {grelu-1.0.10 → grelu-1.2.0}/src/grelu/resources/blacklists/mito_combined/hg19_mm10_c.full.blacklist.bed +0 -0
- {grelu-1.0.10 → grelu-1.2.0}/src/grelu/resources/blacklists/mito_combined/hg38.full.blacklist.bed +0 -0
- {grelu-1.0.10 → grelu-1.2.0}/src/grelu/resources/blacklists/mito_combined/mm10.full.blacklist.bed +0 -0
- {grelu-1.0.10 → grelu-1.2.0}/src/grelu/resources/blacklists/mito_combined/mm9.full.blacklist.bed +0 -0
- {grelu-1.0.10 → grelu-1.2.0}/src/grelu/resources/meme/H12CORE_meme_format.meme +0 -0
- {grelu-1.0.10 → grelu-1.2.0}/src/grelu/resources/meme/H13CORE_meme_format.meme +0 -0
- {grelu-1.0.10 → grelu-1.2.0}/src/grelu/resources/meme/jaspar_2024_consensus.meme +0 -0
- {grelu-1.0.10 → grelu-1.2.0}/src/grelu/sequence/__init__.py +0 -0
- {grelu-1.0.10 → grelu-1.2.0}/src/grelu/sequence/format.py +0 -0
- {grelu-1.0.10 → grelu-1.2.0}/src/grelu/sequence/metrics.py +0 -0
- {grelu-1.0.10 → grelu-1.2.0}/src/grelu/sequence/utils.py +0 -0
- {grelu-1.0.10 → grelu-1.2.0}/src/grelu/transforms/__init__.py +0 -0
- {grelu-1.0.10 → grelu-1.2.0}/src/grelu/transforms/label_transforms.py +0 -0
- {grelu-1.0.10 → grelu-1.2.0}/src/grelu/transforms/seq_transforms.py +0 -0
- {grelu-1.0.10 → grelu-1.2.0}/src/grelu/utils.py +0 -0
- {grelu-1.0.10 → grelu-1.2.0}/src/grelu/visualize.py +0 -0
- {grelu-1.0.10 → grelu-1.2.0}/tests/__init__.py +0 -0
- {grelu-1.0.10 → grelu-1.2.0}/tests/conftest.py +0 -0
- {grelu-1.0.10 → grelu-1.2.0}/tests/files/test.bed +0 -0
- {grelu-1.0.10 → grelu-1.2.0}/tests/files/test.bw +0 -0
- {grelu-1.0.10 → grelu-1.2.0}/tests/files/test.fa +0 -0
- {grelu-1.0.10 → grelu-1.2.0}/tests/files/test.fa.bgz +0 -0
- {grelu-1.0.10 → grelu-1.2.0}/tests/files/test.fa.bgz.fai +0 -0
- {grelu-1.0.10 → grelu-1.2.0}/tests/files/test.fa.fai +0 -0
- {grelu-1.0.10 → grelu-1.2.0}/tests/files/test.fa.gz +0 -0
- {grelu-1.0.10 → grelu-1.2.0}/tests/files/test.fa.sizes +0 -0
- {grelu-1.0.10 → grelu-1.2.0}/tests/files/test.meme +0 -0
- {grelu-1.0.10 → grelu-1.2.0}/tests/files/test_variants.txt +0 -0
- {grelu-1.0.10 → grelu-1.2.0}/tests/files/tomtom/neg_patterns.pattern_0.tomtom.tsv +0 -0
- {grelu-1.0.10 → grelu-1.2.0}/tests/files/tomtom/neg_patterns.pattern_1.tomtom.tsv +0 -0
- {grelu-1.0.10 → grelu-1.2.0}/tests/test_augment.py +0 -0
- {grelu-1.0.10 → grelu-1.2.0}/tests/test_blocks.py +0 -0
- {grelu-1.0.10 → grelu-1.2.0}/tests/test_dataset.py +0 -0
- {grelu-1.0.10 → grelu-1.2.0}/tests/test_design.py +0 -0
- {grelu-1.0.10 → grelu-1.2.0}/tests/test_heads.py +0 -0
- {grelu-1.0.10 → grelu-1.2.0}/tests/test_layers.py +0 -0
- {grelu-1.0.10 → grelu-1.2.0}/tests/test_positional.py +0 -0
- {grelu-1.0.10 → grelu-1.2.0}/tests/test_transforms.py +0 -0
- {grelu-1.0.10 → grelu-1.2.0}/tests/test_utils.py +0 -0
|
@@ -11,7 +11,7 @@ on:
|
|
|
11
11
|
jobs:
|
|
12
12
|
docs:
|
|
13
13
|
name: Push Sphinx Pages
|
|
14
|
-
runs-on:
|
|
14
|
+
runs-on: Linux-x64
|
|
15
15
|
steps:
|
|
16
16
|
- uses: actions/checkout@v3
|
|
17
17
|
- uses: actions/setup-python@v3
|
|
@@ -21,6 +21,7 @@ jobs:
|
|
|
21
21
|
run: |
|
|
22
22
|
pip install --upgrade pip
|
|
23
23
|
pip install -r docs/requirements.txt
|
|
24
|
+
pip install -e .
|
|
24
25
|
- name: Sphinx build
|
|
25
26
|
run: |
|
|
26
27
|
sphinx-build docs _build
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
name: Test the library
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches:
|
|
6
|
+
- master # for legacy repos
|
|
7
|
+
- main
|
|
8
|
+
pull_request:
|
|
9
|
+
branches:
|
|
10
|
+
- master # for legacy repos
|
|
11
|
+
- main
|
|
12
|
+
workflow_dispatch: # Allow manually triggering the workflow
|
|
13
|
+
schedule:
|
|
14
|
+
# Run roughly every 15 days at 00:00 UTC
|
|
15
|
+
# (useful to check if updates on dependencies break the package)
|
|
16
|
+
- cron: "0 0 1,16 * *"
|
|
17
|
+
|
|
18
|
+
permissions:
|
|
19
|
+
contents: read
|
|
20
|
+
|
|
21
|
+
concurrency:
|
|
22
|
+
group: >-
|
|
23
|
+
${{ github.workflow }}-${{ github.ref_type }}-
|
|
24
|
+
${{ github.event.pull_request.number || github.sha }}
|
|
25
|
+
cancel-in-progress: true
|
|
26
|
+
|
|
27
|
+
jobs:
|
|
28
|
+
test:
|
|
29
|
+
strategy:
|
|
30
|
+
matrix:
|
|
31
|
+
python: ["3.10"] # , "3.11", "3.12", "3.13", "3.14"
|
|
32
|
+
platform:
|
|
33
|
+
- Linux-x64
|
|
34
|
+
# - ubuntu-latest
|
|
35
|
+
# - macos-latest
|
|
36
|
+
# - windows-latest
|
|
37
|
+
runs-on: ${{ matrix.platform }}
|
|
38
|
+
name: Python ${{ matrix.python }}, ${{ matrix.platform }}
|
|
39
|
+
steps:
|
|
40
|
+
- uses: actions/checkout@v4
|
|
41
|
+
|
|
42
|
+
- uses: actions/setup-python@v5
|
|
43
|
+
id: setup-python
|
|
44
|
+
with:
|
|
45
|
+
python-version: ${{ matrix.python }}
|
|
46
|
+
|
|
47
|
+
- name: Install dependencies
|
|
48
|
+
run: |
|
|
49
|
+
python -m pip install --upgrade pip
|
|
50
|
+
pip install tox coverage
|
|
51
|
+
|
|
52
|
+
- name: Run tests
|
|
53
|
+
run: >-
|
|
54
|
+
pipx run --python '${{ steps.setup-python.outputs.python-path }}'
|
|
55
|
+
tox
|
|
56
|
+
-- -rFEx --durations 10 --color yes --cov --cov-branch --cov-report=xml # pytest args
|
|
57
|
+
|
|
58
|
+
- name: Check for codecov token availability
|
|
59
|
+
id: codecov-check
|
|
60
|
+
shell: bash
|
|
61
|
+
run: |
|
|
62
|
+
if [ ${{ secrets.CODECOV_TOKEN }} != '' ]; then
|
|
63
|
+
echo "codecov=true" >> $GITHUB_OUTPUT;
|
|
64
|
+
else
|
|
65
|
+
echo "codecov=false" >> $GITHUB_OUTPUT;
|
|
66
|
+
fi
|
|
67
|
+
|
|
68
|
+
- name: Upload coverage reports to Codecov with GitHub Action
|
|
69
|
+
uses: codecov/codecov-action@v5
|
|
70
|
+
if: ${{ steps.codecov-check.outputs.codecov == 'true' }}
|
|
71
|
+
env:
|
|
72
|
+
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
|
|
73
|
+
slug: ${{ github.repository }}
|
|
74
|
+
flags: ${{ matrix.platform }} - py${{ matrix.python }}
|
grelu-1.2.0/AUTHORS.md
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# Contributors
|
|
2
|
+
|
|
3
|
+
* Avantika Lal <lal.avantika@gene.com>
|
|
4
|
+
* Gokcen Eraslan (@gokceneraslan)
|
|
5
|
+
* Surag Nair <nair.surag@gene.com>
|
|
6
|
+
* David Garfield (@dagarfield)
|
|
7
|
+
* Jayaram Kancherla (@jkanche)
|
|
8
|
+
* Ketrin Gjoni (@ketringjoni)
|
|
9
|
+
* M. Hasan Celik <celik.hasan@external.gene.com>
|
|
10
|
+
* Carlo de Donno <carlo.de_donno@roche.com>
|
|
11
|
+
* Johannes Hingerl (@johahi)
|
|
12
|
+
* Liudeng Zhang <zhangliudeng@gmail.com>
|
|
13
|
+
* Jake Dearborn <jakedearborn@gmail.com>
|
|
14
|
+
* Oriol Fornes
|
|
15
|
+
* Jorge Kageyama <kageyama.jorge@gene.com>
|
|
16
|
+
* Jacob Schreiber <jmschreiber91@gmail.com>
|
|
17
|
+
* Soumic <fahim.farhan@outlook.com>
|
|
18
|
+
* Buyan Khurelbaatar (@buyan-kh)
|
|
19
|
+
* Jaret Arnold (@musharna)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: gReLU
|
|
3
|
-
Version: 1.0
|
|
3
|
+
Version: 1.2.0
|
|
4
4
|
Summary: gReLU is a python library to train, interpret, and apply deep learning models to DNA sequences
|
|
5
5
|
Home-page: https://github.com/Genentech/gReLU
|
|
6
6
|
Author: lal.avantika,eraslan.gokcen
|
|
@@ -17,6 +17,7 @@ License-File: LICENSE.txt
|
|
|
17
17
|
Requires-Dist: importlib-metadata
|
|
18
18
|
Requires-Dist: importlib-resources
|
|
19
19
|
Requires-Dist: wandb>=0.14
|
|
20
|
+
Requires-Dist: huggingface_hub
|
|
20
21
|
Requires-Dist: numpy
|
|
21
22
|
Requires-Dist: pandas
|
|
22
23
|
Requires-Dist: seaborn
|
|
@@ -55,6 +56,20 @@ gReLU is a Python library to train, interpret, and apply deep learning models to
|
|
|
55
56
|
|
|
56
57
|

|
|
57
58
|
|
|
59
|
+
## Breaking Changes in v1.1.0
|
|
60
|
+
|
|
61
|
+
**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:
|
|
62
|
+
|
|
63
|
+
```python
|
|
64
|
+
# Old API (wandb) - still available at grelu.resources.wandb but will be removed in future
|
|
65
|
+
grelu.resources.load_model(project="human-atac-catlas", model_name="model")
|
|
66
|
+
|
|
67
|
+
# New API (HuggingFace)
|
|
68
|
+
grelu.resources.load_model(repo_id="Genentech/human-atac-catlas-model", filename="model.ckpt")
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
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.
|
|
72
|
+
|
|
58
73
|
## Installation
|
|
59
74
|
|
|
60
75
|
To install from source:
|
|
@@ -117,4 +132,6 @@ If you want to create ATAC-seq coverage bigWig files using `grelu.data.preproces
|
|
|
117
132
|
|
|
118
133
|
## Citation
|
|
119
134
|
|
|
120
|
-
Please cite our
|
|
135
|
+
Please cite our paper: https://www.nature.com/articles/s41592-025-02868-z
|
|
136
|
+
|
|
137
|
+
Lal, A., Gunsalus, L., Nair, S. et al. gReLU: a comprehensive framework for DNA sequence modeling and design. Nat Methods (2025). https://doi.org/10.1038/s41592-025-02868-z
|
|
@@ -6,6 +6,20 @@ gReLU is a Python library to train, interpret, and apply deep learning models to
|
|
|
6
6
|
|
|
7
7
|

|
|
8
8
|
|
|
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.
|
|
22
|
+
|
|
9
23
|
## Installation
|
|
10
24
|
|
|
11
25
|
To install from source:
|
|
@@ -68,4 +82,6 @@ If you want to create ATAC-seq coverage bigWig files using `grelu.data.preproces
|
|
|
68
82
|
|
|
69
83
|
## Citation
|
|
70
84
|
|
|
71
|
-
Please cite our
|
|
85
|
+
Please cite our paper: https://www.nature.com/articles/s41592-025-02868-z
|
|
86
|
+
|
|
87
|
+
Lal, A., Gunsalus, L., Nair, S. et al. gReLU: a comprehensive framework for DNA sequence modeling and design. Nat Methods (2025). https://doi.org/10.1038/s41592-025-02868-z
|
|
@@ -10,6 +10,15 @@
|
|
|
10
10
|
import os
|
|
11
11
|
import sys
|
|
12
12
|
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))
|
|
13
22
|
|
|
14
23
|
# -- General configuration ---------------------------------------------------
|
|
15
24
|
|
|
@@ -34,8 +43,20 @@ extensions = [
|
|
|
34
43
|
"autoapi.extension",
|
|
35
44
|
]
|
|
36
45
|
|
|
37
|
-
|
|
38
|
-
|
|
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*']
|
|
39
60
|
|
|
40
61
|
def linkcode_resolve(domain, info):
|
|
41
62
|
if domain != 'py':
|
|
@@ -7,13 +7,15 @@ This is the documentation of **gReLU**.
|
|
|
7
7
|
```{toctree}
|
|
8
8
|
:maxdepth: 1
|
|
9
9
|
Overview <readme>
|
|
10
|
-
Module reference <
|
|
10
|
+
Module reference <autoapi/index>
|
|
11
11
|
Tutorial: Inference <tutorials/1_inference>
|
|
12
12
|
Tutorial: Fine-tuning <tutorials/2_finetune>
|
|
13
13
|
Tutorial: Training <tutorials/3_train>
|
|
14
14
|
Tutorial: Design <tutorials/4_design>
|
|
15
15
|
Tutorial: Variant effect prediction <tutorials/5_variant>
|
|
16
16
|
Tutorial: Model zoo <tutorials/6_model_zoo>
|
|
17
|
+
Tutorial: Simulations <tutorials/7_simulations>
|
|
18
|
+
Tutorial: Custom Model <tutorials/8_custom_models>
|
|
17
19
|
contributing
|
|
18
20
|
license
|
|
19
21
|
authors
|