Skip to main content

Python package to create embeddings of BCR amino acid sequences.

Project description

AMULETY

AMULETY stands for Adaptive imMUne receptor Language model Embedding tool for TCR and antibodY. AMULETY is a Python command line tool to embed B-cell receptor (BCR), also termed antibodies in their secreted form, and T-cell receptor (TCR) amino acid sequences using pre-trained general protein or specific immune receptor language models. The package supports both BCR and TCR embeddings. The package also has functionality to translate nucleotide sequences to amino acids with IgBlast.

AMULETY is part of the Immcantation analysis framework for Adaptive Immune Receptor Repertoire sequencing (AIRR-seq) data analysis.

Quick start

The full AMULETY usage documentation can be found on the readthedocs page.

You can install AMULETY using conda (it requires python 3.8 or higher):

conda install amulety

The conda installation will also install the necessary IgBlast dependency. You can also install AMULETY via pip, this will though require previously installing IgBlast if translations are desired.

pip install amulety

Or install from source:

git clone https://github.com/immcantation/amulety.git
cd amulety
pip install -e .

To print the usage help for the AMULETY package type:

amulety --help

Using the docker container

The docker container is available under immcantation/amulety. Please refer to the docker documentation to install docker first on your system.

To use amulety from within the container run:

docker run -itv `pwd`:`pwd` -w `pwd` -u $(id -u):$(id -g) immcantation/amulety amulety embed --input-airr tests/AIRR_rearrangement_translated_mixed.tsv --chain H --model immune2vec --output-file-path test_fixed.tsv --cache-dir /tmp/cache

You can also create an alias so that you don't need to type all of this each time you call amulety:

alias amulety="docker run -itv `pwd`:`pwd` -w `pwd` -u $(id -u):$(id -g) immcantation/amulety amulety"

Once applied you can just use the amulety command instead:

amulety embed --input-airr AIRR_translated.tsv --chain H --model antiberta2 --output-file-path antiberta2_embeddings.tsv

Contact

If you need help or have any questions, please contact the Immcantation Group.

If you have discovered a bug or have a feature request, you can open an issue using the issue tracker.

To receive alerts about Immcantation releases, news, events, and tutorials, join the Immcantation News Google Group. Membership settings can be adjusted to change the frequency of email updates.

Authors

Mamie Wang (aut,cre) Gisela Gabernet (aut,cre) Wengyao Jiang (aut,cre) Steven Kleinstein (aut,cph)

Citing

If you use this package, please cite the pre-print:

AMULETY: A Python package to embed adaptive immune receptor sequences. Meng Wang, Yuval Kluger, Steven H. Kleinstein, Gisela Gabernet. BioRXiv 2025. DOI: https://doi.org/10.1101/2025.03.21.644583

To cite the paper comparing the embedding methods on BCR sequences, please cite:

Supervised fine-tuning of pre-trained antibody language models improves antigen specificity prediction. Meng Wang, Jonathan Patsenker, Henry Li, Yuval Kluger, Steven H. Kleinstein. BioRXiv 2024. DOI: https://doi.org/10.1101/2024.05.13.593807.

License

This project is licensed under the terms of the GPL v3 license.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

amulety-2.0.tar.gz (53.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

amulety-2.0-py3-none-any.whl (45.1 kB view details)

Uploaded Python 3

File details

Details for the file amulety-2.0.tar.gz.

File metadata

  • Download URL: amulety-2.0.tar.gz
  • Upload date:
  • Size: 53.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for amulety-2.0.tar.gz
Algorithm Hash digest
SHA256 18dd72fe18220b2c0e4ed696447ec429c711dfb471b1ab3cebf2293561961a84
MD5 78adec4b5f93dbc304e909e0a2f6f07b
BLAKE2b-256 0e423a7373100c134358d399cf5eec09142a7ca2d5cd55474282fac199d59e48

See more details on using hashes here.

File details

Details for the file amulety-2.0-py3-none-any.whl.

File metadata

  • Download URL: amulety-2.0-py3-none-any.whl
  • Upload date:
  • Size: 45.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for amulety-2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 96a520cd9f234d38beba88cffbc6c25d9c0699d9c021f5a497ae1ec936cb5e3a
MD5 2d2444d15c9cc8063502652b1f1e1b5c
BLAKE2b-256 a5a5418836a7ce93c8d395c1aec084a9954d4b39f3e57c1e2d4ee7582b6c110a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page