AbNumber - Antibody numbering using ANARCI
Project description
AbNumber
Convenience Python APIs for antibody numbering and alignment using ANARCI
Try it out in your browser using Binder:
Features:
- Streamlined Python API using
Chainobject - Identifying CDR regions, e.g. using
chain.regionsorchain.cdr3_seq - Indexing and slicing, e.g. using
chain['5']orchain['H2':'H5'] - Pairwise and multiple sequence alignment in the given numbering using
chain.align(another) - Alignment to nearest human germline using
chain.align(chain.find_merged_human_germline()) - Humanization using CDR grafting by
chain.graft_cdrs_onto_human_germline()
See AbNumber Documentation for the full reference.
Installation
Install using Bioconda:
conda install -c bioconda abnumber
Note: Windows is not supported due to HMMER dependency. AbNumber is currently only available on UNIX & MacOS.
Examples
from abnumber import Chain
seq = 'QVQLQQSGAELARPGASVKMSCKASGYTFTRYTMHWVKQRPGQGLEWIGYINPSRGYTNYNQKFKDKATLTTDKSSSTAYMQLSSLTSEDSAVYYCARYYDDHYCLDYWGQGTTLTVSSAKTTAPSVYPLA'
chain = Chain(seq, scheme='imgt')
chain
# QVQLQQSGAELARPGASVKMSCKASGYTFTRYTMHWVKQRPGQGLEWIGYINPSRGYTNYNQKFKDKATLTTDKSSSTAYMQLSSLTSEDSAVYYCARYYDDHYCLDYWGQGTTLTVSS
# ^^^^^^^^ ^^^^^^^^ ^^^^^^^^^^^^
chain.cdr3_seq
# ARYYDDHYCLDY
chain.print(numbering=True)
# 0 1 2 3 4 5 6 7 8 9 10 11 12
# 12345678912345678901234567890567890123456789012345678923456789012456789012345678901234567890123456789023456789012345678
# QVQLQQSGAELARPGASVKMSCKASGYTFTRYTMHWVKQRPGQGLEWIGYINPSRGYTNYNQKFKDKATLTTDKSSSTAYMQLSSLTSEDSAVYYCARYYDDHYCLDYWGQGTTLTVSS
# ^^^^^^^^ ^^^^^^^^ ^^^^^^^^^^^^
Chain can be iterated:
for pos, aa in chain:
print(pos, aa)
# H1 Q
# H2 V
# H3 Q
# H4 L
# H5 Q
Chain can also be indexed and sliced using scheme numbering:
chain['5']
# 'Q'
for pos, aa in chain['H2':'H5']:
print(pos, aa)
# H2 V
# H3 Q
# H4 L
# H5 Q
For all methods see AbNumber Documentation
Credits
See ANARCI on GitHub and the ANARCI paper: ANARCI: antigen receptor numbering and receptor classification
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file abnumber-0.4.4.tar.gz.
File metadata
- Download URL: abnumber-0.4.4.tar.gz
- Upload date:
- Size: 37.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.17
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4c5fd9d33087dea23088bd2de08937aa66a561f2fd34cd420ce48e16512a0131
|
|
| MD5 |
e52319a032ebb0dfde93ce36cdd51bba
|
|
| BLAKE2b-256 |
eba8a1881776938806d52e31d39b6d5e4d8780af5586c3bed01e664a694bd42e
|
File details
Details for the file abnumber-0.4.4-py3-none-any.whl.
File metadata
- Download URL: abnumber-0.4.4-py3-none-any.whl
- Upload date:
- Size: 34.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.17
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
eed2c47e24fb5c77d7f80e77241a344372d1030c8ae9dfdb393f72b880ea84f3
|
|
| MD5 |
30a22c4b184f8baea6f834247d13ee54
|
|
| BLAKE2b-256 |
50ceb1d59036791e26eb20e17704500b2cbf04abadf46a5bff95ad92e524f7c9
|