← Về thư mục
📄 / / profiles / r-and-d / raw_evidence / OpenAI4S / skills / bioskills / bio-sequence-manipulation-codon-usage / references / usage-guide.md

Codon Usage - Usage Guide

Overview

This skill enables AI agents to help you analyze codon usage in coding sequences using Biopython: codon counting, CAI (Codon Adaptation Index) scoring against a host, RSCU and Nc bias metrics, GC at codon positions, and naive max-CAI codon optimization for heterologous expression. It uses the redesigned Bio.SeqUtils.CodonAdaptationIndex class (the old Bio.SeqUtils.CodonUsage module was removed in Biopython 1.82).

Prerequisites

pip install biopython

Quick Start

Tell your AI agent what you want to do:

Example Prompts

CAI Against a Host Reference

"Build a Codon Adaptation Index from this FASTA of highly expressed E. coli genes and report the CAI of my target gene."

Codon Optimization

"Codon-optimize this CDS for the host using max-CAI, confirm the protein is unchanged, and list which tradeoffs (ramp, 5' structure, cryptic sites) I should screen before ordering it."

RSCU Analysis

"Calculate RSCU values for my coding sequence and flag over- and under-used synonymous codons."

Rare Codon Detection

"Find the codons with RSCU below 0.5 in this gene."

Overall Bias

"Compute the effective number of codons (Nc) for this sequence."

Wobble Position Bias

"What is the GC content at the first, second, and third codon positions?"

Mitochondrial or Bacterial Genes

"Score this mitochondrial gene's CAI using the vertebrate mitochondrial codon table."

What the Agent Will Do

  1. Import CodonAdaptationIndex from Bio.SeqUtils (not the removed CodonUsage module)
  2. For CAI: build the index from a reference set of highly expressed host genes, then call calculate
  3. Confirm the query is in frame before scoring (out-of-frame input is silently mis-scored)
  4. For optimization: call optimize, verify the protein is preserved, and flag expression-risk tradeoffs
  5. Compute requested bias metrics (RSCU, Nc, GC123) and return formatted results

Key Concepts

CAI (Codon Adaptation Index)

RSCU (Relative Synonymous Codon Usage)

Nc (Effective Number of Codons)

tAI (tRNA Adaptation Index)

Why naive max-CAI optimization can hurt expression

Tips