Clarity Clinical Skill
Access clinical variant annotations from ClinVar and population frequency data from gnomAD through Clarity Protocol's integrated database.
Quick Start
List all clinical variants:
CODEBLOCK0
Filter by gene symbol:
CODEBLOCK1
Get details for a specific variant:
CODEBLOCK2
Get variant details in readable format:
CODEBLOCK3
Clinical Variant Fields
Each clinical variant includes:
- -
gene_symbol: HGNC gene symbol - INLINECODE1 : Full HGVS notation (transcript-based)
- INLINECODE2 : Clinical significance classification (e.g., "Pathogenic", "Benign")
- INLINECODE3 : Review status stars (e.g., "criteria provided, multiple submitters")
- INLINECODE4 : Date of last ClinVar evaluation
- INLINECODE5 : Allele frequency in gnomAD (population prevalence)
- INLINECODE6 : Allele count in gnomAD
- INLINECODE7 : Total allele number in gnomAD
- INLINECODE8 : When this data was retrieved from ClinVar/gnomAD
ClinVar Significance Values
- - Pathogenic: Strong evidence for disease causation
- Likely pathogenic: Moderate evidence for disease causation
- Benign: Strong evidence of no disease causation
- Likely benign: Moderate evidence of no disease causation
- Uncertain significance: Insufficient evidence
- Conflicting interpretations: Disagreement among submitters
gnomAD Frequency Interpretation
- - af < 0.0001: Very rare (< 0.01%)
- af < 0.001: Rare (< 0.1%)
- af < 0.01: Uncommon (< 1%)
- af >= 0.01: Common (>= 1%)
Rate Limits
- - Anonymous (no API key): 10 requests/minute
- With API key: 100 requests/minute
To use an API key, set the CLARITY_API_KEY environment variable:
CODEBLOCK4
Get your API key at https://clarityprotocol.io
Error Handling
404 Not Found: The specified gene/variant combination does not exist in the clinical database.
429 Rate Limit: You've exceeded the rate limit. The script will display how long to wait.
500 Server Error: The API server encountered an error. Try again later.
Timeout: The request took longer than 30 seconds.
Pagination
Clinical variant lists are paginated. The API returns a next_cursor field if more results are available.
Use Cases
- - Check if a variant is pathogenic in ClinVar
- Get population frequency data for a mutation
- Compare clinical significance across variants in a gene
- Assess variant review status quality
- Filter common vs. rare variants using gnomAD
Clarity临床技能
通过Clarity协议集成数据库访问ClinVar的临床变异注释和gnomAD的人群频率数据。
快速开始
列出所有临床变异:
bash
python scripts/query_clinical.py
按基因符号筛选:
bash
python scripts/query_clinical.py --gene-symbol MAPT
获取特定变异的详细信息:
bash
python scripts/queryclinical.py --gene MAPT --variant NM005910.6:c.926C>T
以可读格式获取变异详情:
bash
python scripts/queryclinical.py --gene MAPT --variant NM005910.6:c.926C>T --format summary
临床变异字段
每个临床变异包含:
- - genesymbol:HGNC基因符号
- variantnotation:完整HGVS命名法(基于转录本)
- clinvarsignificance:临床意义分类(例如致病性、良性)
- clinvarreviewstatus:审核状态星级(例如已提供标准,多个提交者)
- clinvarlastevaluated:最近ClinVar评估日期
- gnomadaf:gnomAD中的等位基因频率(人群患病率)
- gnomadac:gnomAD中的等位基因计数
- gnomadan:gnomAD中的总等位基因数
- fetched_at:从ClinVar/gnomAD检索此数据的时间
ClinVar意义值
- - 致病性:强烈证据表明导致疾病
- 可能致病性:中等证据表明导致疾病
- 良性:强烈证据表明不导致疾病
- 可能良性:中等证据表明不导致疾病
- 意义不明确:证据不足
- 解释冲突:提交者之间存在分歧
gnomAD频率解读
- - af < 0.0001:非常罕见(< 0.01%)
- af < 0.001:罕见(< 0.1%)
- af < 0.01:不常见(< 1%)
- af >= 0.01:常见(>= 1%)
速率限制
- - 匿名(无API密钥):每分钟10次请求
- 使用API密钥:每分钟100次请求
要使用API密钥,请设置CLARITYAPIKEY环境变量:
bash
export CLARITYAPIKEY=yourkeyhere
python scripts/query_clinical.py --gene-symbol MAPT
在https://clarityprotocol.io获取您的API密钥
错误处理
404未找到:临床数据库中不存在指定的基因/变异组合。
429速率限制:您已超过速率限制。脚本将显示需要等待的时间。
500服务器错误:API服务器遇到错误。请稍后重试。
超时:请求耗时超过30秒。
分页
临床变异列表采用分页方式。如果还有更多结果,API会返回next_cursor字段。
使用场景
- - 检查变异在ClinVar中是否为致病性
- 获取突变的群体频率数据
- 比较基因内各变异的临床意义
- 评估变异审核状态质量
- 使用gnomAD筛选常见与罕见变异