bio-alignment-io

bio-alignment-io is a skill for Claude Code, Codex from PKU-YuanGroup/OpenAI4S. It costs 64 tokens per session (5,207 once invoked), scanned A, a copy of bio-alignment-io, MIT.

A Python tool for reading, writing, and converting multiple sequence alignment files, where aligned DNA, RNA, or protein sequences are placed in matching columns. It supports formats such as Clustal, PHYLIP, Stockholm, FASTA, and Nexus.

In plain words
What is it for?
Use it to load alignments into Python, save them in another format, or build alignments programmatically.
Why use it?
It avoids writing separate file parsers or manually converting alignment formats. This helps keep sequence data usable across phylogenetics and conservation-analysis tools.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to load alignments into Python, save them in another format, or build alignments programmatically.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/pku-yuangroup/openai4s/bio-alignment-alignment-io
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add PKU-YuanGroup/OpenAI4S --skill bio-alignment-alignment-io
Clone the repo
git clone --depth 1 https://github.com/PKU-YuanGroup/OpenAI4S

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for bio-alignment-io

README.md
[![agentmods](https://agentmods.dev/badge/skills/pku-yuangroup/openai4s/bio-alignment-alignment-io/github.svg)](https://agentmods.dev/skills/pku-yuangroup/openai4s/bio-alignment-alignment-io)
Your own site
<a href="https://agentmods.dev/skills/pku-yuangroup/openai4s/bio-alignment-alignment-io"><img src="https://agentmods.dev/badge/skills/pku-yuangroup/openai4s/bio-alignment-alignment-io/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for bio-alignment-io

Your own site · 80×15
<a href="https://agentmods.dev/skills/pku-yuangroup/openai4s/bio-alignment-alignment-io"><img src="https://agentmods.dev/badge/skills/pku-yuangroup/openai4s/bio-alignment-alignment-io.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 64 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 5,207 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin 95% copy Near-identical to another mod in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00064 $0.05207
Opus 5 $0.00032 $0.02603
Sonnet 5 $0.00013 $0.01041
Haiku 4.5 $0.00006 $0.00521

Measured 11d ago against content hash 67a0077a163a, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

bio-alignment-io scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 11d ago.

The scan reads SKILL.md. This mod also ships 4 executable files (scripts/batch_convert.py, scripts/convert_formats.py, scripts/read_alignment.py, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

This is a copy

95% identical to bio-alignment-io — 12 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

skills/bioskills/bio-alignment-alignment-io/SKILL.md · 454 lines

How it starts

The opening of the file, as written. The whole thing — 454 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Version Compatibility

Reference examples tested with: BioPython 1.83+

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.

Alignment File I/O

Read, write, and convert multiple sequence alignment files in various formats.

Required Import

Goal: Load modules for reading, writing, and manipulating multiple sequence alignments.

Approach: Import AlignIO for file I/O and supporting classes for programmatic alignment construction.

from Bio import AlignIO
from Bio.Align import MultipleSeqAlignment
from Bio.SeqRecord import SeqRecord
from Bio.Seq import Seq

Format Coverage Map

Three Python libraries cover the alignment-format space, with overlapping but non-identical support. Pick by what is actually required.

Format Bio.AlignIO Bio.Align (modern) pyhmmer.easel Notes
Aligned FASTA R/W R/W R/W Most portable; loses annotations
Clustal R/W R/W R Clustal conservation marks NOT round-tripped
PHYLIP (interleaved/sequential/relaxed) R/W R/W R Strict 10-char names is silent footgun
Stockholm R/W R/W R/W Only format preserving GS/GR/GC/GF annotations
NEXUS R/W R/W -- MrBayes / PAUP* input
MAF (Multiple Alignment Format) R/W R/W -- UCSC whole-genome alignments
A2M / A3M -- (use 'fasta' parser then post-process) -- R/W HMMER (a2m), HHsuite/ColabFold (a3m)
MSF (GCG) R -- -- GCG legacy
EMBOSS / Mauve XMFA / FASTA-m10 R partial -- One-way: read-only

Formats NOT in BioPython (use dedicated tools):

Format Tool Why
HAL progressiveCactus, halTools HDF5-backed multi-genome alignments at TB scale
chain / net UCSC Kent tools (liftOver, chainNet) Pairwise genome alignment
AXT BLASTZ / lastz native Pairwise alignment blocks
PSL UCSC Kent tools (pslPretty, blat) BLAT alignment summary
GFA / rGFA vg, odgi, pggb, gfatools Pangenome graph
GAF vg surject, vg call Graph alignment format (read-to-graph)

Read the full file on GitHub · 454 lines

Files

What ships with it

6 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 11d ago First seen · 454 lines · 64 tokens per session scan A 67a0077a163a

Subscribe to this mod's changes

bio-alignment-io is a skill published in the GitHub repository PKU-YuanGroup/OpenAI4S (403 stars, last pushed today), licensed MIT. It adds 64 tokens to every session and 5,207 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. It is 95% identical to bio-alignment-io, differing in 12 lines, and is treated as a copy.

Related

Other skills, from other repositories

biopython

Comprehensive molecular biology toolkit. Use for sequence manipulation, file parsing (FASTA/GenBank/PDB), phylogenetics, and programmatic NCBI/PubMed access (Bio.Entrez). Best for batch processing, custom bioinformatics pipelines, BLAST automation. For quick lookups use gget; for multi-service integration use…

synthetic-sciences/openscience · 76 tokens

python-math

Small Python utilities for math and text files.

trpc-group/trpc-agent-go · 13 tokens

paper2code

Converts an arxiv paper into a minimal, citation-anchored Python implementation. Trigger when user runs /paper2code with an arxiv URL or paper ID, says "implement this paper", or pastes an arxiv link asking for implementation. Flags all ambiguities honestly. Never invents implementation details not stated in the paper.

PrathamLearnsToCode/paper2code · 72 tokens

optimize-for-gpu

GPU-accelerate Python code using CuPy, Numba CUDA, Warp, cuDF, cuML, cuGraph, KvikIO, cuCIM, cuxfilter, cuVS, cuSpatial, and RAFT. Use whenever the user mentions GPU/CUDA/NVIDIA acceleration, or wants to speed up NumPy, pandas, scikit-learn, scikit-image, NetworkX, GeoPandas, or Faiss workloads. Covers physics…

dralkh/iktinah · 184 tokens

biopython

Biopython guidance for sequence I/O, alignments, Bio.PDB, and Entrez parsing. Use for custom bioinformatics code via agentgeneratedcode. Prefer VenusFactory download tools for NCBI/UniProt/AlphaFold bulk fetches so large payloads stay on disk. Do NOT use as a substitute for proteinsequencesimilaritysearch or…

ai4protein/VenusFactory2 · 81 tokens

anndata

This skill should be used when working with annotated data matrices in Python, particularly for single-cell genomics analysis, managing experimental measurements with metadata, or handling large-scale biological datasets. Use when tasks involve AnnData objects, h5ad files, single-cell RNA-seq data, or integration with…

silverstein/claude-scientific-skills-desktop · 67 tokens