/bionemo-agent-toolkit:codonfm-embedfrom NVIDIA BioNeMo Agent Toolkit
Validates coding-sequence CSVs and extracts frozen CLS embeddings using public Encodon/CodonFM checkpoints for downstream property modeling.
Ships in NVIDIA BioNeMo Agent Toolkit. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Extract one frozen CLS vector per coding sequence with public Encodon v1. Support input validation, command preparation, extraction, and checkpoint selection for translation efficiency, expression, or mRNA stability modeling. Extraction does not automatically train a downstream regressor.
requirements.txt environment,
a compatible NVIDIA GPU, and local checkpoint weights. A metadata JSON is not
a checkpoint. A .safetensors file needs its sibling config.json; .ckpt
checkpoints are also supported by the public loader.python -m src.runner from the CodonFM repository root. In an isolated
workspace, use supplied source artifacts; source paths below are relative to
that checkout or source archive, not this skill directory.Input source precedence: explicit user prompt arguments, then supplied files/checkpoint metadata, then inspected public runner defaults. Resolve conflicting model names and checkpoint metadata before execution. Supplied 80M metadata is useful for preparing an 80M command; it does not restrict an open-ended recommendation to that size.
Required for validation: a CSV. Required for extraction: the CSV, checkpoint, matching model name, and output directory. Optional: context length and batch size overrides. Checkpoint-selection questions can be answered without a CSV.
| Input | Requirement or default |
|---|---|
| Sequence CSV | Columns id, ref_seq, value, split; extra columns allowed |
id | Nonblank, unique IDs for unambiguous output association |
ref_seq | Coding sequence, uppercase DNA A/C/G/T, length divisible by three; public dataset converts uppercase U to T |
value | Numeric label; use 0.0 for new extraction-only data, preserve supplied labels |
split | Only exact test values enter extraction; blank/other values are excluded |
| Checkpoint and model | Match weights/config to encodon_80m, encodon_600m, or encodon_1b |
| Context length | Public runner default 2048 tokens, including CLS and SEP |
| Output directory | A fresh run directory with an empty predictions directory |
src/data/codon_bert_dataset.py, src/data/preprocess/codon_sequence.py,
src/inference/encodon.py, or src/utils/pred_writer.py for the relevant
behavior. Read ZIP members with zipfile.ZipFile.namelist() and .read();
source inspection does not need extraction. If a checkout is needed, use a
new directory from tempfile.mkdtemp() or mktemp -d, without deleting or
overwriting an existing directory. For Decodon support questions, inspect
runner/config and model/inference modules, cite the inspected files, explain
the missing public implementation, and finish there.| Script | Purpose | Arguments |
|---|---|---|
| validate_inputs.py | Read-only CSV validation and per-row verdicts | Required CSV path; optional --context-length (default 2048) |
Run the preflight with Python; CODONFM_SKILL_DIR is the directory containing this file:
python "$CODONFM_SKILL_DIR/scripts/validate_inputs.py" "$CODONFM_DATA_PATH" \
--context-length 2048
The checker prints JSON. Exit 0 means no findings, 1 means row findings to
review (including exclusions/warnings), and 2 means a file/schema error.
Neither warnings nor exclusions imply that the public runner will crash.
The checker emits JSON with total_rows, test_rows, excluded_rows,
context_length, codon_limit, warnings, and rows. Each row records its
one-based data-row number (excluding the header), ID, split, verdict, issues,
sequence/value validity, and retained/lost codons. A file/schema error emits
error and csv instead. These are preflight findings, not generated embeddings.
Set CODONFM_DATA_PATH to the CSV, CODONFM_CHECKPOINT_PATH to the weights,
CODONFM_MODEL_NAME to the matching architecture, and CODONFM_RUN_DIR to a
fresh output directory. Substitute actual paths in a prepared command:
python -m src.runner eval \
--task_type embedding_prediction \
--process_item codon_sequence \
--dataset_name CodonBertDataset \
--exp_name embed_extract \
--model_name "$CODONFM_MODEL_NAME" \
--checkpoint_path "$CODONFM_CHECKPOINT_PATH" \
--data_path "$CODONFM_DATA_PATH" \
--context_length 2048 \
--num_nodes 1 \
--num_gpus 1 \
--num_workers 0 \
--val_batch_size 2 \
--out_dir "$CODONFM_RUN_DIR" \
--predictions_output_dir "$CODONFM_RUN_DIR/predictions"
For a low-cost demonstration, encodon_80m matches
nvidia/NV-CodonFM-Encodon-80M-v1, revision
399ca9fe17b57941a7bebc6788033919b417413c, file
NV-CodonFM-Encodon-80M-v1.safetensors and sibling config.json.
--predictions_output_dir, embeddings_merged.npy contains frozen
final-layer CLS vectors, shape (processed_rows, hidden_size).ids_merged.npy is index-aligned: embedding row i belongs to ID row i.
Use these IDs to join to the CSV; do not assume every CSV row was retained.
Duplicate IDs make that join ambiguous even when extraction succeeds.1024 for 80M,
2048 for 600M/1B). Do not fabricate arrays for a preparation-only request.The public checkout's downstream-model references are:
notebooks/4-EnCodon-Downstream-Task-riboNN.ipynbnotebooks/5-EnCodon-Downstream-Task-mRFP-expression.ipynbnotebooks/6-EnCodon-Downstream-Task-mRNA-stability.ipynbnotebooks/te_predictor.py, or notebooks/mfe_predictor.py.2048, retain the first 2046 codons; any remaining
3-prime sequence is lost. Increasing the flag does not validate a longer
context. Disclose deliberate cropping or a separate chunking/aggregation
strategy; neither is equivalent to embedding the complete sequence once.--dryrun builds runtime configuration, may create directories, and needs
ML dependencies; it reads neither the CSV nor the weights and is not input
validation.| Symptom | Cause and action |
|---|---|
Missing split column | Eval requests the test split despite the dataset docstring calling this column optional; add an explicit split column to a corrected copy |
| Fewer output rows | Blank/non-test split values are silently filtered; set intended extraction rows to exact test in a corrected copy |
| Repeated output IDs | Duplicate input IDs are not rejected; assign unique IDs while preserving a mapping to the original rows |
| Oversized sequence | Preprocessing truncates at context_length - 2 codons; report retained/lost lengths and agree on a sequence-handling strategy |
| Missing weights or dependencies | Complete validation/command preparation; metadata and --dryrun do not substitute for weights |
| Merge failure on a repeated run | The writer scans .npy files; use a fresh predictions directory to avoid stale shards or merged arrays |
BENCHMARK.md (opens in a new tab)agents/openai.yaml (opens in a new tab)evals/evals.json (opens in a new tab)evals/files/codonfm_source.zip (opens in a new tab)evals/files/encodon_checkpoint.json (opens in a new tab)evals/files/sequences.csv (opens in a new tab)evals/files/sequences_edge_cases.csv (opens in a new tab)references/checkpoint-selection.md (opens in a new tab)scripts/validate_inputs.py (opens in a new tab)skill-card.md (opens in a new tab)skill.oms.sig (opens in a new tab)tests/test_validate_inputs.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub nvidia-bionemo/bionemo-agent-toolkit --plugin bionemo-agent-toolkit47 skills in this plugin
/boltz2-nimUse Boltz2 NIM for biomolecular structure prediction and binding affinity. Invoke for Boltz2, protein structures, protein-ligand/DNA/RNA complexes, SMILES or CCD ligands, pIC50/IC50 affinity scoring, mmCIF output, hosted NVIDIA API calls, or local Docker deployment.
/codonfm-finetuneFine-tune public CodonFM Encodon checkpoints on labeled coding-sequence or coding-variant data using LoRA, head-only, or full fine-tuning. Use when a user explicitly asks to fine-tune CodonFM or Encodon for regression or classification. Support generic public-v1 Encodon workflows only; reject Decodon, MissenseDataset, missense_synom_agg, and generation workflows./codonfm-scoreValidate, prepare, or run public CodonFM Encodon masked-codon variant scoring and review compatibility of its scoring workflows. Use only when the user explicitly requests CodonFM or Encodon, or that context is already established in the conversation. Do not select this skill for a generic variant-scoring request without that context; ask for the variant and intended analysis first./codonfm-setupSet up the public CodonFM v1 repository and download public Encodon checkpoints. Use for requests to build or launch the CodonFM development container, configure local data/checkpoint mounts, verify GPU access, or download public Encodon 80M, 600M, 1B, or Cdwt-1B weights. Do not use for Decodon, Encodon 5B/10B, missense-aggregation, or codon-optimization setup because those implementations are not in the public repository./complexa-binder-designRun a complete protein binder design campaign with NVIDIA Proteina-Complexa: resolve a target structure and hotspots from a name/sequence/PDB, co-design binder sequence+structure with reward-guided test-time search (best-of-n, beam search, FK steering, MCTS), select with the internal AF2 reward gate, then INDEPENDENTLY validate each binder by refolding the complex with Boltz2 (default) or OpenFold3 and rank on interface confidence, pLDDT, ipSAE, apo/holo stability, and hotspot contact. Use whenever the user wants de novo binders against a named target, sequence, or PDB, hotspot/epitope-targeted design, Proteina-Complexa / Complexa, or ranked validated binders from one request. Sibling of protein-binder-design (RFdiffusion + ProteinMPNN); this skill uses Proteina-Complexa.
/complexa-designEnd-to-end Proteina-Complexa design pipeline driver. Reach for this skill whenever the user wants to "design a binder", "design binders for X", "run complexa design", "de novo binder", "PDL1 binder", "TrkA binder", "design proteins for target", "protein binder design", "ligand binder", "design a small-molecule binder", "ATP-binding protein", "AME motif scaffolding", "scaffold a motif near a ligand", "motif + ligand design", "enzyme scaffolding", "flow matching protein design", "beam-search binder", "FK steering", "MCTS protein design", "refold with AF2", "refold with RF3", or wants success rates, interface pAE, scRMSD, or FoldSeek diversity from a single command. This is the scientific anchor of the skill set: it drives `complexa design <pipeline>` from target picking to manifest emission and tells the user how many designs passed.
Other plugins' skills for the same job