Skip to content
Back to skills

Statistics Ordination

ASecurity

"Run scikit-bio distance-matrix statistics, ordination,

  • 247 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 9, 2026
datapythonbashapibackend

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 statistics-ordination --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Statistics Ordination?

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

Security grade badge for Statistics Ordination
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-statistics-ordination/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-statistics-ordination)

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: statistics-ordination
description: "Run scikit-bio distance-matrix statistics, ordination,
  compositional analyses, and biological embedding summaries."
disable-model-invocation: true
metadata:
  disco-role: operating
license: BSD 3-Clause
---

# statistics-ordination

Use this sub-skill when a task asks to test group differences from a scikit-bio `DistanceMatrix`, compare distance matrices, run ordination, transform or test compositional data, or convert biological embedding vectors into distances, ordination, or tabular summaries.

## Read First

- `references/api-reference.md` for public signatures, return objects, accepted input shapes, and result fields.
- `references/workflows.md` for copy-ready patterns covering distance tests, metadata alignment, ordination, composition transforms, ANCOM-style tests, and embeddings.
- `references/troubleshooting.md` for matrix validity, ID mismatches, permutation reproducibility, PCoA warnings, compositional zeros, differential-abundance shape issues, and backend limits.
- `scripts/stats_ordination_smoke.py` for a deterministic smoke check covering `DistanceMatrix`, `permanova`, `pcoa`, composition zero handling, and `ProteinVector` embedding utilities.

## Route Here For

- Constructing or validating `PairwiseMatrix`, `SymmetricMatrix`, `DistanceMatrix`, and random distance matrices with `randdm`.
- Running `permanova`, `anosim`, `permdisp`, `mantel`, `pwmantel`, or `bioenv` on existing distance matrices and aligned metadata.
- Running `pcoa`, `pcoa_biplot`, `ca`, `cca`, `rda`, `mmvec`, or inspecting `OrdinationResults` fields.
- Applying `closure`, `multi_replace`, `clr`, `ilr`, `alr`, `rclr`, ANCOM, ANCOM-BC, structural-zero checks, or Dirichlet-multinomial differential-abundance tests.
- Creating `SequenceEmbedding`, `ProteinVector`, or related embedding vectors and converting them with `embed_vec_to_distances`, `embed_vec_to_ordination`, `embed_vec_to_dataframe`, or `embed_vec_to_numpy`.

## Boundaries

- For count-matrix generation, alpha/beta diversity computation, BIOM-style table preparation, and sample-by-feature orientation repairs, use `../diversity-tables/SKILL.md` first and return here once distances, compositions, or table-like inputs exist.
- For metadata file loading, ID normalization from external formats, or I/O registry details, use `../io-metadata/SKILL.md` before running statistics.
- For tree construction, rooting, tree-based basis construction, or phylogenetic interpretation, use `../trees-phylogeny/SKILL.md`.
- Keep this sub-skill focused on statistical analyses, ordination outputs, compositional transforms/tests, embedding summaries, and their diagnostics.

## Public Smoke Check

Run the bundled script from any working directory after installing scikit-bio:

```bash
python scripts/stats_ordination_smoke.py
python scripts/stats_ordination_smoke.py --permutations 9 --seed 7
python scripts/stats_ordination_smoke.py --help
```

The script imports public scikit-bio APIs only, constructs a small `DistanceMatrix`, runs PERMANOVA and PCoA, applies zero replacement before CLR, creates simple `ProteinVector` objects, and prints compact JSON.

Files in this skill

  • SKILL.md3.1 KB
  • references/api-reference.md10.1 KB
  • references/troubleshooting.md11.4 KB
  • references/workflows.md9.7 KB
  • scripts/stats_ordination_smoke.py5.9 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.