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.
Files changed (154) hide show
  1. {grelu-1.0.10 → grelu-1.2.0}/.github/workflows/pypi-publish.yml +2 -1
  2. grelu-1.2.0/.github/workflows/pypi-test.yml +74 -0
  3. {grelu-1.0.10 → grelu-1.2.0}/.pre-commit-config.yaml +1 -1
  4. grelu-1.2.0/AUTHORS.md +19 -0
  5. {grelu-1.0.10 → grelu-1.2.0}/PKG-INFO +19 -2
  6. {grelu-1.0.10 → grelu-1.2.0}/README.md +17 -1
  7. {grelu-1.0.10 → grelu-1.2.0}/docs/conf.py +23 -2
  8. {grelu-1.0.10 → grelu-1.2.0}/docs/index.md +3 -1
  9. {grelu-1.0.10 → grelu-1.2.0}/docs/requirements.txt +1 -1
  10. grelu-1.2.0/docs/tutorials/1_inference.ipynb +2474 -0
  11. grelu-1.2.0/docs/tutorials/2_finetune.ipynb +2548 -0
  12. grelu-1.2.0/docs/tutorials/3_train.ipynb +1335 -0
  13. grelu-1.2.0/docs/tutorials/4_design.ipynb +3528 -0
  14. grelu-1.2.0/docs/tutorials/5_variant.ipynb +1626 -0
  15. grelu-1.2.0/docs/tutorials/6_model_zoo.ipynb +533 -0
  16. grelu-1.2.0/docs/tutorials/7_simulations.ipynb +2597 -0
  17. grelu-1.2.0/docs/tutorials/8_custom_models.ipynb +1313 -0
  18. {grelu-1.0.10 → grelu-1.2.0}/setup.cfg +5 -0
  19. {grelu-1.0.10 → grelu-1.2.0}/src/gReLU.egg-info/PKG-INFO +19 -2
  20. {grelu-1.0.10 → grelu-1.2.0}/src/gReLU.egg-info/SOURCES.txt +8 -0
  21. {grelu-1.0.10 → grelu-1.2.0}/src/gReLU.egg-info/requires.txt +1 -0
  22. grelu-1.2.0/src/gReLU.egg-info/scm_file_list.json +138 -0
  23. grelu-1.2.0/src/gReLU.egg-info/scm_version.json +8 -0
  24. {grelu-1.0.10 → grelu-1.2.0}/src/grelu/data/preprocess.py +3 -3
  25. grelu-1.2.0/src/grelu/data/utils.py +113 -0
  26. {grelu-1.0.10 → grelu-1.2.0}/src/grelu/design.py +1 -1
  27. {grelu-1.0.10 → grelu-1.2.0}/src/grelu/interpret/modisco.py +11 -2
  28. {grelu-1.0.10 → grelu-1.2.0}/src/grelu/interpret/motifs.py +97 -44
  29. {grelu-1.0.10 → grelu-1.2.0}/src/grelu/io/__init__.py +4 -2
  30. {grelu-1.0.10 → grelu-1.2.0}/src/grelu/io/genome.py +23 -6
  31. {grelu-1.0.10 → grelu-1.2.0}/src/grelu/lightning/__init__.py +194 -13
  32. {grelu-1.0.10 → grelu-1.2.0}/src/grelu/model/models.py +13 -15
  33. {grelu-1.0.10 → grelu-1.2.0}/src/grelu/model/trunks/explainn.py +1 -0
  34. grelu-1.2.0/src/grelu/resources/__init__.py +290 -0
  35. grelu-1.2.0/src/grelu/resources/utils.py +71 -0
  36. grelu-1.0.10/src/grelu/resources/__init__.py → grelu-1.2.0/src/grelu/resources/wandb.py +13 -70
  37. {grelu-1.0.10 → grelu-1.2.0}/src/grelu/sequence/mutate.py +4 -2
  38. {grelu-1.0.10 → grelu-1.2.0}/src/grelu/transforms/prediction_transforms.py +7 -7
  39. {grelu-1.0.10 → grelu-1.2.0}/src/grelu/variant.py +2 -0
  40. grelu-1.2.0/tests/files/test_genome.fa +52 -0
  41. grelu-1.2.0/tests/files/test_genome.fa.fai +2 -0
  42. grelu-1.2.0/tests/files/test_genome.fa.sizes +2 -0
  43. {grelu-1.0.10 → grelu-1.2.0}/tests/files/test_modisco.h5 +1 -1
  44. {grelu-1.0.10 → grelu-1.2.0}/tests/test_data_utils.py +43 -3
  45. {grelu-1.0.10 → grelu-1.2.0}/tests/test_interpret.py +67 -9
  46. {grelu-1.0.10 → grelu-1.2.0}/tests/test_io.py +57 -0
  47. {grelu-1.0.10 → grelu-1.2.0}/tests/test_lightning.py +62 -6
  48. {grelu-1.0.10 → grelu-1.2.0}/tests/test_models.py +0 -8
  49. {grelu-1.0.10 → grelu-1.2.0}/tests/test_preprocess.py +25 -3
  50. {grelu-1.0.10 → grelu-1.2.0}/tests/test_resources.py +17 -12
  51. grelu-1.2.0/tests/test_resources_hf.py +141 -0
  52. {grelu-1.0.10 → grelu-1.2.0}/tests/test_sequence.py +4 -0
  53. {grelu-1.0.10 → grelu-1.2.0}/tests/test_variant.py +7 -0
  54. {grelu-1.0.10 → grelu-1.2.0}/tox.ini +2 -0
  55. grelu-1.0.10/.github/workflows/pypi-test.yml +0 -40
  56. grelu-1.0.10/AUTHORS.md +0 -11
  57. grelu-1.0.10/docs/tutorials/1_inference.ipynb +0 -2568
  58. grelu-1.0.10/docs/tutorials/2_finetune.ipynb +0 -3298
  59. grelu-1.0.10/docs/tutorials/3_train.ipynb +0 -1308
  60. grelu-1.0.10/docs/tutorials/4_design.ipynb +0 -2749
  61. grelu-1.0.10/docs/tutorials/5_variant.ipynb +0 -2042
  62. grelu-1.0.10/docs/tutorials/6_model_zoo.ipynb +0 -542
  63. grelu-1.0.10/docs/tutorials/7_simulations.ipynb +0 -2506
  64. grelu-1.0.10/docs/tutorials/8_custom_models.ipynb +0 -1001
  65. grelu-1.0.10/src/grelu/data/utils.py +0 -94
  66. {grelu-1.0.10 → grelu-1.2.0}/.gitignore +0 -0
  67. {grelu-1.0.10 → grelu-1.2.0}/CHANGELOG.md +0 -0
  68. {grelu-1.0.10 → grelu-1.2.0}/CONTRIBUTING.md +0 -0
  69. {grelu-1.0.10 → grelu-1.2.0}/Dockerfile +0 -0
  70. {grelu-1.0.10 → grelu-1.2.0}/LICENSE.txt +0 -0
  71. {grelu-1.0.10 → grelu-1.2.0}/MANIFEST.in +0 -0
  72. {grelu-1.0.10 → grelu-1.2.0}/docs/Makefile +0 -0
  73. {grelu-1.0.10 → grelu-1.2.0}/docs/_static/switcher.json +0 -0
  74. {grelu-1.0.10 → grelu-1.2.0}/docs/authors.rst +0 -0
  75. {grelu-1.0.10 → grelu-1.2.0}/docs/changelog.rst +0 -0
  76. {grelu-1.0.10 → grelu-1.2.0}/docs/contributing.rst +0 -0
  77. {grelu-1.0.10 → grelu-1.2.0}/docs/license.rst +0 -0
  78. {grelu-1.0.10 → grelu-1.2.0}/docs/media/flowchart.jpg +0 -0
  79. {grelu-1.0.10 → grelu-1.2.0}/docs/readme.rst +0 -0
  80. {grelu-1.0.10 → grelu-1.2.0}/docs/tutorials/lineage.jpeg +0 -0
  81. {grelu-1.0.10 → grelu-1.2.0}/docs/tutorials/open-run.jpeg +0 -0
  82. {grelu-1.0.10 → grelu-1.2.0}/docs/tutorials/run-page.jpeg +0 -0
  83. {grelu-1.0.10 → grelu-1.2.0}/media/flowchart.jpg +0 -0
  84. {grelu-1.0.10 → grelu-1.2.0}/media/fork.jpg +0 -0
  85. {grelu-1.0.10 → grelu-1.2.0}/media/new_issue.jpg +0 -0
  86. {grelu-1.0.10 → grelu-1.2.0}/pyproject.toml +0 -0
  87. {grelu-1.0.10 → grelu-1.2.0}/setup.py +0 -0
  88. {grelu-1.0.10 → grelu-1.2.0}/src/gReLU.egg-info/dependency_links.txt +0 -0
  89. {grelu-1.0.10 → grelu-1.2.0}/src/gReLU.egg-info/not-zip-safe +0 -0
  90. {grelu-1.0.10 → grelu-1.2.0}/src/gReLU.egg-info/top_level.txt +0 -0
  91. {grelu-1.0.10 → grelu-1.2.0}/src/grelu/__init__.py +0 -0
  92. {grelu-1.0.10 → grelu-1.2.0}/src/grelu/data/__init__.py +0 -0
  93. {grelu-1.0.10 → grelu-1.2.0}/src/grelu/data/augment.py +0 -0
  94. {grelu-1.0.10 → grelu-1.2.0}/src/grelu/data/dataset.py +0 -0
  95. {grelu-1.0.10 → grelu-1.2.0}/src/grelu/interpret/__init__.py +0 -0
  96. {grelu-1.0.10 → grelu-1.2.0}/src/grelu/interpret/score.py +0 -0
  97. {grelu-1.0.10 → grelu-1.2.0}/src/grelu/interpret/simulate.py +0 -0
  98. {grelu-1.0.10 → grelu-1.2.0}/src/grelu/io/bed.py +0 -0
  99. {grelu-1.0.10 → grelu-1.2.0}/src/grelu/io/bigwig.py +0 -0
  100. {grelu-1.0.10 → grelu-1.2.0}/src/grelu/io/fasta.py +0 -0
  101. {grelu-1.0.10 → grelu-1.2.0}/src/grelu/io/motifs.py +0 -0
  102. {grelu-1.0.10 → grelu-1.2.0}/src/grelu/lightning/losses.py +0 -0
  103. {grelu-1.0.10 → grelu-1.2.0}/src/grelu/lightning/metrics.py +0 -0
  104. {grelu-1.0.10 → grelu-1.2.0}/src/grelu/model/__init__.py +0 -0
  105. {grelu-1.0.10 → grelu-1.2.0}/src/grelu/model/blocks.py +0 -0
  106. {grelu-1.0.10 → grelu-1.2.0}/src/grelu/model/heads.py +0 -0
  107. {grelu-1.0.10 → grelu-1.2.0}/src/grelu/model/layers.py +0 -0
  108. {grelu-1.0.10 → grelu-1.2.0}/src/grelu/model/position.py +0 -0
  109. {grelu-1.0.10 → grelu-1.2.0}/src/grelu/model/trunks/__init__.py +0 -0
  110. {grelu-1.0.10 → grelu-1.2.0}/src/grelu/model/trunks/borzoi.py +0 -0
  111. {grelu-1.0.10 → grelu-1.2.0}/src/grelu/model/trunks/enformer.py +0 -0
  112. {grelu-1.0.10 → grelu-1.2.0}/src/grelu/resources/blacklists/encode/hg19-blacklist.v2.bed +0 -0
  113. {grelu-1.0.10 → grelu-1.2.0}/src/grelu/resources/blacklists/encode/hg38-blacklist.v2.bed +0 -0
  114. {grelu-1.0.10 → grelu-1.2.0}/src/grelu/resources/blacklists/encode/mm10-blacklist.v2.bed +0 -0
  115. {grelu-1.0.10 → grelu-1.2.0}/src/grelu/resources/blacklists/mito_combined/hg19.full.blacklist.bed +0 -0
  116. {grelu-1.0.10 → grelu-1.2.0}/src/grelu/resources/blacklists/mito_combined/hg19_mm10_c.full.blacklist.bed +0 -0
  117. {grelu-1.0.10 → grelu-1.2.0}/src/grelu/resources/blacklists/mito_combined/hg38.full.blacklist.bed +0 -0
  118. {grelu-1.0.10 → grelu-1.2.0}/src/grelu/resources/blacklists/mito_combined/mm10.full.blacklist.bed +0 -0
  119. {grelu-1.0.10 → grelu-1.2.0}/src/grelu/resources/blacklists/mito_combined/mm9.full.blacklist.bed +0 -0
  120. {grelu-1.0.10 → grelu-1.2.0}/src/grelu/resources/meme/H12CORE_meme_format.meme +0 -0
  121. {grelu-1.0.10 → grelu-1.2.0}/src/grelu/resources/meme/H13CORE_meme_format.meme +0 -0
  122. {grelu-1.0.10 → grelu-1.2.0}/src/grelu/resources/meme/jaspar_2024_consensus.meme +0 -0
  123. {grelu-1.0.10 → grelu-1.2.0}/src/grelu/sequence/__init__.py +0 -0
  124. {grelu-1.0.10 → grelu-1.2.0}/src/grelu/sequence/format.py +0 -0
  125. {grelu-1.0.10 → grelu-1.2.0}/src/grelu/sequence/metrics.py +0 -0
  126. {grelu-1.0.10 → grelu-1.2.0}/src/grelu/sequence/utils.py +0 -0
  127. {grelu-1.0.10 → grelu-1.2.0}/src/grelu/transforms/__init__.py +0 -0
  128. {grelu-1.0.10 → grelu-1.2.0}/src/grelu/transforms/label_transforms.py +0 -0
  129. {grelu-1.0.10 → grelu-1.2.0}/src/grelu/transforms/seq_transforms.py +0 -0
  130. {grelu-1.0.10 → grelu-1.2.0}/src/grelu/utils.py +0 -0
  131. {grelu-1.0.10 → grelu-1.2.0}/src/grelu/visualize.py +0 -0
  132. {grelu-1.0.10 → grelu-1.2.0}/tests/__init__.py +0 -0
  133. {grelu-1.0.10 → grelu-1.2.0}/tests/conftest.py +0 -0
  134. {grelu-1.0.10 → grelu-1.2.0}/tests/files/test.bed +0 -0
  135. {grelu-1.0.10 → grelu-1.2.0}/tests/files/test.bw +0 -0
  136. {grelu-1.0.10 → grelu-1.2.0}/tests/files/test.fa +0 -0
  137. {grelu-1.0.10 → grelu-1.2.0}/tests/files/test.fa.bgz +0 -0
  138. {grelu-1.0.10 → grelu-1.2.0}/tests/files/test.fa.bgz.fai +0 -0
  139. {grelu-1.0.10 → grelu-1.2.0}/tests/files/test.fa.fai +0 -0
  140. {grelu-1.0.10 → grelu-1.2.0}/tests/files/test.fa.gz +0 -0
  141. {grelu-1.0.10 → grelu-1.2.0}/tests/files/test.fa.sizes +0 -0
  142. {grelu-1.0.10 → grelu-1.2.0}/tests/files/test.meme +0 -0
  143. {grelu-1.0.10 → grelu-1.2.0}/tests/files/test_variants.txt +0 -0
  144. {grelu-1.0.10 → grelu-1.2.0}/tests/files/tomtom/neg_patterns.pattern_0.tomtom.tsv +0 -0
  145. {grelu-1.0.10 → grelu-1.2.0}/tests/files/tomtom/neg_patterns.pattern_1.tomtom.tsv +0 -0
  146. {grelu-1.0.10 → grelu-1.2.0}/tests/test_augment.py +0 -0
  147. {grelu-1.0.10 → grelu-1.2.0}/tests/test_blocks.py +0 -0
  148. {grelu-1.0.10 → grelu-1.2.0}/tests/test_dataset.py +0 -0
  149. {grelu-1.0.10 → grelu-1.2.0}/tests/test_design.py +0 -0
  150. {grelu-1.0.10 → grelu-1.2.0}/tests/test_heads.py +0 -0
  151. {grelu-1.0.10 → grelu-1.2.0}/tests/test_layers.py +0 -0
  152. {grelu-1.0.10 → grelu-1.2.0}/tests/test_positional.py +0 -0
  153. {grelu-1.0.10 → grelu-1.2.0}/tests/test_transforms.py +0 -0
  154. {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: ubuntu-latest
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 }}
@@ -2,7 +2,7 @@ exclude: '^docs/conf.py'
2
2
 
3
3
  repos:
4
4
  - repo: https://github.com/pre-commit/pre-commit-hooks
5
- rev: v5.0.0
5
+ rev: v6.0.0
6
6
  hooks:
7
7
  - id: trailing-whitespace
8
8
  - id: check-added-large-files
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.10
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
  ![Flowchart](media/flowchart.jpg)
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 preprint: https://www.biorxiv.org/content/10.1101/2024.09.18.613778v1
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
  ![Flowchart](media/flowchart.jpg)
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 preprint: https://www.biorxiv.org/content/10.1101/2024.09.18.613778v1
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
- 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*']
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 <api/modules>
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
@@ -1,4 +1,4 @@
1
- autoapi
1
+ astroid<4 # sphinx-autoapi<3.6.1 cannot parse files with astroid>=4
2
2
  #jsonschema==4.17.3
3
3
  git+https://github.com/executablebooks/MyST-NB.git
4
4
  ipython