gReLU 1.0.4.post1.dev0__tar.gz → 1.0.5__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 (137) hide show
  1. {grelu-1.0.4.post1.dev0 → grelu-1.0.5}/.github/workflows/pypi-publish.yml +3 -0
  2. {grelu-1.0.4.post1.dev0 → grelu-1.0.5}/.pre-commit-config.yaml +3 -3
  3. {grelu-1.0.4.post1.dev0 → grelu-1.0.5}/AUTHORS.md +2 -0
  4. grelu-1.0.5/CONTRIBUTING.md +248 -0
  5. {grelu-1.0.4.post1.dev0 → grelu-1.0.5}/PKG-INFO +4 -14
  6. {grelu-1.0.4.post1.dev0 → grelu-1.0.5}/README.md +3 -13
  7. grelu-1.0.5/docs/tutorials/1_inference.ipynb +2495 -0
  8. grelu-1.0.5/docs/tutorials/7_custom_models.ipynb +1001 -0
  9. grelu-1.0.5/media/fork.jpg +0 -0
  10. grelu-1.0.5/media/new_issue.jpg +0 -0
  11. {grelu-1.0.4.post1.dev0 → grelu-1.0.5}/pyproject.toml +1 -1
  12. {grelu-1.0.4.post1.dev0 → grelu-1.0.5}/setup.py +5 -5
  13. {grelu-1.0.4.post1.dev0 → grelu-1.0.5}/src/gReLU.egg-info/PKG-INFO +4 -14
  14. {grelu-1.0.4.post1.dev0 → grelu-1.0.5}/src/gReLU.egg-info/SOURCES.txt +4 -6
  15. {grelu-1.0.4.post1.dev0 → grelu-1.0.5}/src/grelu/__init__.py +0 -1
  16. grelu-1.0.5/src/grelu/data/__init__.py +4 -0
  17. {grelu-1.0.4.post1.dev0 → grelu-1.0.5}/src/grelu/data/augment.py +24 -7
  18. {grelu-1.0.4.post1.dev0 → grelu-1.0.5}/src/grelu/data/dataset.py +31 -21
  19. {grelu-1.0.4.post1.dev0 → grelu-1.0.5}/src/grelu/data/preprocess.py +50 -1
  20. {grelu-1.0.4.post1.dev0 → grelu-1.0.5}/src/grelu/data/utils.py +1 -1
  21. {grelu-1.0.4.post1.dev0 → grelu-1.0.5}/src/grelu/design.py +5 -0
  22. grelu-1.0.5/src/grelu/interpret/__init__.py +3 -0
  23. {grelu-1.0.4.post1.dev0 → grelu-1.0.5}/src/grelu/interpret/modisco.py +10 -0
  24. {grelu-1.0.4.post1.dev0 → grelu-1.0.5}/src/grelu/interpret/motifs.py +9 -5
  25. {grelu-1.0.4.post1.dev0 → grelu-1.0.5}/src/grelu/interpret/score.py +20 -3
  26. {grelu-1.0.4.post1.dev0 → grelu-1.0.5}/src/grelu/io/__init__.py +3 -1
  27. {grelu-1.0.4.post1.dev0 → grelu-1.0.5}/src/grelu/io/bed.py +2 -1
  28. {grelu-1.0.4.post1.dev0/src/grelu/lightning → grelu-1.0.5/src/grelu}/io/bigwig.py +2 -1
  29. {grelu-1.0.4.post1.dev0 → grelu-1.0.5}/src/grelu/io/fasta.py +2 -1
  30. {grelu-1.0.4.post1.dev0 → grelu-1.0.5}/src/grelu/io/genome.py +2 -2
  31. {grelu-1.0.4.post1.dev0 → grelu-1.0.5}/src/grelu/io/motifs.py +3 -1
  32. {grelu-1.0.4.post1.dev0 → grelu-1.0.5}/src/grelu/lightning/__init__.py +61 -25
  33. {grelu-1.0.4.post1.dev0 → grelu-1.0.5}/src/grelu/lightning/losses.py +7 -1
  34. {grelu-1.0.4.post1.dev0 → grelu-1.0.5}/src/grelu/lightning/metrics.py +6 -2
  35. grelu-1.0.5/src/grelu/model/__init__.py +4 -0
  36. {grelu-1.0.4.post1.dev0 → grelu-1.0.5}/src/grelu/model/blocks.py +3 -1
  37. {grelu-1.0.4.post1.dev0 → grelu-1.0.5}/src/grelu/model/heads.py +5 -1
  38. {grelu-1.0.4.post1.dev0 → grelu-1.0.5}/src/grelu/model/layers.py +4 -1
  39. {grelu-1.0.4.post1.dev0 → grelu-1.0.5}/src/grelu/model/models.py +11 -1
  40. {grelu-1.0.4.post1.dev0 → grelu-1.0.5}/src/grelu/model/position.py +1 -1
  41. {grelu-1.0.4.post1.dev0 → grelu-1.0.5}/src/grelu/model/trunks/__init__.py +5 -1
  42. grelu-1.0.5/src/grelu/model/trunks/lm.py +88 -0
  43. {grelu-1.0.4.post1.dev0 → grelu-1.0.5}/src/grelu/resources/__init__.py +6 -0
  44. grelu-1.0.5/src/grelu/sequence/__init__.py +3 -0
  45. {grelu-1.0.4.post1.dev0 → grelu-1.0.5}/src/grelu/sequence/format.py +6 -5
  46. {grelu-1.0.4.post1.dev0 → grelu-1.0.5}/src/grelu/sequence/metrics.py +1 -1
  47. {grelu-1.0.4.post1.dev0 → grelu-1.0.5}/src/grelu/sequence/mutate.py +1 -1
  48. {grelu-1.0.4.post1.dev0 → grelu-1.0.5}/src/grelu/sequence/utils.py +1 -1
  49. {grelu-1.0.4.post1.dev0/src/grelu/data → grelu-1.0.5/src/grelu/transforms}/__init__.py +0 -0
  50. {grelu-1.0.4.post1.dev0 → grelu-1.0.5}/src/grelu/transforms/label_transforms.py +4 -3
  51. {grelu-1.0.4.post1.dev0 → grelu-1.0.5}/src/grelu/transforms/prediction_transforms.py +5 -3
  52. {grelu-1.0.4.post1.dev0 → grelu-1.0.5}/src/grelu/transforms/seq_transforms.py +6 -1
  53. {grelu-1.0.4.post1.dev0 → grelu-1.0.5}/src/grelu/utils.py +1 -1
  54. {grelu-1.0.4.post1.dev0 → grelu-1.0.5}/src/grelu/variant.py +1 -1
  55. {grelu-1.0.4.post1.dev0 → grelu-1.0.5}/src/grelu/visualize.py +4 -0
  56. grelu-1.0.5/tests/conftest.py +10 -0
  57. {grelu-1.0.4.post1.dev0 → grelu-1.0.5}/tests/test_dataset.py +28 -13
  58. {grelu-1.0.4.post1.dev0 → grelu-1.0.5}/tests/test_design.py +0 -1
  59. {grelu-1.0.4.post1.dev0 → grelu-1.0.5}/tests/test_lightning.py +55 -20
  60. {grelu-1.0.4.post1.dev0 → grelu-1.0.5}/tests/test_preprocess.py +26 -11
  61. grelu-1.0.4.post1.dev0/CONTRIBUTING.md +0 -278
  62. grelu-1.0.4.post1.dev0/docs/tutorials/1_inference.ipynb +0 -2347
  63. grelu-1.0.4.post1.dev0/src/grelu/io/bigwig.py +0 -98
  64. grelu-1.0.4.post1.dev0/src/grelu/lightning/io/__init__.py +0 -136
  65. grelu-1.0.4.post1.dev0/src/grelu/lightning/io/bed.py +0 -97
  66. grelu-1.0.4.post1.dev0/src/grelu/lightning/io/fasta.py +0 -48
  67. grelu-1.0.4.post1.dev0/src/grelu/lightning/io/genome.py +0 -93
  68. grelu-1.0.4.post1.dev0/src/grelu/lightning/io/meme.py +0 -115
  69. grelu-1.0.4.post1.dev0/src/grelu/model/__init__.py +0 -0
  70. grelu-1.0.4.post1.dev0/src/grelu/sequence/__init__.py +0 -0
  71. grelu-1.0.4.post1.dev0/src/grelu/transforms/__init__.py +0 -0
  72. grelu-1.0.4.post1.dev0/tests/__init__.py +0 -0
  73. grelu-1.0.4.post1.dev0/tests/conftest.py +0 -10
  74. {grelu-1.0.4.post1.dev0 → grelu-1.0.5}/.github/workflows/pypi-test.yml +0 -0
  75. {grelu-1.0.4.post1.dev0 → grelu-1.0.5}/CHANGELOG.md +0 -0
  76. {grelu-1.0.4.post1.dev0 → grelu-1.0.5}/Dockerfile +0 -0
  77. {grelu-1.0.4.post1.dev0 → grelu-1.0.5}/LICENSE.txt +0 -0
  78. {grelu-1.0.4.post1.dev0 → grelu-1.0.5}/MANIFEST.in +0 -0
  79. {grelu-1.0.4.post1.dev0 → grelu-1.0.5}/docs/Makefile +0 -0
  80. {grelu-1.0.4.post1.dev0 → grelu-1.0.5}/docs/_static/switcher.json +0 -0
  81. {grelu-1.0.4.post1.dev0 → grelu-1.0.5}/docs/authors.rst +0 -0
  82. {grelu-1.0.4.post1.dev0 → grelu-1.0.5}/docs/changelog.rst +0 -0
  83. {grelu-1.0.4.post1.dev0 → grelu-1.0.5}/docs/conf.py +0 -0
  84. {grelu-1.0.4.post1.dev0 → grelu-1.0.5}/docs/contributing.rst +0 -0
  85. {grelu-1.0.4.post1.dev0 → grelu-1.0.5}/docs/index.md +0 -0
  86. {grelu-1.0.4.post1.dev0 → grelu-1.0.5}/docs/license.rst +0 -0
  87. {grelu-1.0.4.post1.dev0 → grelu-1.0.5}/docs/media/flowchart.jpg +0 -0
  88. {grelu-1.0.4.post1.dev0 → grelu-1.0.5}/docs/readme.rst +0 -0
  89. {grelu-1.0.4.post1.dev0 → grelu-1.0.5}/docs/requirements.txt +0 -0
  90. {grelu-1.0.4.post1.dev0 → grelu-1.0.5}/docs/tutorials/2_finetune.ipynb +0 -0
  91. {grelu-1.0.4.post1.dev0 → grelu-1.0.5}/docs/tutorials/3_train.ipynb +0 -0
  92. {grelu-1.0.4.post1.dev0 → grelu-1.0.5}/docs/tutorials/4_design.ipynb +0 -0
  93. {grelu-1.0.4.post1.dev0 → grelu-1.0.5}/docs/tutorials/5_variant.ipynb +0 -0
  94. {grelu-1.0.4.post1.dev0 → grelu-1.0.5}/docs/tutorials/6_model_zoo.ipynb +0 -0
  95. {grelu-1.0.4.post1.dev0 → grelu-1.0.5}/media/flowchart.jpg +0 -0
  96. {grelu-1.0.4.post1.dev0 → grelu-1.0.5}/setup.cfg +0 -0
  97. {grelu-1.0.4.post1.dev0 → grelu-1.0.5}/src/gReLU.egg-info/dependency_links.txt +0 -0
  98. {grelu-1.0.4.post1.dev0 → grelu-1.0.5}/src/gReLU.egg-info/not-zip-safe +0 -0
  99. {grelu-1.0.4.post1.dev0 → grelu-1.0.5}/src/gReLU.egg-info/requires.txt +0 -0
  100. {grelu-1.0.4.post1.dev0 → grelu-1.0.5}/src/gReLU.egg-info/top_level.txt +0 -0
  101. {grelu-1.0.4.post1.dev0 → grelu-1.0.5}/src/grelu/model/trunks/borzoi.py +0 -0
  102. {grelu-1.0.4.post1.dev0 → grelu-1.0.5}/src/grelu/model/trunks/enformer.py +0 -0
  103. {grelu-1.0.4.post1.dev0 → grelu-1.0.5}/src/grelu/model/trunks/explainn.py +0 -0
  104. {grelu-1.0.4.post1.dev0 → grelu-1.0.5}/src/grelu/resources/blacklists/encode/hg19-blacklist.v2.bed +0 -0
  105. {grelu-1.0.4.post1.dev0 → grelu-1.0.5}/src/grelu/resources/blacklists/encode/hg38-blacklist.v2.bed +0 -0
  106. {grelu-1.0.4.post1.dev0 → grelu-1.0.5}/src/grelu/resources/blacklists/encode/mm10-blacklist.v2.bed +0 -0
  107. {grelu-1.0.4.post1.dev0 → grelu-1.0.5}/src/grelu/resources/blacklists/mito_combined/hg19.full.blacklist.bed +0 -0
  108. {grelu-1.0.4.post1.dev0 → grelu-1.0.5}/src/grelu/resources/blacklists/mito_combined/hg19_mm10_c.full.blacklist.bed +0 -0
  109. {grelu-1.0.4.post1.dev0 → grelu-1.0.5}/src/grelu/resources/blacklists/mito_combined/hg38.full.blacklist.bed +0 -0
  110. {grelu-1.0.4.post1.dev0 → grelu-1.0.5}/src/grelu/resources/blacklists/mito_combined/mm10.full.blacklist.bed +0 -0
  111. {grelu-1.0.4.post1.dev0 → grelu-1.0.5}/src/grelu/resources/blacklists/mito_combined/mm9.full.blacklist.bed +0 -0
  112. {grelu-1.0.4.post1.dev0 → grelu-1.0.5}/src/grelu/resources/meme/H12CORE_meme_format.meme +0 -0
  113. {grelu-1.0.4.post1.dev0 → grelu-1.0.5}/src/grelu/resources/meme/jaspar_2024_consensus.meme +0 -0
  114. {grelu-1.0.4.post1.dev0/src/grelu/interpret → grelu-1.0.5/tests}/__init__.py +0 -0
  115. {grelu-1.0.4.post1.dev0 → grelu-1.0.5}/tests/files/test.bed +0 -0
  116. {grelu-1.0.4.post1.dev0 → grelu-1.0.5}/tests/files/test.bw +0 -0
  117. {grelu-1.0.4.post1.dev0 → grelu-1.0.5}/tests/files/test.fa.gz +0 -0
  118. {grelu-1.0.4.post1.dev0 → grelu-1.0.5}/tests/files/test.meme +0 -0
  119. {grelu-1.0.4.post1.dev0 → grelu-1.0.5}/tests/files/test_modisco.h5 +0 -0
  120. {grelu-1.0.4.post1.dev0 → grelu-1.0.5}/tests/files/test_variants.txt +0 -0
  121. {grelu-1.0.4.post1.dev0 → grelu-1.0.5}/tests/files/tomtom/neg_patterns.pattern_0.tomtom.tsv +0 -0
  122. {grelu-1.0.4.post1.dev0 → grelu-1.0.5}/tests/files/tomtom/neg_patterns.pattern_1.tomtom.tsv +0 -0
  123. {grelu-1.0.4.post1.dev0 → grelu-1.0.5}/tests/test_augment.py +0 -0
  124. {grelu-1.0.4.post1.dev0 → grelu-1.0.5}/tests/test_blocks.py +0 -0
  125. {grelu-1.0.4.post1.dev0 → grelu-1.0.5}/tests/test_data_utils.py +0 -0
  126. {grelu-1.0.4.post1.dev0 → grelu-1.0.5}/tests/test_heads.py +0 -0
  127. {grelu-1.0.4.post1.dev0 → grelu-1.0.5}/tests/test_interpret.py +0 -0
  128. {grelu-1.0.4.post1.dev0 → grelu-1.0.5}/tests/test_io.py +0 -0
  129. {grelu-1.0.4.post1.dev0 → grelu-1.0.5}/tests/test_layers.py +0 -0
  130. {grelu-1.0.4.post1.dev0 → grelu-1.0.5}/tests/test_models.py +1 -1
  131. {grelu-1.0.4.post1.dev0 → grelu-1.0.5}/tests/test_positional.py +0 -0
  132. {grelu-1.0.4.post1.dev0 → grelu-1.0.5}/tests/test_resources.py +0 -0
  133. {grelu-1.0.4.post1.dev0 → grelu-1.0.5}/tests/test_sequence.py +0 -0
  134. {grelu-1.0.4.post1.dev0 → grelu-1.0.5}/tests/test_transforms.py +0 -0
  135. {grelu-1.0.4.post1.dev0 → grelu-1.0.5}/tests/test_utils.py +0 -0
  136. {grelu-1.0.4.post1.dev0 → grelu-1.0.5}/tests/test_variant.py +0 -0
  137. {grelu-1.0.4.post1.dev0 → grelu-1.0.5}/tox.ini +0 -0
@@ -31,6 +31,9 @@ jobs:
31
31
  github_token: ${{ secrets.GITHUB_TOKEN }}
32
32
  publish_dir: _build/
33
33
  force_orphan: true
34
+ - name: Build Project
35
+ run: |
36
+ python -m tox -e clean,build
34
37
  - name: Publish package
35
38
  uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
36
39
  with:
@@ -36,13 +36,13 @@ repos:
36
36
  # ]
37
37
 
38
38
  - repo: https://github.com/PyCQA/isort
39
- rev: 5.13.2
39
+ rev: 6.0.1
40
40
  hooks:
41
41
  - id: isort
42
42
  args: ["--profile", "black"]
43
43
 
44
44
  - repo: https://github.com/psf/black
45
- rev: 24.10.0
45
+ rev: 25.1.0
46
46
  hooks:
47
47
  - id: black
48
48
  language_version: python3
@@ -55,7 +55,7 @@ repos:
55
55
  # additional_dependencies: [black]
56
56
 
57
57
  - repo: https://github.com/PyCQA/flake8
58
- rev: 7.1.1
58
+ rev: 7.1.2
59
59
  hooks:
60
60
  - id: flake8
61
61
  ## You can add flake8 plugins via `additional_dependencies`:
@@ -2,3 +2,5 @@
2
2
 
3
3
  * Avantika Lal <lal.avantika@gene.com>
4
4
  * Gokcen Eraslan <eraslan.gokcen@gene.com>
5
+ * Surag Nair <nair.surag@gene.com>
6
+ * David Garfield <garfield.david@gene.com>
@@ -0,0 +1,248 @@
1
+ # Contributing
2
+
3
+ Welcome to the ``gReLU`` contributor's guide.
4
+
5
+ This document focuses on getting any potential contributor familiarized with the development processes,
6
+ but [other kinds of contributions](https://opensource.guide/how-to-contribute) are also appreciated.
7
+
8
+ If you are new to using git or have never collaborated in a project previously, please have a look at
9
+ [contribution-guide.org](https://www.contribution-guide.org/). Other resources are also listed in the
10
+ excellent [guide created by FreeCodeCamp](https://github.com/FreeCodeCamp/how-to-contribute).
11
+
12
+ Please notice, all users and contributors are expected to be **open, considerate, reasonable, and
13
+ respectful**. When in doubt, [Python Software Foundation's Code of Conduct](https://www.python.org/psf/conduct/)
14
+ is a good reference in terms of behavior guidelines.
15
+
16
+ ## Issue Reports
17
+
18
+ If you experience bugs or general issues with ``gReLU``, please have a look at the
19
+ [issue tracker](https://github.com/Genentech/gReLU/issues). If you don't see anything useful there, please
20
+ file a new issue report.
21
+
22
+ (Don't forget to include the closed issues in your search. Sometimes a solution was already reported, and
23
+ the problem is considered solved.)
24
+
25
+ You can file a new issue by clicking the "New issue" button at the top right of the issue tracker.
26
+ ![New Issue](media/new_issue.jpg)
27
+
28
+ Your new issue report should include the following information:
29
+
30
+ 1. Information about your programming environment (e.g., operating system, Python version)
31
+ 2. Steps to reproduce the problem. Please try to simplify the reproduction steps to a very minimal example
32
+ that still illustrates the problem you are facing. By removing other factors, you help us to identify the
33
+ root cause of the issue.
34
+ 4. The full error message that you encountered, if any.
35
+ 5. Any steps that you took to diagnose or fix the issue, and their outcomes.
36
+ 6. Any suggestions for resolving the issue.
37
+
38
+
39
+ ## Making code contributions
40
+
41
+ ### Coding resources
42
+
43
+ ``gReLU`` uses pytorch and pytorch-lightning. The below tutorials are good starting points to become familiar
44
+ with these frameworks:
45
+
46
+ [PyTorch tutorials](https://pytorch.org/tutorials/beginner/basics/intro.html)
47
+
48
+ [Lightning tutorials](https://lightning.ai/docs/pytorch/stable/levels/core_skills.html)
49
+
50
+ ### Understanding project structure
51
+
52
+ We welcome external contributions to ``gReLU``. Before planning changes to the code, we suggest carefully
53
+ examining the current structure and organization of the package.
54
+
55
+ The [API reference](https://genentech.github.io/gReLU/autoapi/index.html) lists all the modules and submodules
56
+ available in gReLU. Clicking on individual modules on this list will reveal a description of the module and
57
+ what kinds of functions it is meant to contain. The descriptions also contain more detailed explanations of the
58
+ expected structure of each module and how to contribute to it. This will help you find the appropriate location
59
+ to make changes.
60
+
61
+ For instance, the table below lists some different types of functionality that contributors may want to add
62
+ or change, and the corresponding module / submodule of ``gReLU``. Click on the name of a module for more details
63
+ on its structure.
64
+
65
+ | Functionality | Module |
66
+ | ---------------- | ------- |
67
+ | Functions to read / write genomic data | [`grelu.io`](https://genentech.github.io/gReLU/autoapi/grelu/io/index.html) |
68
+ | Functions to preprocess genomic data after it is loaded | [`grelu.data.preprocess`](https://genentech.github.io/gReLU/autoapi/grelu/data/preprocess/index.html) |
69
+ | New augmentation functions for training models | [`grelu.data.augment`](https://genentech.github.io/gReLU/autoapi/grelu/data/augment/index.html) |
70
+ | Functions to introduce various types of in silico mutations into DNA sequences | [`grelu.sequence.mutate`](https://genentech.github.io/gReLU/autoapi/grelu/sequence/mutate/index.html) |
71
+ | Other functions to manipulate DNA sequences | [`grelu.sequence.utils`](https://genentech.github.io/gReLU/autoapi/grelu/sequence/utils/index.html) |
72
+ | Functions to score DNA sequences based on their content | [`grelu.transforms.seq_transforms`](https://genentech.github.io/gReLU/autoapi/grelu/transforms/seq_transforms/index.html) |
73
+ | Functions to transform model predictions | [`grelu.transforms.prediction_transforms`](https://genentech.github.io/gReLU/autoapi/grelu/transforms/prediction_transforms/index.html) |
74
+ | New types of model layers | [`grelu.model.layers`](https://genentech.github.io/gReLU/autoapi/grelu/model/layers/index.html) |
75
+ | New model architectures | [`grelu.model.models`](https://genentech.github.io/gReLU/autoapi/grelu/model/models/index.html) |
76
+ | New loss functions | [`grelu.lightning.losses`](https://genentech.github.io/gReLU/autoapi/grelu/lightning/losses/index.html)|
77
+ | New metrics to calculate model performance | [`grelu.lightning.metrics`](https://genentech.github.io/gReLU/autoapi/grelu/lightning/metrics/index.html) |
78
+ | New plots and visualizations | [`grelu.visualize`](https://genentech.github.io/gReLU/autoapi/grelu/visualize/index.html) |
79
+
80
+ For complex changes that may not fit clearly within the established package structure, it is important to first
81
+ raise an issue (see instructions below).
82
+
83
+
84
+ ## Step-by-step instructions to contribute new code
85
+
86
+ ### Submit an issue
87
+
88
+ Before you work on any non-trivial code contribution it's best to first create an issue in the
89
+ [issue tracker](https://github.com/Genentech/gReLU/issues) to start a discussion on the subject.
90
+ This often provides additional considerations and avoids unnecessary work.
91
+
92
+ ### Create an environment
93
+
94
+ Before you start coding, we recommend creating an isolated [virtual
95
+ environment](https://realpython.com/python-virtual-environments-a-primer/) to avoid any problems with your
96
+ installed Python packages. This can easily be done via either [virtualenv](https://virtualenv.pypa.io/en/stable/):
97
+ ```
98
+ virtualenv <PATH TO VENV>
99
+ source <PATH TO VENV>/bin/activate
100
+ ```
101
+ or [Miniconda](https://docs.conda.io/en/latest/miniconda.html):
102
+ ```
103
+ conda create -n grelu python=3 six virtualenv pytest pytest-cov
104
+ conda activate grelu
105
+ ```
106
+ ### Clone the repository
107
+
108
+ 1. Create an user account on [GitHub](https://github.com), if you do not already have one.
109
+ 2. Fork the [project repository](https://github.com/Genentech/gReLU/): click on the *Fork* button near the top of
110
+ the page. This creates a copy of the code under your account on [GitHub](https://github.com/).
111
+
112
+ ![Fork](media/fork.jpg)
113
+
114
+ 4. Clone this copy to your local disk::
115
+ ```
116
+ git clone git@github.com:YourLogin/grelu.git
117
+ cd grelu
118
+ ```
119
+ 4. You should run::
120
+ ```
121
+ pip install -U pip setuptools -e .
122
+ ```
123
+ to be able to import the package under development in the Python REPL.
124
+
125
+ 5. Install [pre-commit](https://pre-commit.com/):
126
+ ```
127
+ pip install pre-commit
128
+ pre-commit install
129
+ ```
130
+ ``grelu`` comes with a lot of hooks configured to automatically help the
131
+ developer to check the code being written.
132
+
133
+ ### Implement your changes
134
+
135
+ 1. Create a branch to hold your changes::
136
+ ```
137
+ git checkout -b my-feature
138
+ ```
139
+ and start making changes. Never work on the main branch!
140
+
141
+ 2. Implement your code changes on this branch.
142
+
143
+ 3. If you change or add any functions, modules and classes, don't forget to update or add docstrings to describe these changes.
144
+
145
+ 4. If your contribution adds an additional feature and is not just a bugfix, we suggest also adding unit tests.
146
+
147
+ 5. Add yourself to the list of contributors in ``AUTHORS.rst``.
148
+
149
+ 6. When you’re done editing, do::
150
+ ```p
151
+ git add <MODIFIED FILES>
152
+ git commit
153
+ ```
154
+ to record your changes in git. Moreover, writing a [descriptive commit message](https://chris.beams.io/posts/git-commit)
155
+ is highly recommended.
156
+
157
+ Please make sure to see the validation messages from [pre-commit](https://pre-commit.com/) and fix any issues.
158
+ This should automatically use [flake8](https://flake8.pycqa.org/en/stable/)/[black](https://pypi.org/project/black/)
159
+ to check/fix the code style in a way that is compatible with the project.
160
+
161
+ ### Test your changes
162
+
163
+ Please check that your changes don't break any unit tests with::
164
+ ```
165
+ tox
166
+ ```
167
+ (after having installed [tox](https://tox.wiki/en/stable/) with ``pip install tox`` or ``pipx``).
168
+ You can also use [tox](https://tox.wiki/en/stable/) to run several other pre-configured tasks in the
169
+ repository. Try ``tox -av`` to see a list of the available checks.
170
+
171
+ ### Submit your contribution
172
+
173
+ 1. If everything works fine, push your local branch to [GitHub](https://github.com/) with:
174
+ ```
175
+ git push -u origin my-feature
176
+ ```
177
+ 2. Go to the web page of your fork and click "Create pull request"
178
+ to send your changes for review.
179
+
180
+ Find more detailed information in [creating a PR](https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/creating-a-pull-request). You might also want to open the PR as a draft first and mark it as ready for review
181
+ after the feedback from the continuous integration (CI) system or any required fixes.
182
+
183
+ ## Troubleshooting
184
+
185
+ The following tips can be used when facing problems to build or test the
186
+ package:
187
+
188
+ 1. Make sure to fetch all the tags from the upstream repository_.
189
+ The command ``git describe --abbrev=0 --tags`` should return the version you
190
+ are expecting. If you are trying to run CI scripts in a fork repository,
191
+ make sure to push all the tags.
192
+ You can also try to remove all the egg files or the complete egg folder, i.e.,
193
+ ``.eggs``, as well as the ``*.egg-info`` folders in the ``src`` folder or
194
+ potentially in the root of your project.
195
+
196
+ 2. Sometimes [tox](https://tox.wiki/en/stable/) misses out when new dependencies are added, especially to
197
+ ``setup.cfg`` and ``docs/requirements.txt``. If you find any problems with
198
+ missing dependencies when running a command with [tox](https://tox.wiki/en/stable/), try to recreate the
199
+ ``tox`` environment using the ``-r`` flag. For example, instead of::
200
+ ```shell
201
+ tox -e docs
202
+ ```
203
+ Try running::
204
+ ```shell
205
+ tox -r -e docs
206
+ ```
207
+ 3. Make sure to have a reliable [tox](https://tox.wiki/en/stable/) installation that uses the correct
208
+ Python version (e.g., 3.7+). When in doubt you can run::
209
+
210
+ ```shell
211
+ tox --version
212
+ # OR
213
+ which tox
214
+ ```
215
+
216
+ If you have trouble and are seeing weird errors upon running [tox](https://tox.wiki/en/stable/), you can
217
+ also try to create a dedicated [virtual environment](https://realpython.com/python-virtual-environments-a-primer/)
218
+ with a [tox](https://tox.wiki/en/stable/) binary freshly installed. For example::
219
+
220
+ virtualenv .venv
221
+ source .venv/bin/activate
222
+ .venv/bin/pip install tox
223
+ .venv/bin/tox -e all
224
+
225
+ 4. [Pytest can drop you](https://docs.pytest.org/en/stable/how-to/failures.html#using-python-library-pdb-with-pytest) in an
226
+ interactive session in the case an error occurs. In order to do that you need to pass a ``--pdb`` option (for example by
227
+ running ``tox -- -k <NAME OF THE FALLING TEST> --pdb``).
228
+ You can also setup breakpoints manually instead of using the ``--pdb`` option.
229
+
230
+ ## Maintainer tasks
231
+
232
+ ### Releases
233
+
234
+ If you are part of the group of maintainers and have correct user permissions on [PyPI](https://pypi.org/),
235
+ the following steps can be used to release a new version for ``grelu``:
236
+
237
+ 1. Make sure all unit tests are successful.
238
+ 2. Tag the current commit on the main branch with a release tag, e.g., ``v1.2.3``.
239
+ 3. Push the new tag to the upstream repository_, e.g., ``git push upstream v1.2.3``
240
+ 4. Clean up the ``dist`` and ``build`` folders with ``tox -e clean``
241
+ (or ``rm -rf dist build``)
242
+ to avoid confusion with old builds and Sphinx docs.
243
+ 5. Run ``tox -e build`` and check that the files in ``dist`` have
244
+ the correct version (no ``.dirty`` or git hash) according to the git tag.
245
+ Also check the sizes of the distributions, if they are too big (e.g., >
246
+ 500KB), unwanted clutter may have been accidentally included.
247
+ 6. Run ``tox -e publish -- --repository pypi`` and check that everything was
248
+ uploaded to PyPI_ correctly.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: gReLU
3
- Version: 1.0.4.post1.dev0
3
+ Version: 1.0.5
4
4
  Summary: gReLU is a python library to train, interpret, and apply deep learning models to DNA sequences
5
5
  Home-page: https://code.roche.com/gred-rb-ai-ml-regulatory-genomics/grelu
6
6
  Author: lal.avantika,eraslan.gokcen
@@ -78,19 +78,7 @@ pip install gReLU
78
78
 
79
79
  ## Contributing
80
80
 
81
- This project uses [pre-commit](https://pre-commit.com/). Please make sure to install it before making any changes:
82
-
83
- ```shell
84
- pip install pre-commit
85
- cd gReLU
86
- pre-commit install
87
- ```
88
-
89
- It is a good idea to update the hooks to the latest version:
90
-
91
- ```shell
92
- pre-commit autoupdate
93
- ```
81
+ See our [contribution guide](https://genentech.github.io/gReLU/contributing.html).
94
82
 
95
83
  ## Additional requirements
96
84
 
@@ -121,6 +109,8 @@ bioconda::ucsc-gtftogenepred \
121
109
  bioconda::ucsc-gff3togenepred
122
110
  ```
123
111
 
112
+ If you want to create ATAC-seq coverage bigWig files using `grelu.data.preprocess.make_insertion_bigwig`, you will need to install bedtools. See https://bedtools.readthedocs.io/en/latest/content/installation.html for instructions.
113
+
124
114
  ## Citation
125
115
 
126
116
  Please cite our preprint: https://www.biorxiv.org/content/10.1101/2024.09.18.613778v1
@@ -31,19 +31,7 @@ pip install gReLU
31
31
 
32
32
  ## Contributing
33
33
 
34
- This project uses [pre-commit](https://pre-commit.com/). Please make sure to install it before making any changes:
35
-
36
- ```shell
37
- pip install pre-commit
38
- cd gReLU
39
- pre-commit install
40
- ```
41
-
42
- It is a good idea to update the hooks to the latest version:
43
-
44
- ```shell
45
- pre-commit autoupdate
46
- ```
34
+ See our [contribution guide](https://genentech.github.io/gReLU/contributing.html).
47
35
 
48
36
  ## Additional requirements
49
37
 
@@ -74,6 +62,8 @@ bioconda::ucsc-gtftogenepred \
74
62
  bioconda::ucsc-gff3togenepred
75
63
  ```
76
64
 
65
+ If you want to create ATAC-seq coverage bigWig files using `grelu.data.preprocess.make_insertion_bigwig`, you will need to install bedtools. See https://bedtools.readthedocs.io/en/latest/content/installation.html for instructions.
66
+
77
67
  ## Citation
78
68
 
79
69
  Please cite our preprint: https://www.biorxiv.org/content/10.1101/2024.09.18.613778v1