-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #34 from aertslab/update_docs
Update docs, add checks for formatting/docs building, and refactor modisco and utils modules
- Loading branch information
Showing
51 changed files
with
1,586 additions
and
2,976 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
name: Check Sphinx Docs | ||
|
||
on: | ||
push: | ||
branches: [main] | ||
pull_request: | ||
branches: [main] | ||
|
||
jobs: | ||
docs: | ||
name: Build Sphinx Documentation | ||
runs-on: ubuntu-latest | ||
defaults: | ||
run: | ||
shell: bash -eo pipefail {0} # Fail on error and enable pipefail | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: 3.11 | ||
cache: "pip" | ||
cache-dependency-path: "**/pyproject.toml" | ||
|
||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip wheel | ||
pip install ".[doc]" | ||
- name: Build Documentation and Check for Issues | ||
working-directory: docs | ||
run: | | ||
make clean | ||
# Build the docs and capture output, treat warnings as errors (-W) | ||
sphinx-build -b html -W . _build/html 2>&1 | tee sphinx-output.log | ||
- name: Upload Documentation Artifacts (HTML Pages) | ||
if: always() | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: sphinx-docs | ||
path: docs/_build/html | ||
|
||
- name: Upload Log if Build Failed | ||
if: failure() | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: sphinx-output-log | ||
path: docs/sphinx-output.log |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
name: Ruff | ||
|
||
on: | ||
push: | ||
branches: [main] | ||
pull_request: | ||
branches: [main] | ||
schedule: | ||
- cron: "0 5 1,15 * *" | ||
|
||
jobs: | ||
ruff: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: chartboost/ruff-action@v1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,5 +12,5 @@ io | |
preprocessing | ||
tools/index.md | ||
plotting/index.md | ||
logging | ||
utils | ||
``` |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# Modisco `tl.modisco` | ||
|
||
Tfmodisco (utility) functions. Requires the `modisco-lite` package to be installed. | ||
|
||
```{eval-rst} | ||
.. currentmodule:: crested.tl.modisco | ||
``` | ||
|
||
```{eval-rst} | ||
.. autosummary:: | ||
:toctree: _autosummary | ||
tfmodisco | ||
match_h5_files_to_classes | ||
process_patterns | ||
create_pattern_matrix | ||
generate_nucleotide_sequences | ||
pattern_similarity | ||
find_pattern | ||
find_pattern_matches | ||
calculate_similarity_matrix | ||
calculate_mean_expression_per_cell_type | ||
generate_html_paths | ||
read_motif_to_tf_file | ||
create_pattern_tf_dict | ||
create_tf_ct_matrix | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Utils | ||
|
||
CREsted provides a few utility function to help with sequence encoding, function optimization, ... | ||
|
||
```{eval-rst} | ||
.. currentmodule:: crested.utils | ||
``` | ||
|
||
```{eval-rst} | ||
.. autosummary:: | ||
:toctree: _autosummary | ||
EnhancerOptimizer | ||
extract_bigwig_values_per_bp | ||
hot_encoding_to_sequence | ||
one_hot_encode_sequence | ||
setup_logging | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.