Nucleotide frame translation

From XuShuwenn/RedAct · View interactive version

Nucleotide frame translation is an AI agent skill from the GitHub repository XuShuwenn/RedAct. Analyze nucleotide sequences: detect type, compute GC%, translate in a specified reading frame with '*' for stops, and find the longest ORF that starts at ATG and ends at an in-frame stop.

How to use this skill

Skill file

Nucleotide Sequence Frame Translation and ORF Analysis

Reusable workflow for tasks that require:

When to Use

Activate this skill when a prompt requests sequence type identification, GC% computation, frame-specific translation, and/or longest ORF length from a provided nucleotide sequence, especially when strict output formatting is required.

Core Workflow

  1. Ingest and Normalize Input
  1. Determine Sequence Type
  1. GC Content (for DNA/RNA)
  1. Frame-Specific Translation (DNA)
  1. Longest ORF Across All Three Frames (DNA)
  1. Output Formatting

Verification

Before finalizing, perform these checks:

Common Pitfalls and How to Avoid Them

Optional Script Usage

Use the helper script scripts/nucleotide_tools.py for deterministic, reusable computation and quick verification.

Examples:

The script prints concise results for spot-checking. Integrate its functions in your solution code to ensure consistent algorithms and rounding.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.