Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a Tutorial in the Documentation #23

Merged
merged 20 commits into from
Sep 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion docs/api/api_ref.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,5 @@
```{toctree}
:maxdepth: 2
binette
indice_and_table
```

13 changes: 2 additions & 11 deletions docs/api/binette.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,6 @@
:show-inheritance:
```

## binette.binette module

```{eval-rst}
.. automodule:: binette.binette
:members:
:undoc-members:
:show-inheritance:
```

## binette.cds module

```{eval-rst}
Expand Down Expand Up @@ -65,10 +56,10 @@
:show-inheritance:
```

## Module contents
## binette.main module

```{eval-rst}
.. automodule:: binette
.. automodule:: binette.main
:members:
:undoc-members:
:show-inheritance:
Expand Down
7 changes: 0 additions & 7 deletions docs/api/modules.md

This file was deleted.

74 changes: 67 additions & 7 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,35 +18,58 @@
# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration

extensions = [
"myst_parser",
#
# "sphinxcontrib.jquery",
"sphinx.ext.duration",
"sphinx.ext.autosectionlabel",
"sphinx.ext.autodoc",
'sphinx_search.extension'
'sphinx_search.extension',
'sphinx_togglebutton',
# "myst_nb",
"myst_parser",
'nbsphinx',
'nbsphinx_link',
# 'sphinx.ext.napoleon',
# 'sphinx.ext.viewcode',
'sphinxcontrib.mermaid'
]
myst_enable_extensions = [
"amsmath",
"colon_fence",
"deflist",
"dollarmath",
"fieldlist",
"html_admonition",
"html_image",
"replacements",
"smartquotes",
"strikethrough",
"substitution",
"tasklist",
]


source_suffix = {
'.md': 'markdown'
'.md': 'markdown',
}


templates_path = ['_templates']


nb_execution_mode = "off"
nbsphinx_execute = 'never'
# Prefix document path to section labels, to use:
# `path/to/file:heading` instead of just `heading`
autosectionlabel_prefix_document = True

exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store']
exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store', 'build', "jupyter_execute"]



# -- Options for HTML output -------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output

html_theme = 'sphinx_rtd_theme' #'alabaster' #
# html_theme = 'sphinx_rtd_theme' #'alabaster' #
html_theme = 'sphinx_rtd_theme' #'sphinx_book_theme'

# Add any paths that contain custom static files (such as style sheets) here,
# relative to this directory. They are copied after the builtin static files,
Expand All @@ -55,3 +78,40 @@





# Include the Plotly JavaScript in the HTML output
nbsphinx_requirejs_path = ""

# Ensures that the `require.js` is loaded for Plotly to function correctly
nbsphinx_requirejs_options = {
'paths': {
'plotly': 'https://cdn.plot.ly/plotly-latest.min'
},
'shim': {
'plotly': {
'exports': 'Plotly'
}
}
}

# Specify the default language for syntax highlighting in Sphinx
highlight_language = 'python'

# -- Options for HTML output -------------------------------------------------


# Add any paths that contain custom static files (such as style sheets) here,
# relative to this directory. They are copied after the builtin static files,
# so a file named "default.css" will overwrite the builtin "default.css".
html_static_path = ['_static']

# Add plotly renderer options
nbsphinx_prolog = r"""
.. raw:: html

<script src="https://cdn.plot.ly/plotly-latest.min.js"></script>
"""



2 changes: 1 addition & 1 deletion docs/contributing.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ For minor changes like fixing typos or making small edits, create a new Pull Req
- Clone your forked repository to your local machine.

2. **Get an Environment:**
Create an environment with all Binette prerequisites installed by following the installation instructions [here](./installation.md#installing-from-source-code-within-a-conda-environnement).
Create an environment with all Binette prerequisites installed by following the installation instructions [here](./installation.md#from-the-source-code-within-a-conda-environnement).

3. **Install in Editable Mode:**
To enable code editing and testing of new functionality, you can install Binette in editable mode using the following command:
Expand Down
6 changes: 5 additions & 1 deletion docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,18 @@ Binette is inspired from the metaWRAP bin-refinement tool but it effectively sol
- Enhanced Speed: Binette significantly improves the speed of the refinement process. It achieves this by launching the initial steps of CheckM2, such as Prodigal and Diamond runs, only once on all contigs. These intermediate results are then utilized to assess the quality of any given bin, eliminating redundant computations and accelerating the refinement process.
- No Limit on Input Bin Sets: Unlike its predecessor, Binette is not constrained by the number of input bin sets. It can handle and process multiple bin sets simultaneously.




```{toctree}
:caption: 'Documentation'
:maxdepth: 2

installation
usage
tutorial/tutorial_main
contributing
tests.md
tests
api/api_ref
```

2 changes: 1 addition & 1 deletion docs/tests.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Tests have been implemented to ensure the correctness of Binette.
Unit tests have been implmented in the tests directory using pytest.


To run the test suit you would need to have install Binette from the source code. For that, you can follow installation instructions [here](./installation.md#installing-from-source-code-within-a-conda-environnement).
To run the test suit you would need to have install Binette from the source code. For that, you can follow installation instructions [here](./installation.md#from-the-source-code-within-a-conda-environnement).


To install pytest in you environement you can run :
Expand Down
Loading
Loading