Skip to content
Back to skills

Sequences Alignment

ASecurity

"Construct, transform, compare, and align scikit-bio biological

  • 247 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added September 9, 2026
datapythonbashapi

Works with

  • api

Security analysis

A100/100

Pro scans all 5 files and shows the line behind each finding

Scanned September 9, 2026

npx -y skills add VectorSpaceLab/AREX-Skill --skill sequences-alignment --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Sequences Alignment?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Sequences Alignment
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-sequences-alignment/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-sequences-alignment)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: sequences-alignment
description: "Construct, transform, compare, and align scikit-bio biological
  sequences and TabularMSA objects."
disable-model-invocation: true
metadata:
  disco-role: operating
license: BSD 3-Clause
---

# scikit-bio Sequences and Alignment

Use this sub-skill when a task involves constructing `Sequence`, `DNA`, `RNA`, or `Protein` objects; preserving or slicing sequence metadata; transforming nucleotides; translating with `GeneticCode`; scoring substitutions; creating or indexing `TabularMSA`; computing alignment scores/distances; or aligning two sequences with scikit-bio.

## Route Here For

- Creating `DNA`, `RNA`, `Protein`, or generic `Sequence` instances with metadata, positional metadata, interval metadata, lowercase handling, or validation choices.
- Inspecting grammar state such as gaps, degenerates, definites, wildcard characters, or alphabets, and using `degap`, complement, transcription, reverse transcription, or translation workflows.
- Running pairwise alignment with `pair_align`, `pair_align_nucl`, or `pair_align_prot`, then converting `PairAlignPath` results to aligned strings or `TabularMSA`.
- Building `TabularMSA` objects, indexing rows/columns, deriving consensus/conservation summaries, converting to or from `AlignPath`, and computing `align_score` or `align_dists`.
- Troubleshooting invalid characters, lowercase/validation behavior, metadata length mismatches, translation stop handling, substitution/gap scoring, or MSA shape/index errors.

## Start With

- `references/api-reference.md` for concrete signatures, defaults, and object roles.
- `references/workflows.md` for copy-ready recipes covering construction, transformation, alignment, MSA, scoring, and distance workflows.
- `references/troubleshooting.md` for diagnosis tables and repair patterns.
- `scripts/sequence_alignment_smoke.py` for a small deterministic API smoke check that prints JSON.

## Boundaries

- For file-format reading/writing, FASTA parsing, metadata serialization, or I/O registry details, use `../io-metadata/SKILL.md` and return here after sequences or `TabularMSA` objects exist.
- For tree construction or phylogenetic interpretation of alignment-derived distances, use `../trees-phylogeny/SKILL.md`.
- For distance-matrix statistics, ordination, PERMANOVA, or downstream statistical tests, use `../statistics-ordination/SKILL.md`.
- Treat deprecated `global_pairwise_align*` and `local_pairwise_align*` wrappers as legacy/educational APIs only; prefer `pair_align`, `pair_align_nucl`, and `pair_align_prot`.

## Quick Sanity Check

From this sub-skill directory with scikit-bio installed, run:

```bash
python scripts/sequence_alignment_smoke.py
```

The script itself is safe to execute from arbitrary working directories when addressed by its file path. It imports only public `skbio` APIs, constructs sequence objects, aligns short DNA sequences, builds a `TabularMSA`, and prints a compact JSON summary.

Files in this skill

  • SKILL.md2.9 KB
  • references/api-reference.md12.9 KB
  • references/troubleshooting.md8.3 KB
  • references/workflows.md8.1 KB
  • scripts/sequence_alignment_smoke.py3.3 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.