CommunityResearch & Data Analysisgithub.com

antibody-sequence-bioinformatics

Work with antibody, nanobody (VHH) and BCR sequence data - numbering schemes (IMGT, Kabat, Chothia, Martin, AHo), CDR and framework boundaries, VHH hallmark residues and cysteine checks, germline assignment with ANARCII, ANARCI, abnumber or IgBLAST, mapping CDRs onto a structure's residue numbers for loop-redesign contigs, interface contacts and hotspot coverage of a predicted complex, repertoire pipelines, the AIRR Rearrangement TSV format, clonotype grouping, humanness, and sequence liability motifs. Use when parsing, numbering, annotating, QC-ing or filtering antibody, VHH or designed binder sequences, when a CDR definition or region coordinate is in question, when a contig needs PDB residue numbers, or when writing code against AIRR, IgBLAST, ANARCI or OAS data. Every region coordinate carries the name of its numbering scheme. Use antibody-binder-design for the design workflow, antibody-literature-search to find sequences and structures, antibody-therapeutics-landscape...

What is antibody-sequence-bioinformatics?

antibody-sequence-bioinformatics is a Claude Code agent skill that work with antibody, nanobody (VHH) and BCR sequence data - numbering schemes (IMGT, Kabat, Chothia, Martin, AHo), CDR and framework boundaries, VHH hallmark residues and cysteine checks, germline assignment with ANARCII, ANARCI, abnumber or IgBLAST, mapping CDRs onto a structure's residue numbers for loop-redesign contigs, interface contacts and hotspot coverage of a predicted complex, repertoire pipelines, the AIRR Rearrangement TSV format, clonotype grouping, humanness, and sequence liability motifs. Use when parsing, numbering, annotating, QC-ing or filtering antibody, VHH or designed binder sequences, when a CDR definition or region coordinate is in question, when a contig needs PDB residue numbers, or when writing code against AIRR, IgBLAST, ANARCI or OAS data. Every region coordinate carries the name of its numbering scheme. Use antibody-binder-design for the design workflow, antibody-literature-search to find sequences and structures, antibody-therapeutics-landscape...

Works with~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/0xcvaliente/immunology-skills/tree/HEAD/antibody-sequence-bioinformatics

Installed? Explore more Research & Data Analysis skills: affaan-m/uspto-database, affaan-m/scholar-evaluation, affaan-m/literature-review · View all 6 →

Ask in your favorite AI

Open a new chat with this agent skill pre-loaded.

Documentation

Antibody sequence bioinformatics

Code and conventions for antibody sequence data: numbering, annotation, interchange and quality control.

Scope: research, therapeutic, diagnostic and educational work. A request to engineer a pathogen toward greater transmissibility, or to design escape from a deployed countermeasure, falls outside it — say so and stop.

Name the scheme

A residue index without its numbering scheme is meaningless. H52 is a different residue under Kabat than under IMGT, and CDR-H1 spans different residues under every scheme in use. So:

  • State the scheme in prose, in column names (cdr1_aa_imgt), in file names, and in docstrings.
  • When data arrives without a stated scheme, re-number it rather than inferring; a mislabelled scheme corrupts every downstream comparison silently.
  • Convert by re-numbering the sequence, never by arithmetic on indices. Insertion codes (52A, 100A–100K) make index arithmetic wrong.
  • Boundaries belong to a scheme too: quote CDR definitions as "IMGT CDR-H3" rather than "CDR3".
  • A structure file has its own residue numbers. IMGT positions are not PDB numbers, and a contig or hotspot list must use the file's numbering (cdr_contig.py below does the mapping).

Scheme table and boundary definitions: references/numbering.md.

Steps

  1. Establish the input — chain type (heavy, kappa, lambda, or a mixed file), amino acid or nucleotide, paired or unpaired, and whether sequences are full-length V(D)J or variable-domain only. Check a handful of records by eye before writing a pipeline over the file.
  2. Number and annotate with a tool, not by hand: ANARCII (language-model numbering, the OPIG successor to ANARCI) or ANARCI/abnumber for numbering and region extraction, IgBLAST for germline assignment from nucleotide data. Tool choices and snippets: references/tools.md.
  3. Normalise to AIRR Rearrangement TSV as the interchange format, so downstream code reads one schema. Field conventions and coordinate traps: references/airr-data.md.
  4. QC before analysis. Run the checklist in airr-data.md: productive flags, frame, stop codons, chain-type consistency, duplicate handling, orphan chains in paired data, and a round-trip check that writing then re-reading the file reproduces the records.
  5. Report flags as flags. Liability motifs, humanness scores and clonotype groupings are hypotheses with thresholds, and the threshold must travel with the number: references/liabilities.md.

With the immuno MCP connected, number_sequence and annotate_cdrs run ANARCII for you on one variable domain. Both take a scheme (imgt, kabat, chothia, martin or aho) for the residue labels, but the regions and CDR boundaries they return are always the IMGT definition, and the result says so: do not read a Kabat CDR from them. extract_chains gives the sequence observed in a structure, map_epitope_paratope (with scheme) labels paratope residues by region, and interface_contacts gives contacts and buried area. Their contact rule is any heavy-atom pair within 4.5 Å, and scripts/interface_contacts.py uses the same rule: on PDB 1ZVY (chain A against B) both report 41 residue pairs and 238 atom pairs (checked 2026-11-14).

VHH, designed binders and structures

Three standard-library scripts in scripts/ (Python 3.9+, nothing to install; --help on each). Run them from this skill's directory or by full path.

QuestionCommand
What are this VHH's CDRs, hallmarks, cysteines, liabilities, charge?python3 scripts/vhh_qc.py seqs.fasta or python3 scripts/vhh_qc.py designs.csv --annotate -o designs.qc.csv
Which residue numbers hold the CDRs in this structure, and what contig redesigns them?python3 scripts/cdr_contig.py 1ZVY.cif --chain A --target-chain B --design CDR3 --length CDR3=16-24
Does this predicted complex touch the intended epitope, through the CDRs?python3 scripts/interface_contacts.py design.cif --binder H --target A --hotspots A45,A67

Rules that keep their output trustworthy:

  • vhh_qc.py places regions by anchoring on Cys23, Trp41, Cys104 and the FR4 tail. It reads one VH/VHH domain and reports a sequence it cannot place as unplaced instead of guessing. For an exact IMGT numbering, or when chain type matters, add --numbering anarcii. Agreement with ANARCII, the cases it declines, and the limits: references/vhh.md.
  • Positions in its output are raw 1-based indices plus a region name, never IMGT numbers.
  • cdr_contig.py drops residues whose backbone N, CA or C is missing, because a contig naming an unresolved residue fails inside the design tool. Run it on the exact file you will upload.
  • Contig syntax and residue-numbering convention belong to the design tool; confirm both in that tool's documentation before pasting.
  • interface_contacts.py reports geometry only. It is a filter on where a design binds, not an estimate of how well.

Clonotype definitions are a choice, not a fact

Any statement about clonal diversity depends on a definition that must be stated: identical junction nucleotides; identical CDR3 amino acids plus same V and J gene; CDR3 amino acid identity above a threshold with the same V and J; or a hierarchical-clustering definition with a distance cutoff. These give answers that differ several-fold on the same data. Report the definition alongside every diversity number, and keep one definition across any comparison.

Reference

Individual skills in this repo

This repo contains 2 individual skills — each has its own dedicated page.

antibody-literature-search

Find and summarise antibody and immunology literature and public database records - papers on a target, antibody or method, the originator publication for a named mAb, UniProt entries, PDB, SAbDab and SAbDab-nano structures, Thera-SAbDab therapeutic sequences, IMGT germlines, clinical trials, patent sequences, and measured design data in Proteinbase. Use when asked what is known or published about an antigen, antibody, epitope or assay, to look up an accession, PDB ID, PMID or DOI, to summarise a paper, to profile a target before designing against it (a target dossier covering construct, structures, known binders and epitopes, orthologs, accessibility and clinical context), or to assemble evidence on an antibody target. Every identifier is resolved against the source before it is written. Use antibody-therapeutics-landscape for industry and format context, antibody-reagent-selection to choose a commercial antibody, antibody-sequence-bioinformatics to work with the sequence...

antibody-therapeutics-landscape

Antibodies as drugs and as an industry - molecular formats (IgG subclass, Fab, scFv, VHH, bispecific, ADC, Fc engineering), drug-name decoding, the discovery-to-approval path, regulatory routes, developability, CMC and commercial vocabulary, nanobody (VHH) drugs, how to argue user fit and path to value for a design tool or pitch, plus biotech employer research and interview prep. Use when a prompt names an antibody drug, a mAb or nanobody format, an antibody or biotech company, asks what a biotech term means, who would use or buy a design result, or asks about a biotech role, job ad or interview. Approval counts, pipelines and company facts are volatile and get looked up, never recalled. Use antibody-literature-search to find papers, trials and database records, antibody-reagent-selection to choose a lab antibody, antibody-sequence-bioinformatics for sequence data.

Related Skills