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

Sequence Statistics - Usage Guide

Overview

This skill enables AI agents to help you calculate decision-grade statistics for sequence datasets and genome assemblies using Biopython: N50/L50, auN, NG50, length distributions, and GC content with explicit ambiguity handling.

Prerequisites

pip install biopython

Quick Start

Tell your AI agent what you want to do:

Example Prompts

Assembly QC

"Calculate N50, L50, auN, and total bases for my genome assembly"

Cross-Assembly Comparison

"Compare NG50 and auN for all FASTA files in the assemblies folder using a 3.1 Gb genome size"

GC Content

"Report mean GC content, excluding N bases, for my contigs"

Distribution

"Show me the contig length distribution histogram for my sequences"

Key Metrics

Metric What It Tells You
N50 Contiguity using assembly size (not comparable across assemblies)
L50 How many contigs contain half the assembled bases
auN Smooth, threshold-free contiguity; preferred for ranking
NG50 Contiguity using genome size; comparable across assemblies
NGA50 Like NG50 but broken at misassembly points (NGA50 << NG50 = misassemblies)
GC% G+C proportion; depends on the chosen ambiguity mode

What the Agent Will Do

  1. Load sequences from the input file (gzip-aware)
  2. Compute length, GC, and N-content arrays in one pass
  3. Derive N50/L50, auN, and (with a genome size) NG50
  4. Report a summary or a side-by-side comparison table

Tips