Skip to content

immcantation/amulety

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.

About

Python package to embed BCR sequences

Resources

License

Code of conduct

Contributing

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages