sabr-kit 0.1.0__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.
- sabr_kit-0.1.0/LICENSE +21 -0
- sabr_kit-0.1.0/MANIFEST.in +12 -0
- sabr_kit-0.1.0/PKG-INFO +64 -0
- sabr_kit-0.1.0/README.md +33 -0
- sabr_kit-0.1.0/external/ANARCI/src/ANARCI/__init__.py +0 -0
- sabr_kit-0.1.0/external/ANARCI/src/ANARCI/__pycache__/__init__.cpython-310.pyc +0 -0
- sabr_kit-0.1.0/external/ANARCI/src/ANARCI/__pycache__/anarci.cpython-310.pyc +0 -0
- sabr_kit-0.1.0/external/ANARCI/src/ANARCI/__pycache__/schemes.cpython-310.pyc +0 -0
- sabr_kit-0.1.0/external/ANARCI/src/ANARCI/anarci.py +1326 -0
- sabr_kit-0.1.0/external/ANARCI/src/ANARCI/schemes.py +1684 -0
- sabr_kit-0.1.0/external/SoftAlign/softalign/ENCODING.py +43 -0
- sabr_kit-0.1.0/external/SoftAlign/softalign/END_TO_END_MODELS.py +227 -0
- sabr_kit-0.1.0/external/SoftAlign/softalign/Input_MPNN.py +90 -0
- sabr_kit-0.1.0/external/SoftAlign/softalign/LDDT_LOSS.py +95 -0
- sabr_kit-0.1.0/external/SoftAlign/softalign/Loss_functions.py +57 -0
- sabr_kit-0.1.0/external/SoftAlign/softalign/MPNN.py +305 -0
- sabr_kit-0.1.0/external/SoftAlign/softalign/SW.py +135 -0
- sabr_kit-0.1.0/external/SoftAlign/softalign/Score_align.py +132 -0
- sabr_kit-0.1.0/external/SoftAlign/softalign/__init__.py +1 -0
- sabr_kit-0.1.0/external/SoftAlign/softalign/__pycache__/END_TO_END_MODELS.cpython-310.pyc +0 -0
- sabr_kit-0.1.0/external/SoftAlign/softalign/__pycache__/END_TO_END_MODELS.cpython-311.pyc +0 -0
- sabr_kit-0.1.0/external/SoftAlign/softalign/__pycache__/Input_MPNN.cpython-310.pyc +0 -0
- sabr_kit-0.1.0/external/SoftAlign/softalign/__pycache__/Input_MPNN.cpython-311.pyc +0 -0
- sabr_kit-0.1.0/external/SoftAlign/softalign/__pycache__/MPNN.cpython-310.pyc +0 -0
- sabr_kit-0.1.0/external/SoftAlign/softalign/__pycache__/MPNN.cpython-311.pyc +0 -0
- sabr_kit-0.1.0/external/SoftAlign/softalign/__pycache__/SW.cpython-310.pyc +0 -0
- sabr_kit-0.1.0/external/SoftAlign/softalign/__pycache__/SW.cpython-311.pyc +0 -0
- sabr_kit-0.1.0/external/SoftAlign/softalign/__pycache__/__init__.cpython-310.pyc +0 -0
- sabr_kit-0.1.0/external/SoftAlign/softalign/__pycache__/__init__.cpython-311.pyc +0 -0
- sabr_kit-0.1.0/external/SoftAlign/softalign/models/CONT_SFT_06_T_3_1 +0 -0
- sabr_kit-0.1.0/external/SoftAlign/softalign/models/CONT_SW_05_T_3_1 +0 -0
- sabr_kit-0.1.0/external/SoftAlign/softalign/search.py +242 -0
- sabr_kit-0.1.0/external/SoftAlign/softalign/utils.py +94 -0
- sabr_kit-0.1.0/pyproject.toml +68 -0
- sabr_kit-0.1.0/sabr_kit.egg-info/PKG-INFO +64 -0
- sabr_kit-0.1.0/sabr_kit.egg-info/SOURCES.txt +49 -0
- sabr_kit-0.1.0/sabr_kit.egg-info/dependency_links.txt +1 -0
- sabr_kit-0.1.0/sabr_kit.egg-info/entry_points.txt +2 -0
- sabr_kit-0.1.0/sabr_kit.egg-info/requires.txt +21 -0
- sabr_kit-0.1.0/sabr_kit.egg-info/top_level.txt +3 -0
- sabr_kit-0.1.0/setup.cfg +4 -0
- sabr_kit-0.1.0/src/sabr/__init__.py +0 -0
- sabr_kit-0.1.0/src/sabr/aln2hmm.py +97 -0
- sabr_kit-0.1.0/src/sabr/assets/embeddings.npz +0 -0
- sabr_kit-0.1.0/src/sabr/cli.py +114 -0
- sabr_kit-0.1.0/src/sabr/constants.py +35 -0
- sabr_kit-0.1.0/src/sabr/edit_pdb.py +83 -0
- sabr_kit-0.1.0/src/sabr/ops.py +83 -0
- sabr_kit-0.1.0/src/sabr/softaligner.py +145 -0
- sabr_kit-0.1.0/src/sabr/types.py +27 -0
- sabr_kit-0.1.0/tests/test_types.py +18 -0
sabr_kit-0.1.0/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 Diego del Alamo
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
include LICENSE
|
|
2
|
+
include README.md
|
|
3
|
+
|
|
4
|
+
recursive-include src/sabr/assets *.npz
|
|
5
|
+
recursive-include external/SoftAlign/softalign/models *
|
|
6
|
+
recursive-include external/SoftAlign/softalign *
|
|
7
|
+
recursive-include external/ANARCI/src/ANARCI *
|
|
8
|
+
|
|
9
|
+
prune dist
|
|
10
|
+
prune build
|
|
11
|
+
prune sabr.egg-info
|
|
12
|
+
prune src/sabr.egg-info
|
sabr_kit-0.1.0/PKG-INFO
ADDED
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: sabr-kit
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: Structure-based Antibody Renumbering
|
|
5
|
+
Author: Diego del Alamo
|
|
6
|
+
Project-URL: Homepage, https://github.com/delalamo/SAbR
|
|
7
|
+
Requires-Python: >=3.9
|
|
8
|
+
Description-Content-Type: text/markdown
|
|
9
|
+
License-File: LICENSE
|
|
10
|
+
Requires-Dist: absl-py==2.2.2
|
|
11
|
+
Requires-Dist: biopython==1.85
|
|
12
|
+
Requires-Dist: chex==0.1.89
|
|
13
|
+
Requires-Dist: dm-haiku==0.0.14
|
|
14
|
+
Requires-Dist: etils==1.12.2
|
|
15
|
+
Requires-Dist: flax==0.10.6
|
|
16
|
+
Requires-Dist: jax==0.6.0
|
|
17
|
+
Requires-Dist: jaxlib==0.6.0
|
|
18
|
+
Requires-Dist: numpy==2.2.6
|
|
19
|
+
Requires-Dist: optax==0.2.4
|
|
20
|
+
Requires-Dist: orbax-checkpoint==0.11.13
|
|
21
|
+
Requires-Dist: pandas==2.2.3
|
|
22
|
+
Requires-Dist: protobuf==6.31.0
|
|
23
|
+
Requires-Dist: scipy==1.15.3
|
|
24
|
+
Requires-Dist: tensorstore==0.1.75
|
|
25
|
+
Requires-Dist: treescope==0.1.9
|
|
26
|
+
Provides-Extra: test
|
|
27
|
+
Requires-Dist: pytest>=8.0; extra == "test"
|
|
28
|
+
Requires-Dist: pytest-cov>=5.0; extra == "test"
|
|
29
|
+
Requires-Dist: numpy>=1.24; extra == "test"
|
|
30
|
+
Dynamic: license-file
|
|
31
|
+
|
|
32
|
+
# Structure-based Antibody Renumbering
|
|
33
|
+
|
|
34
|
+
SAbR (<u>S</U>tructure-based <u>A</u>nti<u>b</u>ody <u>R</u>enumbering) renumbers antibody PDB files using the 3D coordinate of backbone atoms. It uses custom forked versions of [SoftAlign](https://github.com/delalamo/SoftAlign) and [ANARCI](https://github.com/delalamo/ANARCI/tree/master) to align structures to SAbDaB-derived consensus embeddings and renumber to various antibody schemes, respectively.
|
|
35
|
+
|
|
36
|
+
To install:
|
|
37
|
+
|
|
38
|
+
```bash
|
|
39
|
+
git clone --recursive https://github.com/delalamo/SAbR.git
|
|
40
|
+
cd SAbR/
|
|
41
|
+
pip install -e .
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
Running SAbR:
|
|
45
|
+
|
|
46
|
+
```bash
|
|
47
|
+
usage: sabr [-h] -i INPUT_PDB -c INPUT_CHAIN -o OUTPUT_PDB [-n NUMBERING_SCHEME] [-t] [--overwrite] [-v]
|
|
48
|
+
|
|
49
|
+
Structure-based Antibody Renumbering (SAbR) renumbers antibody PDB files using the 3D coordinate of backbone atoms.
|
|
50
|
+
|
|
51
|
+
options:
|
|
52
|
+
-h, --help show this help message and exit
|
|
53
|
+
-i INPUT_PDB, --input_pdb INPUT_PDB
|
|
54
|
+
Input pdb file
|
|
55
|
+
-c INPUT_CHAIN, --input_chain INPUT_CHAIN
|
|
56
|
+
Input chain
|
|
57
|
+
-o OUTPUT_PDB, --output_pdb OUTPUT_PDB
|
|
58
|
+
Output pdb file
|
|
59
|
+
-n NUMBERING_SCHEME, --numbering_scheme NUMBERING_SCHEME
|
|
60
|
+
Numbering scheme, default is IMGT. Supports IMGT, Chothia, Kabat, Martin, AHo, and Wolfguy.
|
|
61
|
+
-t, --trim Remove regions outside aligned V-region
|
|
62
|
+
--overwrite Overwrite PDB
|
|
63
|
+
-v, --verbose Verbose output
|
|
64
|
+
```
|
sabr_kit-0.1.0/README.md
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
# Structure-based Antibody Renumbering
|
|
2
|
+
|
|
3
|
+
SAbR (<u>S</U>tructure-based <u>A</u>nti<u>b</u>ody <u>R</u>enumbering) renumbers antibody PDB files using the 3D coordinate of backbone atoms. It uses custom forked versions of [SoftAlign](https://github.com/delalamo/SoftAlign) and [ANARCI](https://github.com/delalamo/ANARCI/tree/master) to align structures to SAbDaB-derived consensus embeddings and renumber to various antibody schemes, respectively.
|
|
4
|
+
|
|
5
|
+
To install:
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
git clone --recursive https://github.com/delalamo/SAbR.git
|
|
9
|
+
cd SAbR/
|
|
10
|
+
pip install -e .
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
Running SAbR:
|
|
14
|
+
|
|
15
|
+
```bash
|
|
16
|
+
usage: sabr [-h] -i INPUT_PDB -c INPUT_CHAIN -o OUTPUT_PDB [-n NUMBERING_SCHEME] [-t] [--overwrite] [-v]
|
|
17
|
+
|
|
18
|
+
Structure-based Antibody Renumbering (SAbR) renumbers antibody PDB files using the 3D coordinate of backbone atoms.
|
|
19
|
+
|
|
20
|
+
options:
|
|
21
|
+
-h, --help show this help message and exit
|
|
22
|
+
-i INPUT_PDB, --input_pdb INPUT_PDB
|
|
23
|
+
Input pdb file
|
|
24
|
+
-c INPUT_CHAIN, --input_chain INPUT_CHAIN
|
|
25
|
+
Input chain
|
|
26
|
+
-o OUTPUT_PDB, --output_pdb OUTPUT_PDB
|
|
27
|
+
Output pdb file
|
|
28
|
+
-n NUMBERING_SCHEME, --numbering_scheme NUMBERING_SCHEME
|
|
29
|
+
Numbering scheme, default is IMGT. Supports IMGT, Chothia, Kabat, Martin, AHo, and Wolfguy.
|
|
30
|
+
-t, --trim Remove regions outside aligned V-region
|
|
31
|
+
--overwrite Overwrite PDB
|
|
32
|
+
-v, --verbose Verbose output
|
|
33
|
+
```
|
|
File without changes
|