Skip to main content

A multimodal foundation model for T cell receptor and transcriptome analysis

Project description

TCRfoundation

Documentation Status License: MIT Python 3.8+

A multimodal foundation model for single-cell immune profiling

A multimodal foundation model for single-cell immune profiling

License: MIT Python 3.8+

Overview

TCRfoundation integrates gene expression and TCR sequences (α and β chains) from paired single-cell measurements through self-supervised pretraining with masked reconstruction and cross-modal contrastive learning.

Input and Pretraining Architecture

Gene expression profiles are encoded through feed-forward layers with multi-head attention, while TCR sequences are tokenized and processed through transformer blocks. The fused representations are learned via three objectives: masked gene expression reconstruction, masked TCR sequence reconstruction, and cross-modal alignment.

Input and Pretraining

Fine-tuning Tasks

The pretrained model supports three downstream applications:

  • T-cell state classification: Predict tissue origin, disease state, and cellular phenotype
  • Binding specificity detection: Identify TCR-antigen interactions and quantify binding avidity
  • Cross-modal prediction: Infer gene expression from TCR sequences

Fine-tuning Tasks

Installation

git clone https://github.com/Liao-Xu/TCRfoundation.git
cd TCRfoundation
pip install -e .

**Requirements**: Python 3.8+, PyTorch 1.13.1+

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

tcrfoundation-0.1.2.tar.gz (46.0 kB view details)

Uploaded Source

Built Distribution

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

tcrfoundation-0.1.2-py3-none-any.whl (56.1 kB view details)

Uploaded Python 3

File details

Details for the file tcrfoundation-0.1.2.tar.gz.

File metadata

  • Download URL: tcrfoundation-0.1.2.tar.gz
  • Upload date:
  • Size: 46.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.16

File hashes

Hashes for tcrfoundation-0.1.2.tar.gz
Algorithm Hash digest
SHA256 53100d6b53c1ff692514a8cd0acfa26a97b046e591c7955b78c91c5a2420d3e2
MD5 acc6a1336c4dfe198d99c34668b3344c
BLAKE2b-256 16b83b896cfcfe9db4176d051ef9bb2c58aab4f28bfd424aff785a570dd53a8a

See more details on using hashes here.

File details

Details for the file tcrfoundation-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: tcrfoundation-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 56.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.16

File hashes

Hashes for tcrfoundation-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 932894724a67491a243eafd1dba27ab821f0f79130fcbd8aed9a7b5a62456cb2
MD5 6294768bdc038f465065232df605b0f3
BLAKE2b-256 90387e5f71f07c14204916723e72c0d880acd3737590f6554c5514ff515390ad

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