Skip to content

Commit 106c4bc

Browse files
finishes initial structure
1 parent 97f5f02 commit 106c4bc

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

57 files changed

+420
-50
lines changed

CITING.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Citing
2+
3+
Cite HADDOCK3 with the following:
4+
5+
HADDOCK3, Bonvin's Lab, https://github.com/haddocking/haddock3, 2022.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Cheers!
1313

1414
## 1. Installation
1515

16-
To install HADDOCK3 follow the instructions in the [INSTALL](INSTALL.md) file.
16+
To install HADDOCK3 follow the instructions in the [INSTALL](docs/INSTALL.md) file.
1717

1818
## 2. Examples
1919

INSTALL.md renamed to docs/INSTALL.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
# 1. Installation
1+
# Installation
22

33
Open a `terminal` window and navigate to the folder where you want to
44
install HADDOCK3; for example: `software`. The current installation
55
instructions are local and will affect only your user.
66

7-
## 1.1 Clone this repository:
7+
## 1 Clone this repository:
88

99
Mind the `--recursive` flag when cloning!
1010

@@ -20,7 +20,7 @@ cd -
2020
By the end of the above commands, you should be back to the `haddock3`
2121
main folder.
2222

23-
## 1.2 Create a virtual environment with Python 3.9+ and install dependencies:
23+
## 2 Create a virtual environment with Python 3.9+ and install dependencies:
2424

2525
You can use Python's `venv` or Anaconda depending on your choice.
2626
Commands are provided below:
@@ -40,13 +40,13 @@ conda env create -f requirements.yml
4040
conda activate haddock3
4141
```
4242

43-
## 1.3 Install the HADDOCK3 package and command line clients
43+
## 3 Install the HADDOCK3 package and command line clients
4444

4545
```bash
4646
python setup.py develop --no-deps
4747
```
4848

49-
## 1.4 Make a CNS binary shortcut to the expected path:
49+
## 4 Make a CNS binary shortcut to the expected path:
5050

5151
```bash
5252
mkdir -p bin/
@@ -64,7 +64,7 @@ HADDOCK3 from anywhere. To run HADDOCK3, follow the [usage
6464
guidelines](USAGE.md).
6565

6666

67-
## 1.5 Keep your installation up to date
67+
## 5 Keep your installation up to date
6868

6969
Navigate to the `haddock3` installation folder (the one you cloned from
7070
GitHub). Ensure you have the `haddock3` python environment activated.

USAGE.md renamed to docs/USAGE.md

File renamed without changes.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
.. include:: ../USAGE.md
1+
.. include:: ../CITING.md
22
:parser: myst_parser.sphinx_

docs/clients/clibm.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
Benchmark Client
2+
================
3+
4+
.. argparse::
5+
:module: haddock.clis.cli_bm
6+
:func: _ap
7+
:prog: haddock3-bm

docs/clients/clicfg.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
Retrieve config
2+
===============
3+
4+
.. argparse::
5+
:module: haddock.clis.cli_cfg
6+
:func: _ap
7+
:prog: haddock3-cfg

docs/clients/clidmn.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
Benchmark Daemon
2+
================
3+
4+
.. argparse::
5+
:module: haddock.clis.cli_dmn
6+
:func: _ap
7+
:prog: haddock3-dmn

docs/clients/clihd3.rst

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
Run HADDOCK3
2+
============
3+
4+
.. automodule:: haddock.clis.cli
5+
6+
.. argparse::
7+
:module: haddock.clis.cli
8+
:func: _ap
9+
:prog: haddock3

docs/clients/climpi.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
HADDOCK3 MPI Run
2+
================
3+
4+
.. argparse::
5+
:module: haddock.clis.cli_mpi
6+
:func: _ap
7+
:prog: haddock3-mpitask

docs/clients/index.rst

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
Command-line interfaces
2+
=======================
3+
4+
HADDOCK3 has a series of command-line interfaces (CLIs), from which the most important
5+
one is ``haddock3``. You can ask help to the CLIs with the ``-h`` flag::
6+
7+
haddock3 -h
8+
9+
The available CLIs are the following:
10+
11+
.. toctree::
12+
:maxdepth: 1
13+
14+
clihd3
15+
clicfg
16+
clibm
17+
clidmn
18+
climpi

devtools/docs-conf.py renamed to docs/conf.py

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,20 +8,21 @@
88

99

1010
mock_modules = [
11+
'Bio',
12+
'Bio.Align',
13+
'Bio.Seq',
1114
'biopython',
15+
'fccpy',
16+
'fccpy.contacts',
1217
'jsonpickle',
18+
'mpi4py',
1319
'numpy',
1420
'pdbtools',
1521
'pdbtools.pdb_segxchain',
1622
'pdbtools.pdb_splitchain',
1723
'pdbtools.pdb_splitmodel',
1824
'pdbtools.pdb_tidy',
1925
'pyyaml',
20-
'Bio',
21-
'Bio.Align',
22-
'Bio.Seq',
23-
'fccpy',
24-
'fccpy.contacts',
2526
]
2627

2728
for modulename in mock_modules:
@@ -82,3 +83,6 @@
8283
napoleon_use_ivar = True
8384
napoleon_use_rtype = False
8485
napoleon_use_param = False
86+
87+
# myst options
88+
myst_heading_anchors = 3
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
.. include:: ../INSTALL.md
1+
.. include:: ../CONTRIBUTING.md
22
:parser: myst_parser.sphinx_

docs/examples.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ The HADDOCK3 `examples/` directory contains various subdirectories and config fi
44
corresponding to different types of complexes, scenarios and data.
55

66
1. [docking-antibody-antigen](#docking-antibogy-antigen)
7-
1. [docking-protein-DNA](#docking-protein-DNA)
7+
1. [docking-protein-DNA](#docking-protein-dna)
88
1. [docking-protein-homotrimer](#docking-protein-homotrimer)
99
1. [docking-protein-ligand](#docking-protein-ligand)
1010
1. [docking-protein-ligand-shape](#docking-protein-ligand-shape)
@@ -38,7 +38,7 @@ Two different protocols/workflows are illustrated:
3838
The `caprieval` module is called at various stages during the workflow to assess the quality of the models with respect to the known reference structure.
3939

4040

41-
## docking-protein-DNA
41+
## docking-protein-dna
4242

4343
A protein-DNA docking example making use of rather specific protein-DNA distance restraints defined in the `ambig.tbl` file in the `data` directory.
4444

docs/index.rst

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,13 @@ Contents
1414
.. toctree::
1515
:maxdepth: 1
1616

17-
installation
18-
usage
17+
INSTALL
18+
USAGE
1919
examples
2020
tutorials/index
21+
clients/index
2122
modules/index
22-
reference/clients
23+
testing/index
2324
contributing
2425
citing
2526
reference/index

docs/reference/core/cns_paths.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
CNS paths definitions
2+
=====================
3+
4+
.. automodule:: haddock.core.cns_paths
5+
:members:
6+
:show-inheritance:
7+
:inherited-members:

docs/reference/core/defaults.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
Defaults definitions
2+
=====================
3+
4+
.. automodule:: haddock.core.defaults
5+
:members:
6+
:show-inheritance:
7+
:inherited-members:

docs/reference/core/exceptions.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
Exceptions
2+
==========
3+
4+
.. automodule:: haddock.core.exceptions
5+
:members:
6+
:show-inheritance:
7+
:inherited-members:

docs/reference/core/index.rst

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
Core Reference
2+
==============
3+
4+
Here, you will find documentation for core haddock3 functionalities.
5+
6+
.. toctree::
7+
:maxdepth: 1
8+
9+
cns_paths
10+
defaults
11+
exceptions
12+

docs/reference/gear/config_reader.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
Config Reader
2+
=============
3+
4+
.. automodule:: haddock.gear.config_reader
5+
:members:
6+
:show-inheritance:
7+
:inherited-members:

docs/reference/gear/config_writer.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
Config Writer
2+
=============
3+
4+
.. automodule:: haddock.gear.config_writer
5+
:members:
6+
:show-inheritance:
7+
:inherited-members:
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
Expandable Parameters
2+
=====================
3+
4+
.. automodule:: haddock.gear.expandable_parameters
5+
:members:
6+
:show-inheritance:
7+
:inherited-members:

docs/reference/gear/greetings.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
Greetings messages
2+
==================
3+
4+
.. automodule:: haddock.gear.greetings
5+
:members:
6+
:show-inheritance:
7+
:inherited-members:

docs/reference/gear/haddockmodel.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
HADDOCK Models
2+
==============
3+
4+
.. automodule:: haddock.gear.haddockmodel
5+
:members:
6+
:show-inheritance:
7+
:inherited-members:

docs/reference/gear/index.rst

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
Gear Reference
2+
==============
3+
4+
Here, you will find documentation to use HADDOCK3 Gears as a library.
5+
6+
.. toctree::
7+
:maxdepth: 1
8+
9+
config_reader
10+
config_writer
11+
expandable_parameters
12+
greetings
13+
haddockmodel
14+
parameters
15+
prepare_run
16+
restart_run
17+
validations
18+
yaml2cfg
19+
zerofill

docs/reference/gear/parameters.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
Parameters helper
2+
=================
3+
4+
.. automodule:: haddock.gear.parameters
5+
:members:
6+
:show-inheritance:
7+
:inherited-members:

docs/reference/gear/prepare_run.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
Prepare Run
2+
===========
3+
4+
.. automodule:: haddock.gear.prepare_run
5+
:members:
6+
:show-inheritance:
7+
:inherited-members:

docs/reference/gear/restart_run.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
Restart Run
2+
===========
3+
4+
.. automodule:: haddock.gear.restart_run
5+
:members:
6+
:show-inheritance:
7+
:inherited-members:

docs/reference/gear/validations.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
Validations
2+
===========
3+
4+
.. automodule:: haddock.gear.validations
5+
:members:
6+
:show-inheritance:
7+
:inherited-members:

docs/reference/gear/yaml2cfg.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
Yaml configs
2+
============
3+
4+
.. automodule:: haddock.gear.yaml2cfg
5+
:members:
6+
:show-inheritance:
7+
:inherited-members:

docs/reference/gear/zerofill.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
Zero fill prefix
2+
================
3+
4+
.. automodule:: haddock.gear.zerofill
5+
:members:
6+
:show-inheritance:
7+
:inherited-members:

docs/reference/index.rst

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
Library Reference
2+
=================
3+
4+
Here, you will find documentation to use HADDOCK3 as a library.
5+
6+
.. toctree::
7+
:maxdepth: 1
8+
9+
core/index
10+
libs/index
11+
gear/index

docs/reference/libs/index.rst

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
Libs Reference
2+
==============
3+
4+
Here, you will find documentation for general haddock3 functionalities.
5+
6+
.. toctree::
7+
:maxdepth: 1
8+
9+
libcli
10+
libcns
11+
libfunc
12+
libhpc
13+
libio
14+
liblog
15+
libmath
16+
libmpi
17+
libontology
18+
libparallel
19+
libpdb
20+
libstructure
21+
libsubprocess
22+
libutil
23+
libworkflow

docs/reference/libs/libcli.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
libcli: functions helping clients
2+
=================================
3+
4+
.. automodule:: haddock.libs.libcli
5+
:members:
6+
:show-inheritance:
7+
:inherited-members:

docs/reference/libs/libcns.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
libcns: creating CNS files
2+
==========================
3+
4+
.. automodule:: haddock.libs.libcns
5+
:members:
6+
:show-inheritance:
7+
:inherited-members:

0 commit comments

Comments
 (0)