Logo vun Codonfm Score

Codonfm Score

Organisatioun
NVIDIA-BioNeMo
codonfm-score

Validate, 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.

Iwwersiicht

EditeurNVIDIA-BioNeMo
Repositorybionemo-agent-toolkit
Skill-Nummcodonfm-score
Stären
502
Forks
78
Matgeliwwert Fichieren
9
Linken
  • Instruktiounen am Markdown-Format

    Eng SKILL.md-Datei, déi de Modell bei Bedarf luet, soudatt nëmmen Token ufalen, wann eng Ufro tatsächlech dozou passt.

  • Funktionéiert mat all LLM

    KI-Skills si reng Markdown, keen ubidderspezifesche Code. Dofir funktionéiert dëse Skill mat GPT, Claude, Gemini, Grok oder engem lokale Modell.

  • 9 matgeliwwert Dateien

    Skripten, Virlagen a Referenzen, déi de Modell beim Schaffe liese kann. D'Dateie kënnen nëmme gelies ginn a ginn ni ausgeféiert.

  • Open Source

    Vum NVIDIA-BioNeMo op GitHub verëffentlecht. Liest de Quelltext, ier Dir de Skill installéiert.

Installatioun

Installéiert de KI-Skill Codonfm Score an TypingMind, fir e mat all LLM ze benotzen, oder füügt en an en anere KI-Agent an, deen SKILL.md liest.

1

An TypingMind installéieren

TypingMind installéiert e Skill direkt aus sengem GitHub-Dossier — dobäi gëtt SKILL.md gelies, d'Ressourcedateie gi gebëndelt an d'Resultat gëtt lokal gespäichert.

  1. Maacht d'App op a gitt op Plugins → Skills.
  2. Wielt „Vun GitHub installéieren“.
  3. Pecht d'URL vum Skill-Dossier hei drënner an a bestätegt.
    https://github.com/NVIDIA-BioNeMo/bionemo-agent-toolkit/tree/main/open-models-skills/codonfm/codonfm-score
  4. Aktivéiert de Skill an all Chat, an deem Dir e benotze wëllt.
Plugins → Skills → Skill afügen → Vu GitHub-URL, pecht dann d'URL vum Dossier an a klickt op Weider.
2

An engem anere KI-Agent installéieren

All KI-Agent, deen d'Format Agent Skills liest, kann dëse Skill benotzen — kopéiert den Dossier an de Skill-Verzeechnes vun deem KI-Agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/NVIDIA-BioNeMo/bionemo-agent-toolkit.git /tmp/bionemo-agent-toolkit
mkdir -p .claude/skills
cp -r /tmp/bionemo-agent-toolkit/open-models-skills/codonfm/codonfm-score .claude/skills/codonfm-score
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert Codonfm Score an engem Chat vun TypingMind, an de Modell iwwerhëlt de Rescht. Den Numm an d'Beschreiwung stinn am System-Prompt. Soubal eng Ufro dozou passt, luet de Modell déi komplett Instruktioune selwer — Dir musst de Skill ni manuell opruffen, an et fale keng Token un, bis en tatsächlech benotzt gëtt.

De Modell luet Codonfm Score automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass Codonfm Score net un de Modell gebonnen, fir deen de Skill geschriwwe gouf. Installéiert en eemol an TypingMind a benotzt e mat GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder engem lokale Modell, deen Dir selwer bedreift — alles mat Ären eegenen API-Keys.

  • Gëtt nëmme gelueden, wann et néideg ass

    De System-Prompt enthält nëmmen den Numm an d'Beschreiwung. D'Instruktioune gi bei der éischter passender Ufro gelueden, soudatt en onbenotzte Skill näischt kascht.

  • De Modell am lafende Chat wiesselen

    Well de Skill aus Instruktiounen amplaz vu Code besteet, funktionéiert en och no engem Modellwiessel — den nächste Modell liest déi selwecht SKILL.md-Datei.

Skill-Instruktiounen

Dëst ass den Inhalt vu SKILL.md, deen de Modell luet. Liest e virun der Installatioun — e Skill besteet aus Instruktiounen, déi Äre Modell befollegt.

Score variants with public Encodon

Run general masked-codon mutation_prediction only. This produces a research signal, not a clinical diagnosis or an expression-direction prediction.

Instructions

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() where possible. If extraction is needed, use a fresh directory from tempfile.mkdtemp() or mktemp -d and 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.

Check whether the request is executable in public v1 before installing or downloading anything. For synonymous-codon aggregation or Decodon, inspect the parser and 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.

Preflight

  1. Confirm src/runner.py, src/data/mutation_dataset.py, and src/inference/encodon.py exist.
  2. Accept only encodon_80m, encodon_600m, or encodon_1b as --model_name. The public parser lists larger names, but its model configuration does not implement them.
  3. For model execution, require a .ckpt file, or a .safetensors file with sibling config.json. Input preparation can use a planned path.
  4. Validate the CSV headers before starting a GPU job.

Inputs

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:

text
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.

Examples

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.

bash
python -m src.runner eval \
    --exp_name variant_scoring \
    --model_name encodon_80m \
    --checkpoint_path "$CODONFM_CHECKPOINT_PATH" \
    --data_path "$CODONFM_DATA_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" \
    --predictions_output_dir "$CODONFM_RUN_DIR/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.

Outputs

--predictions_output_dir receives:

  • ref_likelihoods_merged.npy
  • alt_likelihoods_merged.npy
  • likelihood_ratios_merged.npy
  • ids_merged.npy

Load 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.

Reporting

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.

Boundaries

  • General mutation_prediction handles both synonymous and missense changes.
  • Do not use missense_prediction, missense_inference, MissenseDataset, mutation_pred_clm, --organism_token, or --causal; those are newer unavailable public-release features.
  • If a user asks specifically for synonymous-codon-aggregated missense scoring, explain that public v1 only provides the general ref/alt LLR. Do not silently substitute the two methods.

Matgeliwwert Fichieren

De Modell liest dës Dateie bei Bedarf, wärend de Skill gelueden ass. Si ginn als liesbar Dateie bereetgestallt a ginn ni ausgeféiert.

Heefeg gestallte Froen

Wat mécht de KI-Skill Codonfm Score?

Validate, 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.

Firwat Codonfm Score op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. Codonfm Score besteet aus einfachem Markdown amplaz vun ubidderspezifeschem Code. Dee selwechte Skill funktionéiert also mat GPT-5, Claude, Gemini, Grok oder engem lokale Modell – an Dir kënnt de Modell matzen am Chat wiesselen, ouni datt de Skill ophält ze funktionéieren. TypingMind benotzt Är eegen API-Schlësselen, sou datt Dir d'Ubidder direkt bezuelt amplaz vun engem Abonnement pro Benotzerplaz. Är Skills a Chats bleiwen an Ärem eegene Späicher.

Wéi installéieren ech Codonfm Score an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/NVIDIA-BioNeMo/bionemo-agent-toolkit/tree/main/open-models-skills/codonfm/codonfm-score an. TypingMind liest d'Datei SKILL.md, bündelt déi zougehéiereg Dateien an installéiert dat Ganzt als Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen Codonfm Score benotzen?

All Modell, deen Dir an TypingMind verbënnt. KI-Skills sinn einfach Markdown-Instruktiounen an net ubidderspezifesche Code. Dofir kënne GPT, Claude, Gemini, Grok a lokal Modeller dëse Skill lueden, wann eng Ufro dozou passt.

Wéi vill KI-Modeller kann ech mat Codonfm Score benotzen?

Esou vill Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir Codonfm Score domat benotzen – GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama a méi – alles op TypingMind mat Ären eegenen API-Schlësselen.

Ass de KI-Skill Codonfm Score gratis?

De Skill gëtt vum NVIDIA-BioNeMo op GitHub publizéiert. Kuckt am Repository no de Lizenzbedéngungen. Dir bezuelt nëmmen Ären eegene KI-Ubidder fir d'Token, déi Dir benotzt.

Wat si KI-Skills?

E KI-Skill ass e weiderverwendbaart Pak vun Instruktiounen, dat engem KI-Modell bäibréngt, wéi en eng bestëmmt Aufgab erfëllt. E follegt dem oppenen Agent Skills-Format: eng Datei SKILL.md mat engem Numm an enger Beschreiwung, plus all Scripten, Virlagen oder Referenzdateien, déi de Modell eventuell brauch. De Modell liest d'Instruktiounen eréischt, wann Är Ufro zum Skill passt. En installéierte Skill kascht also näischt, bis e benotzt gëtt.

Wéi ënnerscheede sech KI-Skills vu Plugins oder MCP-Serveren?

E Plugin oder MCP-Server gëtt engem Modell nei Tools, déi en opruffe kann – Code, deen iergendwou leeft an e Resultat zeréckgëtt. E KI-Skill gëtt dem Modell dogéint Wëssen an eng Virgoensweis: wéi en eng Aufgab ugeet, wéi eng Schrëtt en nokënnt a wéi eng gutt Ausgab ausgesäit. Skills bestinn aus einfachem Markdown, brauche kee Server, keen API-Schlëssel a keng Lafzäitëmfeld a funktionéiere mat all Modell.

All weisen

Elo Ären eegene KI-Workspace ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇