/nvidia-bionemo:codonfm-scorefrom NVIDIA BioNeMo Agent Toolkit
Audits CodonFM/Encodon source code and scores variants using masked-codon mutation prediction. Validates CLI compatibility, task types, and aggregation workflows without installing ML runtime.
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.
Run general masked-codon mutation_prediction only. This produces a research
signal, not a clinical diagnosis or an expression-direction prediction.
First confirm CodonFM or Encodon context in the user's request or established conversation. If that context is missing, ask for any missing variant details and the intended analysis before choosing a model or inspecting model-specific files. The presence of this skill or source files alone does not establish the user's intent.
For source reviews and command preparation, inspect the supplied source and
metadata without installing the ML runtime. Use an available Python 3
interpreter with standard-library zipfile, json, and csv; do not assume
the python alias or unzip exists. Read archive members directly with
ZipFile.namelist() and ZipFile.read() for a source-only compatibility review;
no extraction is needed to inspect source or count matching members. If another
requested operation requires extraction, keep it in the user's selected output
or a fresh child of the runtime's exact assigned TMPDIR. Do not invent a shared
/tmp location or use a workspace parent. Preserve existing checkouts and
scratch directories. Check whether rg is
available; use grep or Python if it is absent. Read the source sections
needed for the requested command or compatibility question.
For a compatibility audit, use the supplied revision rather than assuming that
the public examples below describe it. Check both task-type and process-item
choices, and name the requested unsupported aliases explicitly in the conclusion.
Inspect the prediction writer before citing output filenames or a scoring formula.
Scope absence claims to inspected files; an archive-wide absence claim requires
checking its complete member list. Describe synonymous-codon aggregation as a
different workflow from the implemented ref/alt masked-codon LLR, without
inventing an implemented aggregation formula.
Compute any reported file count from the exact filter actually searched, with
Python and JSON counts distinguished rather than copying a displayed subtotal.
Read src/data/mutation_dataset.py before describing its row, pair or grouping
semantics. Finding that search terms are absent is not evidence of how unread
dataset code behaves; identify uninspected files explicitly.
For the public-v1 missense aggregation question, distinguish the unavailable
missense_prediction and missense_inference selectors from the available
general mutation_prediction; verify both task and process choices in the
supplied implementation rather than reporting only one selector.
Check whether the request is executable in public v1 before installing or
downloading anything. For synonymous-codon aggregation or Decodon, inspect the
supplied checkout's src/runner.py parser and src/config.py model configuration,
explain the missing feature, and finish. Do not implement the missing workflow,
search private code, or keep retrying unsupported commands.
Resolve the variant CSV, checkpoint, and output directory from the request and available files. Validate inputs before inference. Execution requires the project's ML dependencies and a compatible NVIDIA GPU. If a required resource is unavailable, return the validated inputs where possible and a command with the missing prerequisite identified. When scoring is requested and resources are ready, execute and verify the score arrays. A request for preparation ends with the inputs and command. If variants are missing, report the required schema; do not invent variants or silently switch to a public dataset.
Default to the public 80M checkpoint for demonstrations:
nvidia/NV-CodonFM-Encodon-80M-v1, revision
399ca9fe17b57941a7bebc6788033919b417413c, file
NV-CodonFM-Encodon-80M-v1.safetensors and sibling config.json.
Reuse an existing checkpoint or download it when needed for the requested work.
Preserve an explicitly requested model size.
src/runner.py, src/data/mutation_dataset.py, and
src/inference/encodon.py exist.encodon_80m, encodon_600m, or encodon_1b as
--model_name. The public parser lists larger names, but its model
configuration does not implement them..ckpt file, or a .safetensors file with
sibling config.json. Input preparation can use a planned path.Require these CSV columns:
id: unique row identifier.ref_seq: reference coding sequence, not genomic DNA with introns, UTR-only
sequence, or protein sequence.ref_codon and alt_codon: three-nucleotide codons.codon_position: zero-based codon position relative to the CDS.With --extract-seq, MutationDataset extracts an appropriate sequence window
from ref_seq; it does not derive or require alt_seq.
Before running, normalize sequences and codons to uppercase DNA (A/C/G/T),
require CDS lengths divisible by three, and check every row satisfies:
0 <= codon_position < len(ref_seq) / 3
ref_seq[3 * codon_position : 3 * codon_position + 3] == ref_codon
The public extractor asserts the second condition and otherwise stops the job.
Set CODONFM_DATA_PATH to the variant CSV, CODONFM_CHECKPOINT_PATH to the
checkpoint, and CODONFM_RUN_DIR to your chosen output directory:
Use the interpreter from the configured ML environment for inference. The
example uses python; substitute that environment's interpreter path if the
alias is unavailable.
python -m src.runner eval \
--exp_name variant_scoring \
--model_name encodon_80m \
--checkpoint_path "${CODONFM_CHECKPOINT_PATH:?Set to the checkpoint path}" \
--data_path "${CODONFM_DATA_PATH:?Set to the supplied variant CSV path}" \
--process_item mutation_pred_mlm \
--dataset_name MutationDataset \
--task_type mutation_prediction \
--extract-seq \
--mask_mutation \
--num_nodes 1 \
--num_gpus 1 \
--num_workers 0 \
--val_batch_size 2 \
--out_dir "${CODONFM_RUN_DIR:?Set to a fresh output directory}" \
--predictions_output_dir "${CODONFM_RUN_DIR:?Set to a fresh output directory}/predictions"
Do not remove --mask_mutation: without it, the reference codon remains
visible at the scored position and invalidates masked-codon LLR scoring.
For preparation requests, inspect the CSV directly against the input schema
and reference-position checks above, then report the rows checked and provide
the scoring command. Extra columns are allowed; use --ref_seq_col if the
reference sequence has a different column name. These checks do not require
the ML runtime. The command above performs inference when resources are ready.
The existing --dryrun optionally builds runtime configuration and skips
execution. It requires the ML dependencies, can create the prediction directory,
and does not read the CSV or load weights. Do not use it as evidence that inputs,
checkpoint compatibility, or prediction quality have been validated.
--predictions_output_dir receives:
ref_likelihoods_merged.npyalt_likelihoods_merged.npylikelihood_ratios_merged.npyids_merged.npyLoad the arrays with NumPy and align scores by ids_merged.npy. The reported
LLR is log p(ref_codon) - log p(alt_codon); a larger positive value means the
alternate codon is less probable in context. It does not say whether
expression goes up or down.
Keep the final answer concise and self-contained, with the requested command or compatibility conclusion near the start. For command preparation, include each row's validation result, the complete command, all four output filenames, and the LLR definition and sign interpretation. Cite the inspected source locations for the command, outputs, and scoring semantics. State whether inference ran; report numerical scores only when execution produced them.
mutation_prediction handles both synonymous and missense changes.missense_prediction, missense_inference, MissenseDataset,
mutation_pred_clm, --organism_token, or --causal; those are newer
unavailable public-release features.agents/openai.yaml (opens in a new tab)evals/config.yml (opens in a new tab)evals/evals.json (opens in a new tab)evals/files/codonfm_source.LICENSE (opens in a new tab)evals/files/codonfm_source.NOTICE.txt (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/variants.csv (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
codonfm, encodon, variant-scoring, source-audit, mutation-prediction
npx claudepluginhub nvidia-bionemo/bionemo-agent-toolkit --plugin nvidia-bionemo43 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-embedValidate coding-sequence CSVs, extract public CodonFM/Encodon embeddings, and choose checkpoints for downstream property modeling./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.