ribesstefano commited on
Commit
6dab7ba
·
1 Parent(s): 840a9f3

Updated docs index

Browse files
Files changed (2) hide show
  1. docs/README.md +48 -1
  2. docs/index.rst +101 -9
docs/README.md CHANGED
@@ -1,7 +1,54 @@
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`
 
1
  # Useful Tips on How to Build the Documentation
2
 
3
+ ## Steps
4
 
5
+ 1. Install `sphinx` and `sphinx_rtd_theme`:
6
+ ```bash
7
+ pip install sphinx sphinx_rtd_theme
8
+ ```
9
+ 2. Create a `docs` directory in the root of the project:
10
+ ```bash
11
+ mkdir docs
12
+ ```
13
+ 3. Create the documentation structure:
14
+ ```bash
15
+ cd docs
16
+ sphinx-quickstart
17
+ ```
18
+ - Answer the questions as follows:
19
+ - Separate source and build directories (y/n) [n]: n
20
+ - Project name: PROTAC-Degradation-Predictor
21
+ - Author name(s): Your Name
22
+ - Project version: v1.0.1
23
+ ```
24
+ 4. Edit the `conf.py` file:
25
+ - Add the following lines:
26
+ ```python
27
+ import os
28
+ import sys
29
+ sys.path.insert(0, os.path.abspath('..'))
30
+ ```
31
+ - Add the following line to the `extensions` list:
32
+ ```python
33
+ 'sphinx.ext.autodoc',
34
+ ```
35
+ - Check the current `conf.py` file in this repository for more details.
36
+ 5. Create modules rst files: `sphinx-apidoc -o docs/source/ ./protac_degradation_predictor`
37
+ 6. To include modules in the documentation, in `index.rst`, add the following line: `source/modules`
38
+ 7. Setup the gh-pages branch:
39
+ ```bash
40
+ git checkout --orphan gh-pages
41
+ git reset --hard
42
+ git commit --allow-empty -m "Init"
43
+ git push origin gh-pages
44
+ git checkout main
45
+ ```
46
+ 8. Generate the specific workflow Action file:
47
+ - See file `.github/workflows/gh-pages.yml` in this repository.
48
+
49
+ ## Miscellaneous
50
+
51
+ - Useful [guide](https://olgarithms.github.io/sphinx-tutorial/docs/7-hosting-on-github-pages.html)
52
  - Automatically create modules rst files: `sphinx-apidoc -o source/ ../protac_degradation_predictor`
53
  - Then, in `index.rst`, add the following line: `source/modules`
54
  - Build the documentation: `make clean ; make html`
docs/index.rst CHANGED
@@ -1,18 +1,110 @@
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
 
1
  .. PROTAC-Degradation-Predictor documentation master file, created by
2
+ sphinx-quickstart on Mon Aug 23 17:31:15 2021.
3
  You can adapt this file completely to your liking, but it should at least
4
  contain the root `toctree` directive.
5
 
6
+ ===========================================================
7
+ PROTAC-Degradation-Predictor: Documentation and Overview
8
+ ===========================================================
9
 
10
+ **PROTAC-Degradation-Predictor** is a Python package designed to predict the activity of PROTAC molecules using advanced machine learning techniques. The tool aims to assist researchers in evaluating the potential effectiveness of PROTACs, a novel class of drugs that target protein degradation.
 
 
11
 
12
+ .. .. image:: https://yourimageurl.com/logo.png # Add your project's logo or any relevant image
13
+ .. :align: center
14
+
15
+ Introduction
16
+ ============
17
+
18
+ PROTACs (Proteolysis Targeting Chimeras) are a class of molecules that induce the degradation of specific proteins. This package allows researchers to predict the activity of PROTACs by leveraging a variety of machine learning models, including XGBoost and PyTorch-based pretrained neural networks.
19
+
20
+ The primary functionalities of this package include:
21
+ - Predicting PROTAC activity using different machine learning models.
22
+ - Accessing curated datasets for training and evaluation.
23
+ - Hyperparameter tuning and model training using Optuna.
24
+
25
+ Features
26
+ ========
27
+
28
+ - **Machine Learning Models**: Utilize XGBoost, PyTorch, and scikit-learn models to predict PROTAC activity (refer to the :func:`protac_degradation_predictor.get_protac_active_proba` function).
29
+ - **Dataset Handling**: Load and manage datasets specific to PROTAC research (refer to the :func:`protac_degradation_predictor.data_utils.load_curated_dataset` function).
30
+ - **Customizability**: Tune model hyperparameters and experiment with different model configurations (refer to the :func:`protac_degradation_predictor.optuna_utils.hyperparameter_tuning_and_training` function).
31
+
32
+ Quickstart
33
+ ==========
34
+
35
+ To get started with PROTAC-Degradation-Predictor, follow these steps:
36
+
37
+ 1. **Installation**:
38
+ Install the package using pip:
39
+
40
+ .. code-block:: bash
41
+
42
+ git clone https://github.com/ribesstefano/PROTAC-Degradation-Predictor.git
43
+ cd PROTAC-Degradation-Predictor
44
+ pip install .
45
+
46
+ 2. **Basic Usage**:
47
+ Here's an example of how to predict PROTAC activity:
48
+
49
+ .. code-block:: python
50
+
51
+ from protac_degradation_predictor import get_protac_active_proba
52
+
53
+ smiles = "CC(C)C1=CC=C(C=C1)C2=NC3=CC=CC=C3C(=O)N2"
54
+ e3_ligase = "Q9Y6K9"
55
+ target_uniprot = "P04637"
56
+ cell_line = "HCT116"
57
+
58
+ prediction = get_protac_active_proba(
59
+ protac_smiles=smiles,
60
+ e3_ligase=e3_ligase,
61
+ target_uniprot=target_uniprot,
62
+ cell_line=cell_line,
63
+ device='cpu',
64
+ use_models_from_cv=False,
65
+ use_xgboost_models=True,
66
+ study_type='standard'
67
+ )
68
+ print(prediction)
69
+
70
+ For more detailed usage and customization, refer to the relevant sections below.
71
+
72
+ Contents
73
+ ========
74
 
75
  .. toctree::
76
+ :maxdepth: 2
77
+ :caption: Documentation Contents:
78
+
79
+ source/modules
80
+ source/protac_degradation_predictor
81
+ source/protac_degradation_predictor.optuna_utils
82
+ source/protac_degradation_predictor.protac_dataset
83
+ source/protac_degradation_predictor.pytorch_models
84
+
85
+ Getting Help
86
+ ============
87
+
88
+ If you encounter any issues or have questions, please refer to the following resources:
89
+ - **Documentation**: Full API documentation and user guide.
90
+ - **GitHub Issues**: Report bugs or request features on the [GitHub Issues](https://github.com/ribesstefano/PROTAC-Degradation-Predictor/issues) page.
91
+ - **Contributing**: Learn how to contribute to the project by reading our [Contribution Guidelines](https://github.com/ribesstefano/PROTAC-Degradation-Predictor/blob/main/CONTRIBUTING.md).
92
+
93
+ License
94
+ =======
95
+
96
+ This project is licensed under the MIT License. See the [LICENSE](https://github.com/ribesstefano/PROTAC-Degradation-Predictor/blob/main/LICENSE) file for details.
97
+
98
+ About
99
+ =====
100
+
101
+ **Author**: Stefano Ribes
102
+
103
+ **Version**: v1.0.1
104
+
105
+ Built with Sphinx using the [Read the Docs theme](https://sphinx-rtd-theme.readthedocs.io/).
106
+
107
+ ----------
108
+
109
+ *This documentation was last updated on August 19, 2024.*
110