pathogen-variant-surveillance
它能做什么
这个工具会检索关于病原体变种(如病毒)的公开数据,帮助你了解哪些谱系正在流行、它们如何命名以及有哪些特征。它有助于监测病原体的演化。
适用场景
- ✓想了解某个地区最常见的病毒变种时。
- ✓想核对某个病毒谱系的官方名称时。
- ✓想了解不同变种比例随时间变化的情况时。
技能链接
https://github.com/K-Dense-AI/scientific-agent-skills/blob/main/skills/pathogen-variant-surveillance/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“美国过去12周内最常见的SARS-CoV-2谱系有哪些?”
每周 5 个新技能,1 分钟读完。
工作原理
这个工具会访问一个名为 LAPIS 的公开数据库,并使用脚本分析数据。它会根据你的请求(如国家和时间段)筛选信息,展示各变种所占的比例。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Pathogen Variant Surveillance
When to use
Use current data when a question depends on which lineages appear in submitted sequences, what a lineage name currently means, or how the submitted sequence distribution changed. Never answer a current circulation question from remembered lineage names or old examples.
This skill supports descriptive surveillance research. Counts describe sequences submitted to one database under stated filters; they are not case counts, infection prevalence, clinical interpretations, outbreak recommendations, or evidence of enhanced pathogen function.
Verified scope
Reviewed on 2026-10-01 against official documentation, live schemas for all 15 registered instances, and small public queries. SARS-CoV-2 served LAPIS 0.8.7/SILO 0.14.3; the other registered deployments served LAPIS 0.8.0/SILO 0.11.0. Do not assume identical feature support. Bundled standard-library scripts have synthetic regression tests and bounded live smoke checks. Nextclade, GenoFLU, authenticated APIs, and sequence-level assay validation are not executed here.
| Instance | Host | Common lineage field |
|---|---|---|
sars-cov-2 |
lapis.cov-spectrum.org/open/v2 | pangoLineage (indexed) |
h5n1 |
lapis.genspectrum.org/h5n1 | clade (unindexed) |
h3n2, h1n1pdm |
lapis.genspectrum.org/<name> | cladeHA / cladeNA (unindexed) |
influenza-a |
lapis.genspectrum.org/influenza-a | subtypeHA / subtypeNA |
rsv-a, rsv-b, mpox, measles, dengue, west-nile, hmpv, ebola-zaire, ebola-sudan, cchf |
lapis.pathoplexus.org/<name> | inspect the schema |
The scripts read /sample/databaseConfig. A lineage-index value is currently an identifier
string, not necessarily a boolean. Only indexed fields support descendant NAME* queries.
Use --lineage-field deliberately when several naming systems coexist. Unknown unindexed
values can return zero; that does not verify the name or prove biological absence.
When available, defaults select versionStatus=LATEST_VERSION, isRevocation=false, and
dataUseTerms=OPEN. These are printed with the result and can be overridden explicitly with
--where. Open access to an endpoint is not a blanket data-use license; preserve source
attribution and the applicable Pathoplexus terms.
Workflow
cd skills/pathogen-variant-surveillance/scripts
- Inspect the instance and choose collection date, lineage system, geography, host and data
inclusion rules. Country fields differ: SARS-CoV-2/GenSpectrum use
country; Pathoplexus usesgeoLocCountry. Inspect actual categories before choosing a value. - Review reporting delays before choosing the prevalence window.
- Discover common labels in that window, then verify names in the relevant nomenclature.
- Report counts, denominators, intervals, snapshot version, dates and exclusions together.
Describe observed reporting delay
python3 reporting_lag.py --where country=USA --cohorts 6 --skip-months 3
This groups by both collection and submission/release dates, calculates each date difference,
and reports mean_observed, min_observed, max_observed and contributing cohort count.
It excludes missing dates, unequal collection-date range bounds, negative lags and submissions
after --until. Long offsets use only cohorts old enough to contribute that follow-up.
The result is a CDF conditional on records visible now. It cannot establish eventual completeness,
a trustworthy date, or when a record first appeared in LAPIS. --until sets an analysis anchor;
it does not retrieve an earlier database snapshot. Cohorts receive equal weight, not weight
proportional to sequence count. The contributing cohort set can vary by offset.
Discover and describe weekly proportions
python3 lineage_prevalence.py --top 5 --where country=USA --weeks 12
Discovery ranks exact nonempty labels; unassigned remains a real category. The denominator
includes all selected records, including unassigned/null lineage calls. Overlapping descendant
queries must not be summed. Explicit lineage examples below illustrate syntax, not current dominance:
python3 lineage_prevalence.py "XFG*" --where country=USA --weeks 16 --growth --lag-days 90
Here 90 is an illustrative user-selected exclusion horizon, not a universal measured lag.
…
常见问题
这个工具能告诉我有多少人生病吗?
不能。这个工具分析的是病原体的基因序列,而不是病例数量或疾病严重程度。数据反映的是变种的存在情况,而不是人的健康状况。
变种的名称会变化吗?
会的。病原体谱系的名称可能会被更新或修改。这个工具可以帮你核对当前的名称,并查看是否发生过变更。
我能用它预测未来的大流行吗?
不能。这个工具只能基于现有数据,描述当前或近期发生的情况。它不能预测未来,也不提供临床或公共卫生建议。
详情
作者的原始描述
Queries public GenSpectrum LAPIS data for pathogen genomic surveillance, current lineage nomenclature, weekly sequence proportions, reporting delays, and descriptive mutation frequencies. Use for variant surveillance, Pango lineage validation, dominant submitted lineages, Nextclade assignment provenance, SARS-CoV-2, influenza/H5N1 clades, RSV, mpox, measles, dengue, or LAPIS queries. Distinguishes
热度
- GitHub 星标
- 51k
- 排名
- #3522
- 许可证
- MIT
- 更新时间
- 2026/10/15
评论
- …