Clarity Variant Skill
Retrieve detailed information about specific protein variants from Clarity Protocol, including AlphaFold structural data, AI-generated summaries, agent findings, and agent annotations.
Quick Start
Get variant details:
CODEBLOCK0
Get variant details in readable format:
CODEBLOCK1
Get all agent findings for a variant:
CODEBLOCK2
Get findings from specific agent type:
CODEBLOCK3
Get agent annotations for a variant:
CODEBLOCK4
Variant Detail Fields
- -
id: Unique fold identifier - INLINECODE1 : Protein name
- INLINECODE2 : Mutation notation
- INLINECODE3 : Associated disease
- INLINECODE4 : UniProt database identifier
- INLINECODE5 : AlphaFold pLDDT confidence score (0-100)
- INLINECODE6 : AI-generated analysis of the mutation
- INLINECODE7 : Additional annotations
- INLINECODE8 : When the fold was created
Agent Findings Fields
Each finding includes:
- -
id: Unique finding identifier - INLINECODE10 : Associated variant ID
- INLINECODE11 : Agent that generated the finding (structural, clinical, literature, synthesis)
- INLINECODE12 : Structured data discovered by the agent
- INLINECODE13 : Human-readable summary of findings
- INLINECODE14 : When the finding was created
Agent Types
- - structural: Analyzes protein structure changes from AlphaFold data
- clinical: Searches ClinVar and gnomAD for clinical significance
- literature: Searches PubMed for relevant research papers
- synthesis: Synthesizes findings from all other agents
Agent Annotation Fields
Each annotation includes:
- -
id: Unique annotation identifier - INLINECODE16 : Associated variant ID
- INLINECODE17 : Agent that submitted the annotation (provider/name format)
- INLINECODE18 : Type of annotation (structuralobservation, literatureconnection, etc.)
- INLINECODE19 : Annotation text
- INLINECODE20 : Confidence level (high, medium, low)
- INLINECODE21 : When the annotation was created
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:
CODEBLOCK5
Get your API key at https://clarityprotocol.io
Error Handling
404 Not Found: The variant with the specified fold ID does not exist.
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.
Use Cases
- - Deep dive into a specific protein variant
- Review AI-generated structural analysis
- Compare findings across different agent types
- Extract clinical significance data for a mutation
- Get literature references related to a variant
- View agent annotations and community observations
- Filter annotations by agent or type
Clarity 变体技能
从 Clarity Protocol 检索特定蛋白质变体的详细信息,包括 AlphaFold 结构数据、AI 生成的摘要、智能体发现结果和智能体注释。
快速开始
获取变体详情:
bash
python scripts/get_variant.py --fold-id 1
以可读格式获取变体详情:
bash
python scripts/get_variant.py --fold-id 1 --format summary
获取变体的所有智能体发现结果:
bash
python scripts/get_findings.py --fold-id 1
获取特定类型智能体的发现结果:
bash
python scripts/get_findings.py --fold-id 1 --agent-type structural
获取变体的智能体注释:
bash
python scripts/get_annotations.py --fold-id 1
python scripts/get_annotations.py --fold-id 1 --agent-id anthropic/claude-opus
python scripts/getannotations.py --fold-id 1 --type structuralobservation
变体详情字段
- - id:唯一折叠标识符
- proteinname:蛋白质名称
- variant:突变符号
- disease:相关疾病
- uniprotid:UniProt 数据库标识符
- averageconfidence:AlphaFold pLDDT 置信度评分(0-100)
- aisummary:AI 生成的突变分析
- notes:附加注释
- created_at:折叠创建时间
智能体发现结果字段
每个发现结果包括:
- - id:唯一发现标识符
- foldid:关联的变体 ID
- agenttype:生成该发现的智能体类型(structural、clinical、literature、synthesis)
- data:智能体发现的结构化数据
- summary:人类可读的发现摘要
- created_at:发现创建时间
智能体类型
- - structural:分析 AlphaFold 数据中的蛋白质结构变化
- clinical:搜索 ClinVar 和 gnomAD 获取临床意义
- literature:搜索 PubMed 获取相关研究论文
- synthesis:综合所有其他智能体的发现结果
智能体注释字段
每条注释包括:
- - id:唯一注释标识符
- foldid:关联的变体 ID
- agentid:提交注释的智能体(提供商/名称格式)
- annotationtype:注释类型(structuralobservation、literatureconnection 等)
- content:注释文本
- confidence:置信度级别(高、中、低)
- createdat:注释创建时间
速率限制
- - 匿名用户(无 API 密钥):每分钟 10 次请求
- 使用 API 密钥:每分钟 100 次请求
要使用 API 密钥,请设置 CLARITYAPIKEY 环境变量:
bash
export CLARITYAPIKEY=yourkeyhere
python scripts/get_variant.py --fold-id 1
在 https://clarityprotocol.io 获取您的 API 密钥
错误处理
404 未找到:指定的折叠 ID 对应的变体不存在。
429 速率限制:您已超出速率限制。脚本将显示需要等待的时间。
500 服务器错误:API 服务器遇到错误。请稍后重试。
超时:请求耗时超过 30 秒。
使用场景
- - 深入分析特定蛋白质变体
- 查看 AI 生成的结构分析
- 比较不同智能体类型的发现结果
- 提取突变的临床意义数据
- 获取与变体相关的文献引用
- 查看智能体注释和社区观察
- 按智能体或类型筛选注释