bio-sequence-statistics
Calculate sequence statistics (N50, length distribution, GC content, summary reports) using Biopython. Use when analyzing sequence datasets, generating QC reports, or comparing assemblies.
npx skills add FreedomIntelligence/OpenClaw-Medical-Skills --skill bio-sequence-statistics --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
## Version Compatibility Reference examples tested with: BioPython 1.83+, samtools 1.19+ Before using code patterns, verify installed versions match. If versions differ: - Python: `pip show <package>` then `help(module.function)` to check signatures If code throws ImportError, AttributeError, or TypeError, introspect the installed package and adapt the example to match the actual API rather than retrying. # Sequence Statistics **"Calculate N50 and other assembly statistics"** → Compute sequence count, length distribution, N50/L50, GC content, and nucleotide composition for FASTA datasets. - Python: `SeqIO.parse()`, `gc_fraction()` (BioPython) Calculate comprehensive statistics for sequence datasets using Biopython. ## Required Imports ```python from Bio import SeqIO from Bio.SeqUtils import gc_fraction import statistics ``` ## Basic Statistics ### Sequence Count and Total Length ```python records = list(SeqIO.parse('sequences.fasta', 'fasta')) total_seqs = len(records) total_bp = sum(len(r.seq) for r in records) print(f'Sequences: {total_seqs}') print(f'Total bp: {total_bp:,}') ``` ### Length Statistics ```python lengths = [len(r.seq) for r in SeqIO.parse('sequences.fasta', 'fasta'
- Version Compatibility
- Required Imports
- Basic Statistics
- Sequence Count and Total Length
- Length Statistics
- N50 and Nx Statistics
- Calculate N50
- Calculate Any Nx Value
- L50 (Number of Sequences in N50)
- GC Content Statistics
- Overall GC Content
- Per-Sequence GC Distribution
- GC Content Histogram Data
- Length Distribution
What does the bio-sequence-statistics skill do?
Calculate sequence statistics (N50, length distribution, GC content, summary reports) using Biopython. Use when analyzing sequence datasets, generating QC reports, or comparing assemblies.
How do I install it?
Run `npx skills add FreedomIntelligence/OpenClaw-Medical-Skills --skill bio-sequence-statistics --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From FreedomIntelligence/OpenClaw-Medical-Skills, a repository with 2,909 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
