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

Transcription and Translation - Usage Guide

Overview

This skill enables AI agents to help you convert between DNA, RNA, and protein sequences using Biopython. It covers transcription, back-transcription, and translation, with emphasis on the decisions that silently corrupt results: choosing the correct NCBI genetic code, validating coding sequences, and handling partial codons, gaps, and recoded stops.

Prerequisites

pip install biopython

Quick Start

Tell your AI agent what you want to do:

Example Prompts

Basic Transcription

"Convert this DNA to RNA: ATGCGATCGATCG"

Template-Strand Transcription

"This is the template strand, give me the mRNA it produces"

Basic Translation

"Translate this DNA sequence to protein"

Stop Codon Handling

"Translate this sequence but stop at the first stop codon"

Alternative Genetic Codes

"This is from E. coli, translate it with the bacterial code"

Mitochondrial Sequences

"Translate this human mitochondrial sequence with the correct table"

CDS Validation

"Check that this is a valid complete CDS, then translate it"

ORF Finding

"Find all open reading frames longer than 100 amino acids"

Six-Frame Translation

"Show me the translation in all six reading frames"

What the Agent Will Do

  1. Confirm the molecule type and strand (no type checks exist since Biopython 1.78)
  2. Create a Seq object from your sequence
  3. Select the correct NCBI codon table for the organism if it is not standard
  4. Apply transcribe, back_transcribe, or translate with the right options
  5. Use cds=True to validate complete coding sequences and surface defects loudly
  6. Return the converted sequence(s)

Codon Tables

Biopython includes every NCBI genetic code. The choice changes the protein, and a valid-but-wrong table produces a plausible wrong result with no error:

Tips