tap-developability 2.0.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- tap_developability-2.0.1/LICENCE +11 -0
- tap_developability-2.0.1/PKG-INFO +202 -0
- tap_developability-2.0.1/README.md +165 -0
- tap_developability-2.0.1/pyproject.toml +120 -0
- tap_developability-2.0.1/pyproject.toml.orig +109 -0
- tap_developability-2.0.1/src/tap_developability/CDR_Profiler/CDR_Assigner.py +96 -0
- tap_developability-2.0.1/src/tap_developability/CDR_Profiler/__init__.py +0 -0
- tap_developability-2.0.1/src/tap_developability/Hydrophobicity_and_Charge_Profiler/Common/PDBUtils.py +187 -0
- tap_developability-2.0.1/src/tap_developability/Hydrophobicity_and_Charge_Profiler/Common/__init__.py +0 -0
- tap_developability-2.0.1/src/tap_developability/Hydrophobicity_and_Charge_Profiler/Hydrophobicity_and_Charge_Assigner.py +814 -0
- tap_developability-2.0.1/src/tap_developability/Hydrophobicity_and_Charge_Profiler/__init__.py +0 -0
- tap_developability-2.0.1/src/tap_developability/Hydrophobicity_and_Charge_Profiler/dat/Hydrophobics.txt +20 -0
- tap_developability-2.0.1/src/tap_developability/Hydrophobicity_and_Charge_Profiler/surface.py +126 -0
- tap_developability-2.0.1/src/tap_developability/Plotters/CDRLen_D3_Template.py +3 -0
- tap_developability-2.0.1/src/tap_developability/Plotters/PNC_D3_Template.py +3 -0
- tap_developability-2.0.1/src/tap_developability/Plotters/PPC_D3_Template.py +3 -0
- tap_developability-2.0.1/src/tap_developability/Plotters/PSH_D3_Template.py +3 -0
- tap_developability-2.0.1/src/tap_developability/Plotters/SFvCSP_D3_Template.py +3 -0
- tap_developability-2.0.1/src/tap_developability/Plotters/__init__.py +26 -0
- tap_developability-2.0.1/src/tap_developability/__init__.py +0 -0
- tap_developability-2.0.1/src/tap_developability/cli.py +470 -0
- tap_developability-2.0.1/src/tap_developability/structure/__init__.py +0 -0
- tap_developability-2.0.1/src/tap_developability/structure/pdb_remove_hydrogens.py +28 -0
- tap_developability-2.0.1/src/tap_developability/structure/process_pdb.py +311 -0
- tap_developability-2.0.1/src/tap_developability/structure/sequence_liabilities.py +74 -0
- tap_developability-2.0.1/src/tap_developability/thresholds.py +91 -0
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
Copyright © 2019 University of Oxford
|
|
2
|
+
|
|
3
|
+
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
|
|
4
|
+
|
|
5
|
+
1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
|
|
6
|
+
|
|
7
|
+
2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
|
|
8
|
+
|
|
9
|
+
3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
|
|
10
|
+
|
|
11
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: tap-developability
|
|
3
|
+
Version: 2.0.1
|
|
4
|
+
Summary: TAP: the Therapeutic Antibody Profiler.
|
|
5
|
+
Keywords: antibody,developability,therapeutic antibodies,structural bioinformatics,bioinformatics
|
|
6
|
+
Author: Matthew I. J. Raybould, Charlotte M. Deane
|
|
7
|
+
Author-email: Matthew I. J. Raybould <opig@stats.ox.ac.uk>, Charlotte M. Deane <opig@stats.ox.ac.uk>
|
|
8
|
+
License-Expression: BSD-3-Clause
|
|
9
|
+
License-File: LICENCE
|
|
10
|
+
Classifier: Development Status :: 5 - Production/Stable
|
|
11
|
+
Classifier: Environment :: Console
|
|
12
|
+
Classifier: Intended Audience :: Science/Research
|
|
13
|
+
Classifier: Operating System :: POSIX
|
|
14
|
+
Classifier: Programming Language :: Python :: 3
|
|
15
|
+
Classifier: Programming Language :: Python :: 3 :: Only
|
|
16
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
17
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
18
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
19
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
20
|
+
Classifier: Topic :: Scientific/Engineering :: Bio-Informatics
|
|
21
|
+
Requires-Dist: antibody-utils[numbering]>=0.1.1
|
|
22
|
+
Requires-Dist: biopython>=1.83
|
|
23
|
+
Requires-Dist: freesasa
|
|
24
|
+
Requires-Dist: immunebuilder>=1.2
|
|
25
|
+
Requires-Dist: numpy
|
|
26
|
+
Requires-Dist: openmm
|
|
27
|
+
Requires-Dist: pdbfixer
|
|
28
|
+
Requires-Dist: scipy
|
|
29
|
+
Requires-Python: >=3.11
|
|
30
|
+
Project-URL: Homepage, https://opig.stats.ox.ac.uk/webapps/sabdab-sabpred/sabpred/tap
|
|
31
|
+
Project-URL: Documentation, https://github.com/oxpig/TAP#readme
|
|
32
|
+
Project-URL: Repository, https://github.com/oxpig/TAP
|
|
33
|
+
Project-URL: Issues, https://github.com/oxpig/TAP/issues
|
|
34
|
+
Project-URL: Changelog, https://github.com/oxpig/TAP/blob/master/CHANGELOG.md
|
|
35
|
+
Project-URL: Paper, https://doi.org/10.1073/pnas.1810576116
|
|
36
|
+
Description-Content-Type: text/markdown
|
|
37
|
+
|
|
38
|
+
```text
|
|
39
|
+
#######################################################################################
|
|
40
|
+
|
|
41
|
+
__/\\\\\\\\\\\\\\___/\\\\\\\\____/\\\\\\\\\\____
|
|
42
|
+
_\///////\\/////__/\\\\\\\\\\\__\//////////\\___
|
|
43
|
+
_______\/\\______/\\/////////\\_\/\\_____\/\\___
|
|
44
|
+
_______\/\\_____\/\\_______\/\\_\/\\\\\\\\\/____
|
|
45
|
+
_______\/\\_____\/\\\\\\\\\\/\\_\/////////______
|
|
46
|
+
_______\/\\_____\/\\/////////\\_\/\\____________
|
|
47
|
+
_______\/\\_____\/\\_______\/\\_\/\\____________
|
|
48
|
+
_______\/\\_____\/\\_______\/\\_\/\\____________
|
|
49
|
+
_______\///_____\///_______\///_\///____________
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
THE THERAPEUTIC ANTIBODY PROFILER
|
|
53
|
+
|
|
54
|
+
#######################################################################################
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
<div align="center">
|
|
58
|
+
|
|
59
|
+
# The Therapeutic Antibody Profiler
|
|
60
|
+
|
|
61
|
+
[](https://github.com/oxpig/TAP/actions/workflows/tests.yaml)
|
|
62
|
+
[](https://results.pre-commit.ci/latest/github/oxpig/TAP/master)
|
|
63
|
+
[](https://pypi.org/project/tap-developability/)
|
|
64
|
+
[](https://anaconda.org/bioconda/tap-developability)
|
|
65
|
+
[](LICENCE)
|
|
66
|
+
|
|
67
|
+
</div>
|
|
68
|
+
|
|
69
|
+
## About
|
|
70
|
+
|
|
71
|
+
The Therapeutic Antibody Profiler (TAP) flags antibody variable domains whose
|
|
72
|
+
properties are unusual among clinical-stage therapeutics. It models a paired
|
|
73
|
+
heavy and light chain with [ABodyBuilder2](https://github.com/oxpig/ImmuneBuilder),
|
|
74
|
+
and compares five metrics with their distributions across the variable regions
|
|
75
|
+
of post-Phase-I clinical-stage therapeutics:
|
|
76
|
+
|
|
77
|
+
| Metric | Abbreviation | From |
|
|
78
|
+
| --- | --- | --- |
|
|
79
|
+
| Total IMGT CDR length | L | The sequence |
|
|
80
|
+
| Patches of surface hydrophobicity | PSH | The model |
|
|
81
|
+
| Patches of positive charge | PPC | The model |
|
|
82
|
+
| Patches of negative charge | PNC | The model |
|
|
83
|
+
| Structural Fv charge symmetry parameter | SFvCSP | The model |
|
|
84
|
+
|
|
85
|
+
Each metric is flagged green, amber (in the extremes of the clinical-stage
|
|
86
|
+
distribution) or red (beyond it). The thresholds are defined in
|
|
87
|
+
[`thresholds.py`](src/tap_developability/thresholds.py). TAP also reports the
|
|
88
|
+
CDR sequences and the model's sequence liabilities.
|
|
89
|
+
|
|
90
|
+
TAP was developed in the _Oxford Protein Informatics Group_
|
|
91
|
+
([OPIG](https://opig.stats.ox.ac.uk/)), Department of Statistics, University of
|
|
92
|
+
Oxford.
|
|
93
|
+
|
|
94
|
+
**Authors**
|
|
95
|
+
|
|
96
|
+
* Matthew I. J. Raybould (University of Oxford)
|
|
97
|
+
* Claire Marks (University of Oxford)
|
|
98
|
+
* Konrad Krawczyk (University of Oxford)
|
|
99
|
+
* Bruck Taddese (AstraZeneca)
|
|
100
|
+
* Jaroslaw Nowak (University of Oxford)
|
|
101
|
+
* Alan P. Lewis (GSK)
|
|
102
|
+
* Alexander Bujotzek (Roche)
|
|
103
|
+
* Jiye Shi (UCB)
|
|
104
|
+
* Charlotte M. Deane (University of Oxford)
|
|
105
|
+
|
|
106
|
+
## Citing this work
|
|
107
|
+
|
|
108
|
+
If you use TAP, please cite
|
|
109
|
+
[the paper](https://doi.org/10.1073/pnas.1810576116):
|
|
110
|
+
|
|
111
|
+
```tex
|
|
112
|
+
@article{raybould2019,
|
|
113
|
+
title={Five computational developability guidelines for therapeutic antibody profiling},
|
|
114
|
+
author={Raybould, Matthew I. J. and Marks, Claire and Krawczyk, Konrad and Taddese, Bruck and Nowak, Jaroslaw and Lewis, Alan P. and Bujotzek, Alexander and Shi, Jiye and Deane, Charlotte M.},
|
|
115
|
+
journal={Proceedings of the National Academy of Sciences},
|
|
116
|
+
volume={116},
|
|
117
|
+
number={10},
|
|
118
|
+
pages={4025--4030},
|
|
119
|
+
year={2019},
|
|
120
|
+
doi={10.1073/pnas.1810576116}
|
|
121
|
+
}
|
|
122
|
+
```
|
|
123
|
+
|
|
124
|
+
## Web tool
|
|
125
|
+
|
|
126
|
+
TAP is also available as a web application, as part of
|
|
127
|
+
[SAbPred](https://opig.stats.ox.ac.uk/webapps/sabdab-sabpred/sabpred/tap).
|
|
128
|
+
|
|
129
|
+
## Installation
|
|
130
|
+
|
|
131
|
+
TAP is distributed through [Bioconda](https://bioconda.github.io/), which is
|
|
132
|
+
the recommended way to install it:
|
|
133
|
+
|
|
134
|
+
```bash
|
|
135
|
+
conda install -c conda-forge -c bioconda tap-developability
|
|
136
|
+
```
|
|
137
|
+
|
|
138
|
+
**Note:** TAP's Bioconda package is not available yet, but will follow soon.
|
|
139
|
+
Until then, install TAP from PyPI, as below.
|
|
140
|
+
|
|
141
|
+
TAP depends on [ANARCI](https://github.com/oxpig/ANARCI) and HMMER from
|
|
142
|
+
Bioconda, and on [ABodyBuilder2](https://github.com/oxpig/ImmuneBuilder),
|
|
143
|
+
[antibody-utils](https://github.com/oxpig/antibody-utils) (which numbers
|
|
144
|
+
sequences with [ANARCII](https://github.com/oxpig/ANARCII)), DSSP and FreeSASA.
|
|
145
|
+
|
|
146
|
+
TAP is also on [PyPI](https://pypi.org/project/tap-developability/), but a
|
|
147
|
+
PyPI install is incomplete: ANARCI and DSSP's `mkdssp` program aren't on PyPI.
|
|
148
|
+
Install them with Conda first, then TAP with pip:
|
|
149
|
+
|
|
150
|
+
```bash
|
|
151
|
+
conda install -c conda-forge -c bioconda anarci "dssp>=4"
|
|
152
|
+
pip install tap-developability
|
|
153
|
+
```
|
|
154
|
+
|
|
155
|
+
Do not install the `anarci` package from PyPI, which is not an official release.
|
|
156
|
+
|
|
157
|
+
ABodyBuilder2 downloads its trained weights on first use. Conda installs a
|
|
158
|
+
CUDA-enabled PyTorch where it detects a GPU, and a CPU-only one otherwise.
|
|
159
|
+
|
|
160
|
+
## Usage
|
|
161
|
+
|
|
162
|
+
For a single antibody, with its heavy and light chains separated by `/`:
|
|
163
|
+
|
|
164
|
+
```bash
|
|
165
|
+
TAP --name my_antibody --output my_antibody_output --seq [heavy chain]/[light chain]
|
|
166
|
+
```
|
|
167
|
+
|
|
168
|
+
For multiple antibodies in a FASTA file, with each record's heavy and light
|
|
169
|
+
chains separated by `/`:
|
|
170
|
+
|
|
171
|
+
```bash
|
|
172
|
+
TAP --output /path/to/output/directory --file /path/to/sequences.fasta --ncores 4
|
|
173
|
+
```
|
|
174
|
+
|
|
175
|
+
TAP models each antibody with ABodyBuilder2, then writes its results to the
|
|
176
|
+
output directory: a log for each antibody, a JSON summary of the metrics and
|
|
177
|
+
their flags (`TAP_Results_SingleSeqEntry_[name].json` or
|
|
178
|
+
`TAP_Results_Multientry.json`), and the models, their modelling details and
|
|
179
|
+
their sequence liabilities in `Final_Models/`. With `--web`, it also writes the
|
|
180
|
+
data for the plots shown by the web application.
|
|
181
|
+
|
|
182
|
+
To profile antibody models that you already have:
|
|
183
|
+
|
|
184
|
+
```bash
|
|
185
|
+
TAP --output /path/to/output/directory --models /path/to/models
|
|
186
|
+
```
|
|
187
|
+
|
|
188
|
+
The models must be numbered in IMGT, with the heavy chain as chain H and the
|
|
189
|
+
light chain as chain L, as ABodyBuilder2 writes them, and without hydrogen
|
|
190
|
+
atoms. TAP writes the metrics for every model to `TAP_Results_Multientry.json`,
|
|
191
|
+
and writes annotated copies of the models, and `Final_Models/` and `tmp/`
|
|
192
|
+
directories, into the models' directory.
|
|
193
|
+
|
|
194
|
+
The thresholds were calibrated with the Kyte & Doolittle hydrophobicity scale,
|
|
195
|
+
which is the default (`--hscale 0`). For more options and information, run
|
|
196
|
+
`TAP --help`.
|
|
197
|
+
|
|
198
|
+
## Contributing
|
|
199
|
+
|
|
200
|
+
To set up a development environment, run the tests or make a release, see
|
|
201
|
+
[`CONTRIBUTING.md`](CONTRIBUTING.md). Changes are recorded in
|
|
202
|
+
[`CHANGELOG.md`](CHANGELOG.md).
|
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
```text
|
|
2
|
+
#######################################################################################
|
|
3
|
+
|
|
4
|
+
__/\\\\\\\\\\\\\\___/\\\\\\\\____/\\\\\\\\\\____
|
|
5
|
+
_\///////\\/////__/\\\\\\\\\\\__\//////////\\___
|
|
6
|
+
_______\/\\______/\\/////////\\_\/\\_____\/\\___
|
|
7
|
+
_______\/\\_____\/\\_______\/\\_\/\\\\\\\\\/____
|
|
8
|
+
_______\/\\_____\/\\\\\\\\\\/\\_\/////////______
|
|
9
|
+
_______\/\\_____\/\\/////////\\_\/\\____________
|
|
10
|
+
_______\/\\_____\/\\_______\/\\_\/\\____________
|
|
11
|
+
_______\/\\_____\/\\_______\/\\_\/\\____________
|
|
12
|
+
_______\///_____\///_______\///_\///____________
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
THE THERAPEUTIC ANTIBODY PROFILER
|
|
16
|
+
|
|
17
|
+
#######################################################################################
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
<div align="center">
|
|
21
|
+
|
|
22
|
+
# The Therapeutic Antibody Profiler
|
|
23
|
+
|
|
24
|
+
[](https://github.com/oxpig/TAP/actions/workflows/tests.yaml)
|
|
25
|
+
[](https://results.pre-commit.ci/latest/github/oxpig/TAP/master)
|
|
26
|
+
[](https://pypi.org/project/tap-developability/)
|
|
27
|
+
[](https://anaconda.org/bioconda/tap-developability)
|
|
28
|
+
[](LICENCE)
|
|
29
|
+
|
|
30
|
+
</div>
|
|
31
|
+
|
|
32
|
+
## About
|
|
33
|
+
|
|
34
|
+
The Therapeutic Antibody Profiler (TAP) flags antibody variable domains whose
|
|
35
|
+
properties are unusual among clinical-stage therapeutics. It models a paired
|
|
36
|
+
heavy and light chain with [ABodyBuilder2](https://github.com/oxpig/ImmuneBuilder),
|
|
37
|
+
and compares five metrics with their distributions across the variable regions
|
|
38
|
+
of post-Phase-I clinical-stage therapeutics:
|
|
39
|
+
|
|
40
|
+
| Metric | Abbreviation | From |
|
|
41
|
+
| --- | --- | --- |
|
|
42
|
+
| Total IMGT CDR length | L | The sequence |
|
|
43
|
+
| Patches of surface hydrophobicity | PSH | The model |
|
|
44
|
+
| Patches of positive charge | PPC | The model |
|
|
45
|
+
| Patches of negative charge | PNC | The model |
|
|
46
|
+
| Structural Fv charge symmetry parameter | SFvCSP | The model |
|
|
47
|
+
|
|
48
|
+
Each metric is flagged green, amber (in the extremes of the clinical-stage
|
|
49
|
+
distribution) or red (beyond it). The thresholds are defined in
|
|
50
|
+
[`thresholds.py`](src/tap_developability/thresholds.py). TAP also reports the
|
|
51
|
+
CDR sequences and the model's sequence liabilities.
|
|
52
|
+
|
|
53
|
+
TAP was developed in the _Oxford Protein Informatics Group_
|
|
54
|
+
([OPIG](https://opig.stats.ox.ac.uk/)), Department of Statistics, University of
|
|
55
|
+
Oxford.
|
|
56
|
+
|
|
57
|
+
**Authors**
|
|
58
|
+
|
|
59
|
+
* Matthew I. J. Raybould (University of Oxford)
|
|
60
|
+
* Claire Marks (University of Oxford)
|
|
61
|
+
* Konrad Krawczyk (University of Oxford)
|
|
62
|
+
* Bruck Taddese (AstraZeneca)
|
|
63
|
+
* Jaroslaw Nowak (University of Oxford)
|
|
64
|
+
* Alan P. Lewis (GSK)
|
|
65
|
+
* Alexander Bujotzek (Roche)
|
|
66
|
+
* Jiye Shi (UCB)
|
|
67
|
+
* Charlotte M. Deane (University of Oxford)
|
|
68
|
+
|
|
69
|
+
## Citing this work
|
|
70
|
+
|
|
71
|
+
If you use TAP, please cite
|
|
72
|
+
[the paper](https://doi.org/10.1073/pnas.1810576116):
|
|
73
|
+
|
|
74
|
+
```tex
|
|
75
|
+
@article{raybould2019,
|
|
76
|
+
title={Five computational developability guidelines for therapeutic antibody profiling},
|
|
77
|
+
author={Raybould, Matthew I. J. and Marks, Claire and Krawczyk, Konrad and Taddese, Bruck and Nowak, Jaroslaw and Lewis, Alan P. and Bujotzek, Alexander and Shi, Jiye and Deane, Charlotte M.},
|
|
78
|
+
journal={Proceedings of the National Academy of Sciences},
|
|
79
|
+
volume={116},
|
|
80
|
+
number={10},
|
|
81
|
+
pages={4025--4030},
|
|
82
|
+
year={2019},
|
|
83
|
+
doi={10.1073/pnas.1810576116}
|
|
84
|
+
}
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
## Web tool
|
|
88
|
+
|
|
89
|
+
TAP is also available as a web application, as part of
|
|
90
|
+
[SAbPred](https://opig.stats.ox.ac.uk/webapps/sabdab-sabpred/sabpred/tap).
|
|
91
|
+
|
|
92
|
+
## Installation
|
|
93
|
+
|
|
94
|
+
TAP is distributed through [Bioconda](https://bioconda.github.io/), which is
|
|
95
|
+
the recommended way to install it:
|
|
96
|
+
|
|
97
|
+
```bash
|
|
98
|
+
conda install -c conda-forge -c bioconda tap-developability
|
|
99
|
+
```
|
|
100
|
+
|
|
101
|
+
**Note:** TAP's Bioconda package is not available yet, but will follow soon.
|
|
102
|
+
Until then, install TAP from PyPI, as below.
|
|
103
|
+
|
|
104
|
+
TAP depends on [ANARCI](https://github.com/oxpig/ANARCI) and HMMER from
|
|
105
|
+
Bioconda, and on [ABodyBuilder2](https://github.com/oxpig/ImmuneBuilder),
|
|
106
|
+
[antibody-utils](https://github.com/oxpig/antibody-utils) (which numbers
|
|
107
|
+
sequences with [ANARCII](https://github.com/oxpig/ANARCII)), DSSP and FreeSASA.
|
|
108
|
+
|
|
109
|
+
TAP is also on [PyPI](https://pypi.org/project/tap-developability/), but a
|
|
110
|
+
PyPI install is incomplete: ANARCI and DSSP's `mkdssp` program aren't on PyPI.
|
|
111
|
+
Install them with Conda first, then TAP with pip:
|
|
112
|
+
|
|
113
|
+
```bash
|
|
114
|
+
conda install -c conda-forge -c bioconda anarci "dssp>=4"
|
|
115
|
+
pip install tap-developability
|
|
116
|
+
```
|
|
117
|
+
|
|
118
|
+
Do not install the `anarci` package from PyPI, which is not an official release.
|
|
119
|
+
|
|
120
|
+
ABodyBuilder2 downloads its trained weights on first use. Conda installs a
|
|
121
|
+
CUDA-enabled PyTorch where it detects a GPU, and a CPU-only one otherwise.
|
|
122
|
+
|
|
123
|
+
## Usage
|
|
124
|
+
|
|
125
|
+
For a single antibody, with its heavy and light chains separated by `/`:
|
|
126
|
+
|
|
127
|
+
```bash
|
|
128
|
+
TAP --name my_antibody --output my_antibody_output --seq [heavy chain]/[light chain]
|
|
129
|
+
```
|
|
130
|
+
|
|
131
|
+
For multiple antibodies in a FASTA file, with each record's heavy and light
|
|
132
|
+
chains separated by `/`:
|
|
133
|
+
|
|
134
|
+
```bash
|
|
135
|
+
TAP --output /path/to/output/directory --file /path/to/sequences.fasta --ncores 4
|
|
136
|
+
```
|
|
137
|
+
|
|
138
|
+
TAP models each antibody with ABodyBuilder2, then writes its results to the
|
|
139
|
+
output directory: a log for each antibody, a JSON summary of the metrics and
|
|
140
|
+
their flags (`TAP_Results_SingleSeqEntry_[name].json` or
|
|
141
|
+
`TAP_Results_Multientry.json`), and the models, their modelling details and
|
|
142
|
+
their sequence liabilities in `Final_Models/`. With `--web`, it also writes the
|
|
143
|
+
data for the plots shown by the web application.
|
|
144
|
+
|
|
145
|
+
To profile antibody models that you already have:
|
|
146
|
+
|
|
147
|
+
```bash
|
|
148
|
+
TAP --output /path/to/output/directory --models /path/to/models
|
|
149
|
+
```
|
|
150
|
+
|
|
151
|
+
The models must be numbered in IMGT, with the heavy chain as chain H and the
|
|
152
|
+
light chain as chain L, as ABodyBuilder2 writes them, and without hydrogen
|
|
153
|
+
atoms. TAP writes the metrics for every model to `TAP_Results_Multientry.json`,
|
|
154
|
+
and writes annotated copies of the models, and `Final_Models/` and `tmp/`
|
|
155
|
+
directories, into the models' directory.
|
|
156
|
+
|
|
157
|
+
The thresholds were calibrated with the Kyte & Doolittle hydrophobicity scale,
|
|
158
|
+
which is the default (`--hscale 0`). For more options and information, run
|
|
159
|
+
`TAP --help`.
|
|
160
|
+
|
|
161
|
+
## Contributing
|
|
162
|
+
|
|
163
|
+
To set up a development environment, run the tests or make a release, see
|
|
164
|
+
[`CONTRIBUTING.md`](CONTRIBUTING.md). Changes are recorded in
|
|
165
|
+
[`CHANGELOG.md`](CHANGELOG.md).
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = ["uv_build>=0.12.0,<0.13.0"]
|
|
3
|
+
build-backend = "uv_build"
|
|
4
|
+
|
|
5
|
+
[project]
|
|
6
|
+
name = "tap-developability"
|
|
7
|
+
version = "2.0.1"
|
|
8
|
+
description = "TAP: the Therapeutic Antibody Profiler."
|
|
9
|
+
readme = "README.md"
|
|
10
|
+
requires-python = ">=3.11"
|
|
11
|
+
license = "BSD-3-Clause"
|
|
12
|
+
license-files = ["LICENCE"]
|
|
13
|
+
keywords = [
|
|
14
|
+
"antibody",
|
|
15
|
+
"developability",
|
|
16
|
+
"therapeutic antibodies",
|
|
17
|
+
"structural bioinformatics",
|
|
18
|
+
"bioinformatics",
|
|
19
|
+
]
|
|
20
|
+
classifiers = [
|
|
21
|
+
"Development Status :: 5 - Production/Stable",
|
|
22
|
+
"Environment :: Console",
|
|
23
|
+
"Intended Audience :: Science/Research",
|
|
24
|
+
"Operating System :: POSIX",
|
|
25
|
+
"Programming Language :: Python :: 3",
|
|
26
|
+
"Programming Language :: Python :: 3 :: Only",
|
|
27
|
+
"Programming Language :: Python :: 3.11",
|
|
28
|
+
"Programming Language :: Python :: 3.12",
|
|
29
|
+
"Programming Language :: Python :: 3.13",
|
|
30
|
+
"Programming Language :: Python :: 3.14",
|
|
31
|
+
"Topic :: Scientific/Engineering :: Bio-Informatics",
|
|
32
|
+
]
|
|
33
|
+
dependencies = [
|
|
34
|
+
"antibody-utils[numbering]>=0.1.1",
|
|
35
|
+
"biopython>=1.83",
|
|
36
|
+
"freesasa",
|
|
37
|
+
"ImmuneBuilder>=1.2",
|
|
38
|
+
"numpy",
|
|
39
|
+
"openmm",
|
|
40
|
+
"pdbfixer",
|
|
41
|
+
"scipy",
|
|
42
|
+
]
|
|
43
|
+
|
|
44
|
+
[[project.authors]]
|
|
45
|
+
name = "Matthew I. J. Raybould"
|
|
46
|
+
email = "opig@stats.ox.ac.uk"
|
|
47
|
+
|
|
48
|
+
[[project.authors]]
|
|
49
|
+
name = "Charlotte M. Deane"
|
|
50
|
+
email = "opig@stats.ox.ac.uk"
|
|
51
|
+
|
|
52
|
+
[project.urls]
|
|
53
|
+
Homepage = "https://opig.stats.ox.ac.uk/webapps/sabdab-sabpred/sabpred/tap"
|
|
54
|
+
Documentation = "https://github.com/oxpig/TAP#readme"
|
|
55
|
+
Repository = "https://github.com/oxpig/TAP"
|
|
56
|
+
Issues = "https://github.com/oxpig/TAP/issues"
|
|
57
|
+
Changelog = "https://github.com/oxpig/TAP/blob/master/CHANGELOG.md"
|
|
58
|
+
Paper = "https://doi.org/10.1073/pnas.1810576116"
|
|
59
|
+
|
|
60
|
+
[project.scripts]
|
|
61
|
+
TAP = "tap_developability.cli:main"
|
|
62
|
+
|
|
63
|
+
[tool.pytest.ini_options]
|
|
64
|
+
addopts = ["--import-mode=importlib"]
|
|
65
|
+
markers = ["slow: runs ABodyBuilder2, which takes minutes; needs --runslow"]
|
|
66
|
+
|
|
67
|
+
[tool.ruff]
|
|
68
|
+
src = [
|
|
69
|
+
"src",
|
|
70
|
+
"tests",
|
|
71
|
+
]
|
|
72
|
+
line-length = 88
|
|
73
|
+
|
|
74
|
+
[tool.ruff.lint]
|
|
75
|
+
select = [
|
|
76
|
+
"E9",
|
|
77
|
+
"F63",
|
|
78
|
+
"F7",
|
|
79
|
+
"F82",
|
|
80
|
+
]
|
|
81
|
+
|
|
82
|
+
[tool.bumpversion]
|
|
83
|
+
parse = '(?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)'
|
|
84
|
+
serialize = ["{major}.{minor}.{patch}"]
|
|
85
|
+
search = "{current_version}"
|
|
86
|
+
replace = "{new_version}"
|
|
87
|
+
regex = false
|
|
88
|
+
ignore_missing_version = false
|
|
89
|
+
ignore_missing_files = false
|
|
90
|
+
tag = true
|
|
91
|
+
sign_tags = true
|
|
92
|
+
tag_name = "v{new_version}"
|
|
93
|
+
tag_message = "Bump version: {current_version} → {new_version}"
|
|
94
|
+
allow_dirty = false
|
|
95
|
+
commit = true
|
|
96
|
+
message = "Bump version: {current_version} → {new_version}"
|
|
97
|
+
moveable_tags = []
|
|
98
|
+
commit_args = ""
|
|
99
|
+
setup_hooks = []
|
|
100
|
+
pre_commit_hooks = []
|
|
101
|
+
post_commit_hooks = []
|
|
102
|
+
|
|
103
|
+
[[tool.bumpversion.files]]
|
|
104
|
+
filename = "CITATION.cff"
|
|
105
|
+
search = "version: {current_version}"
|
|
106
|
+
replace = "version: {new_version}"
|
|
107
|
+
|
|
108
|
+
[[tool.bumpversion.files]]
|
|
109
|
+
filename = "CITATION.cff"
|
|
110
|
+
regex = true
|
|
111
|
+
search = 'date-released: \d{{4}}-\d{{2}}-\d{{2}}'
|
|
112
|
+
replace = "date-released: {now:%Y-%m-%d}"
|
|
113
|
+
|
|
114
|
+
[[tool.bumpversion.files]]
|
|
115
|
+
filename = "CHANGELOG.md"
|
|
116
|
+
search = "## Unreleased"
|
|
117
|
+
replace = """
|
|
118
|
+
## Unreleased
|
|
119
|
+
|
|
120
|
+
## {new_version} ({now:%Y-%m-%d})"""
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = ["uv_build>=0.12.0,<0.13.0"]
|
|
3
|
+
build-backend = "uv_build"
|
|
4
|
+
|
|
5
|
+
[project]
|
|
6
|
+
name = "tap-developability"
|
|
7
|
+
version = "2.0.1"
|
|
8
|
+
description = "TAP: the Therapeutic Antibody Profiler."
|
|
9
|
+
readme = "README.md"
|
|
10
|
+
requires-python = ">=3.11"
|
|
11
|
+
license = "BSD-3-Clause"
|
|
12
|
+
license-files = ["LICENCE"]
|
|
13
|
+
keywords = [
|
|
14
|
+
"antibody",
|
|
15
|
+
"developability",
|
|
16
|
+
"therapeutic antibodies",
|
|
17
|
+
"structural bioinformatics",
|
|
18
|
+
"bioinformatics",
|
|
19
|
+
]
|
|
20
|
+
classifiers = [
|
|
21
|
+
"Development Status :: 5 - Production/Stable",
|
|
22
|
+
"Environment :: Console",
|
|
23
|
+
"Intended Audience :: Science/Research",
|
|
24
|
+
"Operating System :: POSIX",
|
|
25
|
+
"Programming Language :: Python :: 3",
|
|
26
|
+
"Programming Language :: Python :: 3 :: Only",
|
|
27
|
+
"Programming Language :: Python :: 3.11",
|
|
28
|
+
"Programming Language :: Python :: 3.12",
|
|
29
|
+
"Programming Language :: Python :: 3.13",
|
|
30
|
+
"Programming Language :: Python :: 3.14",
|
|
31
|
+
"Topic :: Scientific/Engineering :: Bio-Informatics",
|
|
32
|
+
]
|
|
33
|
+
authors = [
|
|
34
|
+
{ name = "Matthew I. J. Raybould", email = "opig@stats.ox.ac.uk" },
|
|
35
|
+
{ name = "Charlotte M. Deane", email = "opig@stats.ox.ac.uk" },
|
|
36
|
+
]
|
|
37
|
+
# ANARCI is also a runtime dependency, of ImmuneBuilder, but it is deliberately
|
|
38
|
+
# absent here. The `anarci` package on PyPI is not an official release, so
|
|
39
|
+
# ANARCI must come from Bioconda: install TAP with Conda (see README.md), or use
|
|
40
|
+
# `environment.yml`.
|
|
41
|
+
dependencies = [
|
|
42
|
+
"antibody-utils[numbering]>=0.1.1",
|
|
43
|
+
"biopython>=1.83",
|
|
44
|
+
"freesasa",
|
|
45
|
+
"ImmuneBuilder>=1.2",
|
|
46
|
+
"numpy",
|
|
47
|
+
"openmm",
|
|
48
|
+
"pdbfixer",
|
|
49
|
+
"scipy",
|
|
50
|
+
]
|
|
51
|
+
|
|
52
|
+
[project.urls]
|
|
53
|
+
Homepage = "https://opig.stats.ox.ac.uk/webapps/sabdab-sabpred/sabpred/tap"
|
|
54
|
+
Documentation = "https://github.com/oxpig/TAP#readme"
|
|
55
|
+
Repository = "https://github.com/oxpig/TAP"
|
|
56
|
+
Issues = "https://github.com/oxpig/TAP/issues"
|
|
57
|
+
Changelog = "https://github.com/oxpig/TAP/blob/master/CHANGELOG.md"
|
|
58
|
+
Paper = "https://doi.org/10.1073/pnas.1810576116"
|
|
59
|
+
|
|
60
|
+
[project.scripts]
|
|
61
|
+
TAP = "tap_developability.cli:main"
|
|
62
|
+
|
|
63
|
+
[tool.pytest.ini_options]
|
|
64
|
+
addopts = ["--import-mode=importlib"]
|
|
65
|
+
markers = ["slow: runs ABodyBuilder2, which takes minutes; needs --runslow"]
|
|
66
|
+
|
|
67
|
+
[tool.ruff]
|
|
68
|
+
src = ["src", "tests"]
|
|
69
|
+
line-length = 88
|
|
70
|
+
# Only syntax errors and undefined names for now. Broaden this as the legacy
|
|
71
|
+
# code is tidied, towards the rule set used in oxpig/ANARCII.
|
|
72
|
+
lint.select = ["E9", "F63", "F7", "F82"]
|
|
73
|
+
|
|
74
|
+
[tool.bumpversion]
|
|
75
|
+
parse = "(?P<major>\\d+)\\.(?P<minor>\\d+)\\.(?P<patch>\\d+)"
|
|
76
|
+
serialize = ["{major}.{minor}.{patch}"]
|
|
77
|
+
search = "{current_version}"
|
|
78
|
+
replace = "{new_version}"
|
|
79
|
+
regex = false
|
|
80
|
+
ignore_missing_version = false
|
|
81
|
+
ignore_missing_files = false
|
|
82
|
+
tag = true
|
|
83
|
+
sign_tags = true
|
|
84
|
+
tag_name = "v{new_version}"
|
|
85
|
+
tag_message = "Bump version: {current_version} → {new_version}"
|
|
86
|
+
allow_dirty = false
|
|
87
|
+
commit = true
|
|
88
|
+
message = "Bump version: {current_version} → {new_version}"
|
|
89
|
+
moveable_tags = []
|
|
90
|
+
commit_args = ""
|
|
91
|
+
setup_hooks = []
|
|
92
|
+
pre_commit_hooks = []
|
|
93
|
+
post_commit_hooks = []
|
|
94
|
+
|
|
95
|
+
[[tool.bumpversion.files]]
|
|
96
|
+
filename = "CITATION.cff"
|
|
97
|
+
search = "version: {current_version}"
|
|
98
|
+
replace = "version: {new_version}"
|
|
99
|
+
|
|
100
|
+
[[tool.bumpversion.files]]
|
|
101
|
+
filename = "CITATION.cff"
|
|
102
|
+
regex = true
|
|
103
|
+
search = "date-released: \\d{{4}}-\\d{{2}}-\\d{{2}}"
|
|
104
|
+
replace = "date-released: {now:%Y-%m-%d}"
|
|
105
|
+
|
|
106
|
+
[[tool.bumpversion.files]]
|
|
107
|
+
filename = "CHANGELOG.md"
|
|
108
|
+
search = "## Unreleased"
|
|
109
|
+
replace = "## Unreleased\n\n## {new_version} ({now:%Y-%m-%d})"
|