Commit ·
c489b2f
1
Parent(s): fec8df0
Added initial draft of the documenation
Browse files- docs/Makefile +20 -0
- docs/README.md +7 -0
- docs/conf.py +43 -0
- docs/index.rst +18 -0
- docs/make.bat +35 -0
- docs/source/modules.rst +7 -0
- docs/source/protac_degradation_predictor.optuna.rst +45 -0
- docs/source/protac_degradation_predictor.rst +85 -0
docs/Makefile
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Minimal makefile for Sphinx documentation
|
| 2 |
+
#
|
| 3 |
+
|
| 4 |
+
# You can set these variables from the command line, and also
|
| 5 |
+
# from the environment for the first two.
|
| 6 |
+
SPHINXOPTS ?=
|
| 7 |
+
SPHINXBUILD ?= sphinx-build
|
| 8 |
+
SOURCEDIR = .
|
| 9 |
+
BUILDDIR = _build
|
| 10 |
+
|
| 11 |
+
# Put it first so that "make" without argument is like "make help".
|
| 12 |
+
help:
|
| 13 |
+
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
|
| 14 |
+
|
| 15 |
+
.PHONY: help Makefile
|
| 16 |
+
|
| 17 |
+
# Catch-all target: route all unknown targets to Sphinx using the new
|
| 18 |
+
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
|
| 19 |
+
%: Makefile
|
| 20 |
+
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
|
docs/README.md
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Useful Tips on How to Build the Documentation
|
| 2 |
+
|
| 3 |
+
This document provides useful tips on how to build the documentation for the project.
|
| 4 |
+
|
| 5 |
+
- Automatically create modules rst files: `sphinx-apidoc -o source/ ../protac_degradation_predictor`
|
| 6 |
+
- Then, in `index.rst`, add the following line: `source/modules`
|
| 7 |
+
- Build the documentation: `make clean ; make html`
|
docs/conf.py
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import os
|
| 2 |
+
import sys
|
| 3 |
+
|
| 4 |
+
sys.path.insert(0, os.path.abspath('..'))
|
| 5 |
+
|
| 6 |
+
# Configuration file for the Sphinx documentation builder.
|
| 7 |
+
#
|
| 8 |
+
# For the full list of built-in configuration values, see the documentation:
|
| 9 |
+
# https://www.sphinx-doc.org/en/master/usage/configuration.html
|
| 10 |
+
|
| 11 |
+
# -- Project information -----------------------------------------------------
|
| 12 |
+
# https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information
|
| 13 |
+
|
| 14 |
+
project = 'PROTAC-Degradation-Predictor'
|
| 15 |
+
copyright = '2024, Stefano Ribes'
|
| 16 |
+
author = 'Stefano Ribes'
|
| 17 |
+
release = 'v1.0.1'
|
| 18 |
+
|
| 19 |
+
# -- General configuration ---------------------------------------------------
|
| 20 |
+
# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration
|
| 21 |
+
|
| 22 |
+
extensions = [
|
| 23 |
+
'sphinx.ext.autodoc',
|
| 24 |
+
'sphinx.ext.napoleon',
|
| 25 |
+
]
|
| 26 |
+
|
| 27 |
+
templates_path = ['_templates']
|
| 28 |
+
exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store']
|
| 29 |
+
|
| 30 |
+
# The following will place the type hints in the description rather than in the function signature
|
| 31 |
+
autodoc_typehints = 'description'
|
| 32 |
+
|
| 33 |
+
# Mock pytorch lightning
|
| 34 |
+
autodoc_mock_imports = [
|
| 35 |
+
'pytorch_lightning',
|
| 36 |
+
]
|
| 37 |
+
|
| 38 |
+
# -- Options for HTML output -------------------------------------------------
|
| 39 |
+
# https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output
|
| 40 |
+
|
| 41 |
+
html_theme = 'sphinx_rtd_theme'
|
| 42 |
+
# html_theme = 'alabaster'
|
| 43 |
+
html_static_path = ['_static']
|
docs/index.rst
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
.. PROTAC-Degradation-Predictor documentation master file, created by
|
| 2 |
+
sphinx-quickstart on Mon Aug 19 11:16:51 2024.
|
| 3 |
+
You can adapt this file completely to your liking, but it should at least
|
| 4 |
+
contain the root `toctree` directive.
|
| 5 |
+
|
| 6 |
+
PROTAC-Degradation-Predictor documentation
|
| 7 |
+
==========================================
|
| 8 |
+
|
| 9 |
+
Add your content using ``reStructuredText`` syntax. See the
|
| 10 |
+
`reStructuredText <https://www.sphinx-doc.org/en/master/usage/restructuredtext/index.html>`_
|
| 11 |
+
documentation for details.
|
| 12 |
+
|
| 13 |
+
|
| 14 |
+
.. toctree::
|
| 15 |
+
:maxdepth: 4
|
| 16 |
+
:caption: Contents:
|
| 17 |
+
|
| 18 |
+
source/modules
|
docs/make.bat
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
@ECHO OFF
|
| 2 |
+
|
| 3 |
+
pushd %~dp0
|
| 4 |
+
|
| 5 |
+
REM Command file for Sphinx documentation
|
| 6 |
+
|
| 7 |
+
if "%SPHINXBUILD%" == "" (
|
| 8 |
+
set SPHINXBUILD=sphinx-build
|
| 9 |
+
)
|
| 10 |
+
set SOURCEDIR=.
|
| 11 |
+
set BUILDDIR=_build
|
| 12 |
+
|
| 13 |
+
%SPHINXBUILD% >NUL 2>NUL
|
| 14 |
+
if errorlevel 9009 (
|
| 15 |
+
echo.
|
| 16 |
+
echo.The 'sphinx-build' command was not found. Make sure you have Sphinx
|
| 17 |
+
echo.installed, then set the SPHINXBUILD environment variable to point
|
| 18 |
+
echo.to the full path of the 'sphinx-build' executable. Alternatively you
|
| 19 |
+
echo.may add the Sphinx directory to PATH.
|
| 20 |
+
echo.
|
| 21 |
+
echo.If you don't have Sphinx installed, grab it from
|
| 22 |
+
echo.https://www.sphinx-doc.org/
|
| 23 |
+
exit /b 1
|
| 24 |
+
)
|
| 25 |
+
|
| 26 |
+
if "%1" == "" goto help
|
| 27 |
+
|
| 28 |
+
%SPHINXBUILD% -M %1 %SOURCEDIR% %BUILDDIR% %SPHINXOPTS% %O%
|
| 29 |
+
goto end
|
| 30 |
+
|
| 31 |
+
:help
|
| 32 |
+
%SPHINXBUILD% -M help %SOURCEDIR% %BUILDDIR% %SPHINXOPTS% %O%
|
| 33 |
+
|
| 34 |
+
:end
|
| 35 |
+
popd
|
docs/source/modules.rst
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
protac_degradation_predictor
|
| 2 |
+
============================
|
| 3 |
+
|
| 4 |
+
.. toctree::
|
| 5 |
+
:maxdepth: 4
|
| 6 |
+
|
| 7 |
+
protac_degradation_predictor
|
docs/source/protac_degradation_predictor.optuna.rst
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
protac\_degradation\_predictor.optuna package
|
| 2 |
+
=============================================
|
| 3 |
+
|
| 4 |
+
Submodules
|
| 5 |
+
----------
|
| 6 |
+
|
| 7 |
+
protac\_degradation\_predictor.optuna.pytorch\_models module
|
| 8 |
+
------------------------------------------------------------
|
| 9 |
+
|
| 10 |
+
.. automodule:: protac_degradation_predictor.optuna.pytorch_models
|
| 11 |
+
:members:
|
| 12 |
+
:undoc-members:
|
| 13 |
+
:show-inheritance:
|
| 14 |
+
|
| 15 |
+
protac\_degradation\_predictor.optuna.sklearn\_models module
|
| 16 |
+
------------------------------------------------------------
|
| 17 |
+
|
| 18 |
+
.. automodule:: protac_degradation_predictor.optuna.sklearn_models
|
| 19 |
+
:members:
|
| 20 |
+
:undoc-members:
|
| 21 |
+
:show-inheritance:
|
| 22 |
+
|
| 23 |
+
protac\_degradation\_predictor.optuna.utils module
|
| 24 |
+
--------------------------------------------------
|
| 25 |
+
|
| 26 |
+
.. automodule:: protac_degradation_predictor.optuna.utils
|
| 27 |
+
:members:
|
| 28 |
+
:undoc-members:
|
| 29 |
+
:show-inheritance:
|
| 30 |
+
|
| 31 |
+
protac\_degradation\_predictor.optuna.xgboost\_models module
|
| 32 |
+
------------------------------------------------------------
|
| 33 |
+
|
| 34 |
+
.. automodule:: protac_degradation_predictor.optuna.xgboost_models
|
| 35 |
+
:members:
|
| 36 |
+
:undoc-members:
|
| 37 |
+
:show-inheritance:
|
| 38 |
+
|
| 39 |
+
Module contents
|
| 40 |
+
---------------
|
| 41 |
+
|
| 42 |
+
.. automodule:: protac_degradation_predictor.optuna
|
| 43 |
+
:members:
|
| 44 |
+
:undoc-members:
|
| 45 |
+
:show-inheritance:
|
docs/source/protac_degradation_predictor.rst
ADDED
|
@@ -0,0 +1,85 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
protac\_degradation\_predictor package
|
| 2 |
+
======================================
|
| 3 |
+
|
| 4 |
+
Subpackages
|
| 5 |
+
-----------
|
| 6 |
+
|
| 7 |
+
.. toctree::
|
| 8 |
+
:maxdepth: 4
|
| 9 |
+
|
| 10 |
+
protac_degradation_predictor.optuna
|
| 11 |
+
|
| 12 |
+
Submodules
|
| 13 |
+
----------
|
| 14 |
+
|
| 15 |
+
protac\_degradation\_predictor.config module
|
| 16 |
+
--------------------------------------------
|
| 17 |
+
|
| 18 |
+
.. automodule:: protac_degradation_predictor.config
|
| 19 |
+
:members:
|
| 20 |
+
:undoc-members:
|
| 21 |
+
:show-inheritance:
|
| 22 |
+
|
| 23 |
+
protac\_degradation\_predictor.data\_utils module
|
| 24 |
+
-------------------------------------------------
|
| 25 |
+
|
| 26 |
+
.. automodule:: protac_degradation_predictor.data_utils
|
| 27 |
+
:members:
|
| 28 |
+
:undoc-members:
|
| 29 |
+
:show-inheritance:
|
| 30 |
+
|
| 31 |
+
protac\_degradation\_predictor.optuna\_utils module
|
| 32 |
+
---------------------------------------------------
|
| 33 |
+
|
| 34 |
+
.. automodule:: protac_degradation_predictor.optuna_utils
|
| 35 |
+
:members:
|
| 36 |
+
:undoc-members:
|
| 37 |
+
:show-inheritance:
|
| 38 |
+
|
| 39 |
+
protac\_degradation\_predictor.optuna\_utils\_xgboost module
|
| 40 |
+
------------------------------------------------------------
|
| 41 |
+
|
| 42 |
+
.. automodule:: protac_degradation_predictor.optuna_utils_xgboost
|
| 43 |
+
:members:
|
| 44 |
+
:undoc-members:
|
| 45 |
+
:show-inheritance:
|
| 46 |
+
|
| 47 |
+
protac\_degradation\_predictor.protac\_dataset module
|
| 48 |
+
-----------------------------------------------------
|
| 49 |
+
|
| 50 |
+
.. automodule:: protac_degradation_predictor.protac_dataset
|
| 51 |
+
:members:
|
| 52 |
+
:undoc-members:
|
| 53 |
+
:show-inheritance:
|
| 54 |
+
|
| 55 |
+
protac\_degradation\_predictor.protac\_degradation\_predictor module
|
| 56 |
+
--------------------------------------------------------------------
|
| 57 |
+
|
| 58 |
+
.. automodule:: protac_degradation_predictor.protac_degradation_predictor
|
| 59 |
+
:members:
|
| 60 |
+
:undoc-members:
|
| 61 |
+
:show-inheritance:
|
| 62 |
+
|
| 63 |
+
protac\_degradation\_predictor.pytorch\_models module
|
| 64 |
+
-----------------------------------------------------
|
| 65 |
+
|
| 66 |
+
.. automodule:: protac_degradation_predictor.pytorch_models
|
| 67 |
+
:members:
|
| 68 |
+
:undoc-members:
|
| 69 |
+
:show-inheritance:
|
| 70 |
+
|
| 71 |
+
protac\_degradation\_predictor.sklearn\_models module
|
| 72 |
+
-----------------------------------------------------
|
| 73 |
+
|
| 74 |
+
.. automodule:: protac_degradation_predictor.sklearn_models
|
| 75 |
+
:members:
|
| 76 |
+
:undoc-members:
|
| 77 |
+
:show-inheritance:
|
| 78 |
+
|
| 79 |
+
Module contents
|
| 80 |
+
---------------
|
| 81 |
+
|
| 82 |
+
.. automodule:: protac_degradation_predictor
|
| 83 |
+
:members:
|
| 84 |
+
:undoc-members:
|
| 85 |
+
:show-inheritance:
|