跳到正文
Skillpedia
智能体51k · #3593

waypoint-bio

它能做什么

这个工具可以帮你使用名为 Waypoint 的微生物组 AI 模型。它能将微生物组样本数据转换为 AI 能够理解的格式,方便你用它训练模型或进行预测。

适用场景

  • ✓当你想把微生物组谱转换为向量以便分析时。
  • ✓训练一个基于微生物组组成进行预测的 AI 模型时。
  • ✓在标准数据集上测试你自己的 AI 模型时。

技能链接

https://github.com/K-Dense-AI/scientific-agent-skills/blob/main/skills/waypoint-bio/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/K-Dense-AI/scientific-agent-skills/blob/main/skills/waypoint-bio/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“把我的微生物组数据转换一下,让 AI 能够使用。”

每周 5 个新技能,1 分钟读完。

工作原理

该工具会将你的微生物组数据整理成特定格式,其中每个微生物都是一个“token”。它利用预训练语言模型来理解这些 token,并完成诸如为样本生成数值表示或训练预测模型等任务。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

Waypoint: Outpost Bio's Open Microbiome Foundation Models

Overview

Outpost Bio open-sourced three artefacts under Apache 2.0, described in Treloar et al., bioRxiv 2026.05.02.722381:

Artefact What it is Hugging Face
Waypoint GPT-2-style causal LMs over taxonomic tokens, 6M–170M params outpost-bio/Waypoint-6m, -45m, -170m
Atlas 539,308 microbiome samples scraped from MGnify (485,377 pretrain / 53,931 benchmark) outpost-bio/Atlas
Compass Eight downstream tasks over four studies outpost-bio/Compass

The unifying idea: a microbiome sample is a sentence. Each taxon is one token, tokens are ordered by descending abundance z-score, and the model is trained with next-token prediction. A pretrained checkpoint then supplies sample-level embeddings or a fine-tuning backbone for prediction tasks.

All of it is driven by one CLI, waypoint, with five subcommands: prepare-dataset, embed, finetune, benchmark, pretrain.

When to use

  • Embedding 16S/shotgun taxonomic profiles into fixed-size vectors for clustering, visualisation, or a downstream classifier.
  • Fine-tuning a Waypoint checkpoint to predict a phenotype, treatment, or continuous readout from community composition.
  • Scoring your own microbiome model on Compass with an explicitly recorded protocol.
  • Pretraining a taxonomic language model on Atlas or on your own corpus.
  • Converting profiler output (MetaPhlAn, Kraken2/Bracken, QIIME 2, MGnify TSVs) into the input format these tools expect.

For small labelled datasets, start with a random-forest baseline and grouped validation. The paper's sample-size crossover is an empirical result from its experiments, not a universal cutoff for using embeddings or a guarantee of performance on a new study.

Setup

pip install "waypoint-bio==1.0.2" "transformers==4.57.6" "peft==0.18.1" "huggingface-hub<1"

The 2026-10-01 review checked the published wheel, GitHub main f45eee6d07a480bfc90f84ab8082bbc969dec15d (1.0.4), and current Hub metadata. Small native CPU/tokenizer tests used Python 3.12, Torch 2.14.1, Transformers 4.57.6, PEFT 0.18.1 and pandas 3.0.6; no pretrained weights or gated rows were downloaded. The package leaves dependencies unbounded: Transformers 5 removes its pretraining logging_dir argument. Keep a separate compatible environment.

Upstream limitations: local TaxonomicTokenizer.save_pretrained() raises NotImplementedError in both reviewed versions, blocking pretrain before training and finetune export when using that local tokenizer. Released 1.0.2 does not merge LoRA adapters or write training logs; GitHub 1.0.4 does. See references/upstream-review.md before training. Training examples below are source-checked templates, not completed scientific runs.

Atlas, Compass, and every Waypoint checkpoint are gated. Access is auto-approved, but you must click through once per repo and then authenticate:

  1. Request access on each repo page you need: Waypoint-6m, Waypoint-45m, Waypoint-170m, Atlas, Compass.

  2. Authenticate locally:

    hf auth login          # or: export HF_TOKEN=hf_...
    

For 401/403 errors, check token validity, read scope, and approval for the specific repo. The tokenizer loader executes repository code with trust_remote_code=True. Review that code and pin an immutable Hub commit. The upstream CLI has no --revision; download a reviewed snapshot and pass its local path so model, tokenizer and ordering statistics share one revision (see references/python-api.md).

The waypoint data format

Everything except prepare-dataset consumes waypoint format: a .parquet / .csv / .tsv whose rows are samples, with two aligned list-columns plus any label columns you need.

Column Type Notes
Taxa list[str] Full lineage strings, ;-separated: k__Bacteria; p__Firmicutes; ...; g__Lactobacillus
Relative Abundances list[float] Same length as Taxa, same order
(any) scalar Targets, covariates, or a Split column

…

常见问题

这里的“token”是什么意思?

在这里,“token”指的是微生物样本中发现的各类生物(分类单元,即 taxa)。工具会对它们进行整理,并将其视为句子中的词语,以便 AI 进行处理。

使用这个工具需要编程基础吗?

该工具设计为通过简单的命令使用,但初次设置和理解数据格式可能需要一些时间。最好有指南或懂行的人在前几步为你提供协助。

“开放基础模型”(open foundation models)是什么意思?

意思是这些 AI 模型由 Outpost Bio 开发,并以宽松的 Apache 2.0 许可证公开发布,任何人都可以使用、修改和分发。

详情

作者的原始描述

Supports work with Outpost Bio's open microbiome foundation models - the Waypoint checkpoints (Waypoint-6m, Waypoint-45m, Waypoint-170m), the Atlas pretraining corpus, the Compass eight-task benchmark, or the `waypoint` CLI from the `waypoint-bio` package. Covers embedding microbiome samples, fine-tuning on taxonomic abundance data, benchmarking a checkpoint on Compass, pretraining a GPT-2 model o

repo: K-Dense-AI/scientific-agent-skills

热度

GitHub 星标
51k
排名
#3593
许可证
MIT
更新时间
2026/10/15

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能