Skip to content
Back to skills

Scikit Bio

ASecurity

"Use scikit-bio for bioinformatics sequences, alignments,

  • 247 stars
  • 0 votes
  • 0 copies
  • 6 views
  • Added September 9, 2026
datapythonbashnoderailsapibackendperformance

Works with

  • cli
  • api

Security analysis

A96/100
  • mediumInstalls packages at runtime which could introduce malicious dependencies

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

Scanned September 9, 2026

npx -y skills add VectorSpaceLab/AREX-Skill --skill scikit-bio --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Scikit Bio?

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

Security grade badge for Scikit Bio
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-scikit-bio/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-scikit-bio)

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: scikit-bio
description: "Use scikit-bio for bioinformatics sequences, alignments,
  phylogenetic trees, diversity metrics, biological tables, IO, metadata,
  distance statistics, ordination, compositional analysis, and embeddings."
disable-model-invocation: true
metadata:
  disco-role: operating
license: BSD 3-Clause
---

# scikit-bio

Use this repo skill when a task involves scikit-bio Python APIs for biological sequence data, phylogenetic trees, community ecology diversity, BIOM-style tables, bioinformatics file formats, sample metadata, distance-matrix statistics, ordination, compositional data analysis, or protein/sequence embeddings.

## Install and Import Check

scikit-bio is a Python package with public APIs rather than a command-line application. Prefer conda when compiled scientific dependencies are difficult to resolve:

```bash
conda install -c conda-forge scikit-bio
# or
python -m pip install scikit-bio
```

Minimal import check:

```bash
python - <<'PY'
import skbio
from skbio import DNA, TreeNode, DistanceMatrix
print(skbio.__version__, DNA("ACGT").gc_content(), TreeNode.read(["(a,b);"]).count(tips=True))
PY
```

Run `scripts/check_skbio_environment.py` when diagnosing installation, imports, or expected public API availability.

## Route by Task

- `sub-skills/io-metadata/SKILL.md` — read/write FASTA, FASTQ, Newick, BIOM, distance matrices, ordination, sample metadata, GFF3, GenBank/EMBL, BLAST tables, taxonomy dumps, and diagnose IO registry routes or metadata validation.
- `sub-skills/sequences-alignment/SKILL.md` — create and validate `Sequence`, `DNA`, `RNA`, `Protein`, `GeneticCode`, `SubstitutionMatrix`, `TabularMSA`, pairwise alignment, alignment scoring, and sequence-distance workflows.
- `sub-skills/trees-phylogeny/SKILL.md` — parse, navigate, write, build, compare, and repair `TreeNode` phylogenies, Newick trees, NJ/UPGMA/GME/BME construction, NNI, consensus, and tree constraints for diversity metrics.
- `sub-skills/diversity-tables/SKILL.md` — compute alpha/beta diversity, Faith PD, UniFrac, block beta diversity, metric discovery, table-like count inputs, BIOM-backed `Table`, and table augmentation.
- `sub-skills/statistics-ordination/SKILL.md` — use `DistanceMatrix`, PERMANOVA, ANOSIM, PERMDISP, Mantel, BioEnv, PCoA/CA/CCA/RDA, compositional transforms, ANCOM/ANCOM-BC, and embedding conversions.

## Common Workflows

- **Parse data then analyze**: start with `io-metadata`, then route parsed sequence/tree/table/distance objects to the owning sub-skill.
- **Sequence or alignment task**: start with `sequences-alignment`; use `io-metadata` only for file routes and `statistics-ordination` for downstream distance-matrix statistics.
- **Phylogenetic diversity task**: use `trees-phylogeny` to validate rooted trees, branch lengths, duplicate tips, and taxa order, then use `diversity-tables` for Faith PD or UniFrac.
- **Community ecology task**: use `diversity-tables` to create `Series` or `DistanceMatrix` outputs, then use `statistics-ordination` for PERMANOVA, ordination, or compositional follow-up.
- **Metadata-heavy task**: use `io-metadata` to load/filter/merge `SampleMetadata`, then pass aligned IDs to `statistics-ordination` or `diversity-tables`.

## Package Facts and Guardrails

- Requires Python 3.10 or newer and compiled scientific dependencies such as NumPy, pandas, SciPy, h5py, BIOM format, statsmodels, patsy, requests, decorator, natsort, and array-api-compat.
- Public top-level imports include `Sequence`, `DNA`, `RNA`, `Protein`, `GeneticCode`, `SubstitutionMatrix`, `DistanceMatrix`, `TabularMSA`, `TreeNode`, `nj`, `read`, `write`, `OrdinationResults`, `Table`, `SampleMetadata`, `get_config`, and `set_config`.
- Most workflows are pure Python API calls. Do not invent a scikit-bio CLI; use import/API smoke checks and focused pytest candidates when working in a repository checkout.
- Preserve ID alignment carefully. Many failures come from mismatched sample IDs, feature/taxon IDs, distance-matrix IDs, tree tip names, or metadata indexes.
- Keep validation enabled unless inputs have already been checked. `validate=False` may improve performance but can produce confusing downstream errors or invalid results.

## Cross-Cutting References

- `references/troubleshooting.md` for install/import issues, dependency conflicts, ID alignment, validation, optional backend, and no-CLI expectations.
- `references/repo-provenance.md` before deciding whether this generated skill matches a current scikit-bio checkout or should be refreshed.
- `references/repo-routing-metadata.json` contains structured `repo-skills-router` metadata used during managed import.

Files in this skill

  • SKILL.md4.6 KB
  • references/repo-provenance.md2.6 KB
  • references/repo-routing-metadata.json339 B
  • references/troubleshooting.md4.1 KB
  • scripts/check_skbio_environment.py2.7 KB
  • sub-skills/diversity-tables/SKILL.md2.5 KB
  • sub-skills/diversity-tables/references/api-reference.md6.5 KB
  • sub-skills/diversity-tables/references/troubleshooting.md6.7 KB
  • sub-skills/diversity-tables/references/workflows.md6.6 KB
  • sub-skills/diversity-tables/scripts/diversity_table_smoke.py3.6 KB
  • sub-skills/io-metadata/SKILL.md3.5 KB
  • sub-skills/io-metadata/references/format-reference.md8.3 KB
  • sub-skills/io-metadata/references/metadata-reference.md8.2 KB
  • sub-skills/io-metadata/references/troubleshooting.md8 KB
  • sub-skills/io-metadata/scripts/io_metadata_smoke.py4.8 KB
  • sub-skills/sequences-alignment/SKILL.md2.9 KB
  • sub-skills/sequences-alignment/references/api-reference.md12.9 KB
  • sub-skills/sequences-alignment/references/troubleshooting.md8.3 KB
  • sub-skills/sequences-alignment/references/workflows.md8.1 KB
  • sub-skills/sequences-alignment/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.