Local alignment affine gap

From XuShuwenn/RedAct · View interactive version

Local alignment affine gap is an AI agent skill from the GitHub repository XuShuwenn/RedAct. Compute local alignment (Smith-Waterman) scores with affine gap penalties for two sequences and produce a correctly formatted, verified result.

How to use this skill

Skill file

Local Alignment with Affine Gap Penalties

Use this skill when a task asks for the local alignment score between two sequences (e.g., DNA or general strings) using specific scoring rules (match, mismatch) and affine gap penalties (gap opening and gap extension). It focuses on implementing Smith-Waterman with affine gaps, verifying correctness, and writing the exact required output format.

When to Use

Activate this skill for problems that specify:

Core Workflow

  1. Clarify Requirements
  1. Read Inputs
  1. Implement Smith-Waterman with Affine Gaps
  1. Compute and Format Output

Verification

Perform these checks before finalizing:

Common Pitfalls

Success Criteria

Optional Script Usage

Use the helper script to compute the score deterministically:

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.