Install any skill in seconds. Free to start, no credit card required.
Get Started Free →VCF and variant analysis — parsing, annotation, classification (synonymous, missense, frameshift, stop_gained), VAF filtering, coding vs non-coding categorization, multi-condition variant comparison.
3/3 safety checks passed
73%64%of test cases passed -9 pts
Passed 14 of 22 test cases with the skill, and 16 of 22 without it.
2 fixed12 passed either way4 still failing4 broke
This benchmark measured an earlier version of the skill.
Adds every file the skill has, pinned so you can update it. No account needed.
pip install "decimalai>=0.15"
decimalai skills add mims-harvard-tooluniverse-variant-analysis
claude --plugin-dir "$(git rev-parse --show-toplevel 2>/dev/null || pwd)/.agents"The same install from Python, for a notebook or a setup script.
pip install "decimalai>=0.15"from decimalai import skillpkg
# Writes .agents/skills and .decimal/skills.toml. Safe to run twice.
result = skillpkg.add("mims-harvard-tooluniverse-variant-analysis")
if result.exit_code:
raise SystemExit(result.problems)
print("Added. Start Claude Code with the command below.")claude --plugin-dir "$(git rev-parse --show-toplevel 2>/dev/null || pwd)/.agents"Type these in a Claude Code session. No account or API key. It writes the skill and any files it bundles, and asks first when its safety rating isn't Passed.
/plugin marketplace add decimal-labs/decimalai-claude-plugins
/plugin install decimalai@decimalai/decimalai:install mims-harvard-tooluniverse-variant-analysisThe plugin needs python3 and curl on your machine.
No Python or account. Claude Code picks it up in its next session.
curl -fsSL --create-dirs -o .claude/skills/mims-harvard-tooluniverse-variant-analysis/SKILL.md https://app.decimal.ai/s/mims-harvard-tooluniverse-variant-analysis/SKILL.md.claude/skills/mims-harvard-tooluniverse-variant-analysis/SKILL.mdThis gets SKILL.md only. The skill's 11 other files are not included.
agent_config() hands your agent the skill. With no DecimalAI key it reads your project's files and sends nothing. Needs SDK 0.27 or newer.
pip install "decimalai[claude-agent-sdk]"
decimalai skills add mims-harvard-tooluniverse-variant-analysisimport asyncio
from claude_agent_sdk import ClaudeAgentOptions
from decimalai.claude_agent_sdk import agent_config
# With no DECIMAL_API_KEY this reads the skills your project lists, from disk.
support = agent_config("support", fallback="You are a helpful agent.")
async def main():
question = "Hello!"
async with support.run(question) as run: # one user message, one run
async for message in run.query(options=ClaudeAgentOptions(max_turns=6)):
print(message)
# In a notebook or async code: await main()
asyncio.run(main())Prefer its own loader? ClaudeAgentOptions(plugins=[skills_plugin()], skills="all") reads the same folder. Use one or the other: a skill delivered both ways reaches the prompt twice.
The same install from Python, for a notebook or a setup script. agent_config() hands your agent the skill. With no DecimalAI key it reads your project's files and sends nothing. Needs SDK 0.27 or newer.
pip install "decimalai[claude-agent-sdk]"from decimalai import skillpkg
# Writes .agents/skills and .decimal/skills.toml. Safe to run twice.
result = skillpkg.add("mims-harvard-tooluniverse-variant-analysis")
if result.exit_code:
raise SystemExit(result.problems)
import asyncio
from claude_agent_sdk import ClaudeAgentOptions
from decimalai.claude_agent_sdk import agent_config
# With no DECIMAL_API_KEY this reads the skills your project lists, from disk.
support = agent_config("support", fallback="You are a helpful agent.")
async def main():
question = "Hello!"
async with support.run(question) as run: # one user message, one run
async for message in run.query(options=ClaudeAgentOptions(max_turns=6)):
print(message)
# In a notebook or async code: await main()
asyncio.run(main())Prefer its own loader? ClaudeAgentOptions(plugins=[skills_plugin()], skills="all") reads the same folder. Use one or the other: a skill delivered both ways reaches the prompt twice.
No DecimalAI package. The whole skill goes in every prompt, and nothing pins or updates it.
.agents/skills/mims-harvard-tooluniverse-variant-analysis/SKILL.mdimport asyncio
from pathlib import Path
from claude_agent_sdk import ClaudeAgentOptions, query
skill = Path(".agents/skills/mims-harvard-tooluniverse-variant-analysis/SKILL.md").read_text()
options = ClaudeAgentOptions(system_prompt=f"You are a helpful agent.\n\n{skill}", max_turns=6)
async def main():
async for message in query(prompt="Hello!", options=options):
print(message)
# In a notebook or async code: await main()
asyncio.run(main())This gets SKILL.md only. The skill's 11 other files are not included.
agent_config() hands your agent the skill. With no DecimalAI key it reads your project's files and sends nothing. Needs SDK 0.27 or newer.
pip install "decimalai[openai-agents]"
decimalai skills add mims-harvard-tooluniverse-variant-analysisfrom agents import Agent, Runner
from decimalai.openai_agents import agent_config
# With no DECIMAL_API_KEY this reads the skills your project lists, from disk.
support = agent_config("support", fallback="You are a helpful agent.")
agent = Agent(
name=support.name,
instructions=support.instructions, # your prompt, then the skill list
tools=[*support.tools], # your tools, then load_skill
)
# In a notebook or async code: result = await Runner.run(agent, "Hello!")
result = Runner.run_sync(agent, "Hello!")Using SandboxAgent? capabilities=[Shell(), decimalai.openai_agents.sandbox_skills()] points its own loader at the same folder.
The same install from Python, for a notebook or a setup script. agent_config() hands your agent the skill. With no DecimalAI key it reads your project's files and sends nothing. Needs SDK 0.27 or newer.
pip install "decimalai[openai-agents]"from decimalai import skillpkg
# Writes .agents/skills and .decimal/skills.toml. Safe to run twice.
result = skillpkg.add("mims-harvard-tooluniverse-variant-analysis")
if result.exit_code:
raise SystemExit(result.problems)
from agents import Agent, Runner
from decimalai.openai_agents import agent_config
# With no DECIMAL_API_KEY this reads the skills your project lists, from disk.
support = agent_config("support", fallback="You are a helpful agent.")
agent = Agent(
name=support.name,
instructions=support.instructions, # your prompt, then the skill list
tools=[*support.tools], # your tools, then load_skill
)
# In a notebook or async code: result = await Runner.run(agent, "Hello!")
result = Runner.run_sync(agent, "Hello!")Using SandboxAgent? capabilities=[Shell(), decimalai.openai_agents.sandbox_skills()] points its own loader at the same folder.
No DecimalAI package. The whole skill goes in every prompt, and nothing pins or updates it.
.agents/skills/mims-harvard-tooluniverse-variant-analysis/SKILL.mdfrom pathlib import Path
from agents import Agent, Runner
skill = Path(".agents/skills/mims-harvard-tooluniverse-variant-analysis/SKILL.md").read_text()
agent = Agent(name="support", instructions=f"You are a helpful agent.\n\n{skill}")
# In a notebook or async code: result = await Runner.run(agent, "Hello!")
result = Runner.run_sync(agent, "Hello!")This gets SKILL.md only. The skill's 11 other files are not included.
agent_config() hands your agent the skill. With no DecimalAI key it reads your project's files and sends nothing. Needs SDK 0.27 or newer.
pip install "decimalai[openai]"
decimalai skills add mims-harvard-tooluniverse-variant-analysisimport json
from openai import OpenAI
from decimalai.openai import agent_config
client = OpenAI()
# With no DECIMAL_API_KEY this reads the skills your project lists, from disk.
support = agent_config("support", fallback="You are a helpful agent.")
def lookup_order(order_id: str) -> str:
return f"Order {order_id} shipped yesterday."
# Your tools, as Chat Completions takes them, and what answers each.
TOOLS = [{"type": "function", "function": {
"name": "lookup_order",
"description": "Look up the status of an order.",
"parameters": {"type": "object", "properties": {"order_id": {"type": "string"}},
"required": ["order_id"]},
}}]
FUNCTIONS = {"lookup_order": lookup_order}
question = "Where is order A1001?"
with support.run(question) as run: # one user message, one run
# run.system is your prompt, then the skill list.
messages = [{"role": "system", "content": run.system}, run.message]
while True:
reply = client.chat.completions.create(
model="gpt-5.4-mini",
messages=messages,
tools=[*TOOLS, *run.tools], # your tools, then load_skill
).choices[0].message
messages.append(reply)
if not reply.tool_calls:
break
for call in reply.tool_calls:
# load_skill is answered by the run; your own tools by FUNCTIONS.
function = FUNCTIONS.get(call.function.name)
messages.append(run.tool_result(call) or {
"role": "tool", "tool_call_id": call.id,
"content": function(**json.loads(call.function.arguments)) if function
else f"There is no tool named {call.function.name!r}.",
})
print(reply.content)
# The Responses API takes run.response_tools instead of run.tools.The same install from Python, for a notebook or a setup script. agent_config() hands your agent the skill. With no DecimalAI key it reads your project's files and sends nothing. Needs SDK 0.27 or newer.
pip install "decimalai[openai]"from decimalai import skillpkg
# Writes .agents/skills and .decimal/skills.toml. Safe to run twice.
result = skillpkg.add("mims-harvard-tooluniverse-variant-analysis")
if result.exit_code:
raise SystemExit(result.problems)
import json
from openai import OpenAI
from decimalai.openai import agent_config
client = OpenAI()
# With no DECIMAL_API_KEY this reads the skills your project lists, from disk.
support = agent_config("support", fallback="You are a helpful agent.")
def lookup_order(order_id: str) -> str:
return f"Order {order_id} shipped yesterday."
# Your tools, as Chat Completions takes them, and what answers each.
TOOLS = [{"type": "function", "function": {
"name": "lookup_order",
"description": "Look up the status of an order.",
"parameters": {"type": "object", "properties": {"order_id": {"type": "string"}},
"required": ["order_id"]},
}}]
FUNCTIONS = {"lookup_order": lookup_order}
question = "Where is order A1001?"
with support.run(question) as run: # one user message, one run
# run.system is your prompt, then the skill list.
messages = [{"role": "system", "content": run.system}, run.message]
while True:
reply = client.chat.completions.create(
model="gpt-5.4-mini",
messages=messages,
tools=[*TOOLS, *run.tools], # your tools, then load_skill
).choices[0].message
messages.append(reply)
if not reply.tool_calls:
break
for call in reply.tool_calls:
# load_skill is answered by the run; your own tools by FUNCTIONS.
function = FUNCTIONS.get(call.function.name)
messages.append(run.tool_result(call) or {
"role": "tool", "tool_call_id": call.id,
"content": function(**json.loads(call.function.arguments)) if function
else f"There is no tool named {call.function.name!r}.",
})
print(reply.content)
# The Responses API takes run.response_tools instead of run.tools.No DecimalAI package. The whole skill goes in every prompt, and nothing pins or updates it.
.agents/skills/mims-harvard-tooluniverse-variant-analysis/SKILL.mdfrom pathlib import Path
from openai import OpenAI
client = OpenAI()
skill = Path(".agents/skills/mims-harvard-tooluniverse-variant-analysis/SKILL.md").read_text()
reply = client.chat.completions.create(
model="gpt-5.4-mini",
messages=[
{"role": "system", "content": f"You are a helpful agent.\n\n{skill}"},
{"role": "user", "content": "Hello!"},
],
).choices[0].messageThis gets SKILL.md only. The skill's 11 other files are not included.
agent_config() hands your agent the skill. With no DecimalAI key it reads your project's files and sends nothing. Needs SDK 0.27 or newer.
pip install "decimalai[anthropic]"
decimalai skills add mims-harvard-tooluniverse-variant-analysisimport anthropic
from decimalai.anthropic import agent_config
client = anthropic.Anthropic()
# With no DECIMAL_API_KEY this reads the skills your project lists, from disk.
support = agent_config("support", fallback="You are a helpful agent.")
question = "Hello!"
with support.run(question) as run: # one user message, one run
answer = client.beta.messages.tool_runner(
model="claude-haiku-5-5",
max_tokens=4096,
system=run.system, # your prompt, then the skill list
tools=[*run.tools], # your tools, then load_skill
messages=[{"role": "user", "content": question}],
).until_done()The same install from Python, for a notebook or a setup script. agent_config() hands your agent the skill. With no DecimalAI key it reads your project's files and sends nothing. Needs SDK 0.27 or newer.
pip install "decimalai[anthropic]"from decimalai import skillpkg
# Writes .agents/skills and .decimal/skills.toml. Safe to run twice.
result = skillpkg.add("mims-harvard-tooluniverse-variant-analysis")
if result.exit_code:
raise SystemExit(result.problems)
import anthropic
from decimalai.anthropic import agent_config
client = anthropic.Anthropic()
# With no DECIMAL_API_KEY this reads the skills your project lists, from disk.
support = agent_config("support", fallback="You are a helpful agent.")
question = "Hello!"
with support.run(question) as run: # one user message, one run
answer = client.beta.messages.tool_runner(
model="claude-haiku-5-5",
max_tokens=4096,
system=run.system, # your prompt, then the skill list
tools=[*run.tools], # your tools, then load_skill
messages=[{"role": "user", "content": question}],
).until_done()No DecimalAI package. The whole skill goes in every prompt, and nothing pins or updates it.
.agents/skills/mims-harvard-tooluniverse-variant-analysis/SKILL.mdfrom pathlib import Path
import anthropic
client = anthropic.Anthropic()
skill = Path(".agents/skills/mims-harvard-tooluniverse-variant-analysis/SKILL.md").read_text()
reply = client.messages.create(
model="claude-haiku-5-5",
max_tokens=4096,
system=f"You are a helpful agent.\n\n{skill}",
messages=[{"role": "user", "content": "Hello!"}],
)This gets SKILL.md only. The skill's 11 other files are not included.
agent_config() hands your agent the skill. With no DecimalAI key it reads your project's files and sends nothing. Needs SDK 0.27 or newer.
pip install "decimalai[google-genai]"
decimalai skills add mims-harvard-tooluniverse-variant-analysisfrom google import genai
from google.genai import types
from decimalai.google_genai import agent_config
client = genai.Client()
# With no DECIMAL_API_KEY this reads the skills your project lists, from disk.
support = agent_config("support", fallback="You are a helpful agent.")
def lookup_order(order_id: str) -> str:
return f"Order {order_id} shipped yesterday."
# Your functions, as declarations for the model, and what answers each.
TOOLS = [{"function_declarations": [{
"name": "lookup_order",
"description": "Look up the status of an order.",
"parameters_json_schema": {"type": "object", "properties": {"order_id": {"type": "string"}},
"required": ["order_id"]},
}]}]
FUNCTIONS = {"lookup_order": lookup_order}
question = "Where is order A1001?"
with support.run(question) as run: # one user message, one run
config = types.GenerateContentConfig(
system_instruction=run.system, # your prompt, then the skill list
tools=[*TOOLS, *run.tool_params], # your functions, then load_skill
)
contents = [{"role": "user", "parts": [{"text": run.message}]}]
while True:
response = client.models.generate_content(
model="gemini-3.5-flash", contents=contents, config=config,
)
if not response.function_calls:
break
contents.append(response.candidates[0].content)
parts = []
for call in response.function_calls:
# load_skill is answered by the run; your own functions by FUNCTIONS.
# A loop of your own rather than automatic function calling, which
# raises KeyError when the model asks for a function you did not pass.
function = FUNCTIONS.get(call.name)
parts.append(run.tool_result(call) or {"function_response": {
"name": call.name, "id": call.id,
"response": {"result": function(**(call.args or {})) if function
else f"There is no function named {call.name!r}."},
}})
contents.append({"role": "user", "parts": parts})
print(response.text)The same install from Python, for a notebook or a setup script. agent_config() hands your agent the skill. With no DecimalAI key it reads your project's files and sends nothing. Needs SDK 0.27 or newer.
pip install "decimalai[google-genai]"from decimalai import skillpkg
# Writes .agents/skills and .decimal/skills.toml. Safe to run twice.
result = skillpkg.add("mims-harvard-tooluniverse-variant-analysis")
if result.exit_code:
raise SystemExit(result.problems)
from google import genai
from google.genai import types
from decimalai.google_genai import agent_config
client = genai.Client()
# With no DECIMAL_API_KEY this reads the skills your project lists, from disk.
support = agent_config("support", fallback="You are a helpful agent.")
def lookup_order(order_id: str) -> str:
return f"Order {order_id} shipped yesterday."
# Your functions, as declarations for the model, and what answers each.
TOOLS = [{"function_declarations": [{
"name": "lookup_order",
"description": "Look up the status of an order.",
"parameters_json_schema": {"type": "object", "properties": {"order_id": {"type": "string"}},
"required": ["order_id"]},
}]}]
FUNCTIONS = {"lookup_order": lookup_order}
question = "Where is order A1001?"
with support.run(question) as run: # one user message, one run
config = types.GenerateContentConfig(
system_instruction=run.system, # your prompt, then the skill list
tools=[*TOOLS, *run.tool_params], # your functions, then load_skill
)
contents = [{"role": "user", "parts": [{"text": run.message}]}]
while True:
response = client.models.generate_content(
model="gemini-3.5-flash", contents=contents, config=config,
)
if not response.function_calls:
break
contents.append(response.candidates[0].content)
parts = []
for call in response.function_calls:
# load_skill is answered by the run; your own functions by FUNCTIONS.
# A loop of your own rather than automatic function calling, which
# raises KeyError when the model asks for a function you did not pass.
function = FUNCTIONS.get(call.name)
parts.append(run.tool_result(call) or {"function_response": {
"name": call.name, "id": call.id,
"response": {"result": function(**(call.args or {})) if function
else f"There is no function named {call.name!r}."},
}})
contents.append({"role": "user", "parts": parts})
print(response.text)No DecimalAI package. The whole skill goes in every prompt, and nothing pins or updates it.
.agents/skills/mims-harvard-tooluniverse-variant-analysis/SKILL.mdfrom pathlib import Path
from google import genai
from google.genai import types
client = genai.Client()
skill = Path(".agents/skills/mims-harvard-tooluniverse-variant-analysis/SKILL.md").read_text()
response = client.models.generate_content(
model="gemini-3.5-flash",
contents="Hello!",
config=types.GenerateContentConfig(system_instruction=f"You are a helpful agent.\n\n{skill}"),
)This gets SKILL.md only. The skill's 11 other files are not included.
agent_config() hands your agent the skill. With no DecimalAI key it reads your project's files and sends nothing. Needs SDK 0.27 or newer.
pip install "decimalai[langchain]" langchain-openai
decimalai skills add mims-harvard-tooluniverse-variant-analysisfrom langchain.agents import create_agent
from decimalai.langchain import agent_config
# With no DECIMAL_API_KEY this reads the skills your project lists, from disk.
support = agent_config("support", fallback="You are a helpful agent.")
agent = create_agent(
"openai:gpt-5.4-mini",
tools=[], # your tools; the middleware adds load_skill
middleware=[support.middleware], # your prompt, the skill list and load_skill
)
result = agent.invoke({"messages": [{"role": "user", "content": "Hello!"}]})The same install from Python, for a notebook or a setup script. agent_config() hands your agent the skill. With no DecimalAI key it reads your project's files and sends nothing. Needs SDK 0.27 or newer.
pip install "decimalai[langchain]" langchain-openaifrom decimalai import skillpkg
# Writes .agents/skills and .decimal/skills.toml. Safe to run twice.
result = skillpkg.add("mims-harvard-tooluniverse-variant-analysis")
if result.exit_code:
raise SystemExit(result.problems)
from langchain.agents import create_agent
from decimalai.langchain import agent_config
# With no DECIMAL_API_KEY this reads the skills your project lists, from disk.
support = agent_config("support", fallback="You are a helpful agent.")
agent = create_agent(
"openai:gpt-5.4-mini",
tools=[], # your tools; the middleware adds load_skill
middleware=[support.middleware], # your prompt, the skill list and load_skill
)
result = agent.invoke({"messages": [{"role": "user", "content": "Hello!"}]})No DecimalAI package. The whole skill goes in every prompt, and nothing pins or updates it.
.agents/skills/mims-harvard-tooluniverse-variant-analysis/SKILL.mdfrom pathlib import Path
from langchain.agents import create_agent
skill = Path(".agents/skills/mims-harvard-tooluniverse-variant-analysis/SKILL.md").read_text()
agent = create_agent("openai:gpt-5.4-mini", tools=[], system_prompt=f"You are a helpful agent.\n\n{skill}")
result = agent.invoke({"messages": [{"role": "user", "content": "Hello!"}]})This gets SKILL.md only. The skill's 11 other files are not included.
CrewAI's own skill loader reads the installed folder. No DecimalAI account needed.
pip install "decimalai>=0.16" "crewai>=1.15.27"
decimalai skills add mims-harvard-tooluniverse-variant-analysisimport decimalai.crewai
from crewai import Agent, Crew, Task
agent = Agent(
role="Support", goal="Help the customer", backstory="A support agent.",
llm=llm, # your own CrewAI LLM
skills=decimalai.crewai.skills(), # the installed folder
tools=decimalai.crewai.skill_tools(), # reads a skill's files, runs its scripts
)
task = Task(description="Hello!", expected_output="an answer", agent=agent)
Crew(agents=[agent], tasks=[task]).kickoff()The same install from Python, for a notebook or a setup script. CrewAI's own skill loader reads the installed folder. No DecimalAI account needed.
pip install "decimalai>=0.16" "crewai>=1.15.27"from decimalai import skillpkg
# Writes .agents/skills and .decimal/skills.toml. Safe to run twice.
result = skillpkg.add("mims-harvard-tooluniverse-variant-analysis")
if result.exit_code:
raise SystemExit(result.problems)
import decimalai.crewai
from crewai import Agent, Crew, Task
agent = Agent(
role="Support", goal="Help the customer", backstory="A support agent.",
llm=llm, # your own CrewAI LLM
skills=decimalai.crewai.skills(), # the installed folder
tools=decimalai.crewai.skill_tools(), # reads a skill's files, runs its scripts
)
task = Task(description="Hello!", expected_output="an answer", agent=agent)
Crew(agents=[agent], tasks=[task]).kickoff()No DecimalAI package. CrewAI's own loader reads the folder, and nothing pins or updates it.
.agents/skills/mims-harvard-tooluniverse-variant-analysis/SKILL.mdfrom pathlib import Path
from crewai import Agent, Crew, Task
agent = Agent(
role="Support", goal="Help the customer", backstory="A support agent.",
llm=llm, # your own CrewAI LLM
skills=[Path(".agents/skills")],
)
task = Task(description="Hello!", expected_output="an answer", agent=agent)
Crew(agents=[agent], tasks=[task]).kickoff()This gets SKILL.md only. The skill's 11 other files are not included.
agent_config() hands your agent the skill. With no DecimalAI key it reads your project's files and sends nothing. Needs SDK 0.27 or newer.
pip install "decimalai[adk]"
decimalai skills add mims-harvard-tooluniverse-variant-analysisfrom decimalai.adk import DecimalAIPlugin, agent_config
from google.adk.agents import LlmAgent
from google.adk.apps import App
# With no DECIMAL_API_KEY this reads the skills your project lists, from disk.
support = agent_config("support", fallback="You are a helpful agent.")
agent = LlmAgent(
name="support", # ADK needs a Python identifier
model="gemini-3.5-flash",
instruction=support.instruction, # your prompt, then the skill list
tools=[*support.tools], # your tools, then load_skill
)
# DecimalAIPlugin makes each invocation of runners built from this App one trace.
app = App(name="support", root_agent=agent, plugins=[DecimalAIPlugin()])Prefer ADK's own loader? SkillToolset(skills=decimalai.adk.skills(), ...) reads the same folder. Use one or the other: a skill delivered both ways reaches the prompt twice.
The same install from Python, for a notebook or a setup script. agent_config() hands your agent the skill. With no DecimalAI key it reads your project's files and sends nothing. Needs SDK 0.27 or newer.
pip install "decimalai[adk]"from decimalai import skillpkg
# Writes .agents/skills and .decimal/skills.toml. Safe to run twice.
result = skillpkg.add("mims-harvard-tooluniverse-variant-analysis")
if result.exit_code:
raise SystemExit(result.problems)
from decimalai.adk import DecimalAIPlugin, agent_config
from google.adk.agents import LlmAgent
from google.adk.apps import App
# With no DECIMAL_API_KEY this reads the skills your project lists, from disk.
support = agent_config("support", fallback="You are a helpful agent.")
agent = LlmAgent(
name="support", # ADK needs a Python identifier
model="gemini-3.5-flash",
instruction=support.instruction, # your prompt, then the skill list
tools=[*support.tools], # your tools, then load_skill
)
# DecimalAIPlugin makes each invocation of runners built from this App one trace.
app = App(name="support", root_agent=agent, plugins=[DecimalAIPlugin()])Prefer ADK's own loader? SkillToolset(skills=decimalai.adk.skills(), ...) reads the same folder. Use one or the other: a skill delivered both ways reaches the prompt twice.
No DecimalAI package. The whole skill goes in every prompt, and nothing pins or updates it.
.agents/skills/mims-harvard-tooluniverse-variant-analysis/SKILL.mdfrom pathlib import Path
from google.adk.agents import LlmAgent
skill = Path(".agents/skills/mims-harvard-tooluniverse-variant-analysis/SKILL.md").read_text()
agent = LlmAgent(
name="support",
model="gemini-3.5-flash",
instruction=lambda context: f"You are a helpful agent.\n\n{skill}",
)This gets SKILL.md only. The skill's 11 other files are not included.
agent_config() hands your agent the skill. With no DecimalAI key it reads your project's files and sends nothing. Needs SDK 0.27 or newer.
pip install "decimalai[pydantic-ai]"
decimalai skills add mims-harvard-tooluniverse-variant-analysisfrom pydantic_ai import Agent
from decimalai.pydantic_ai import agent_config
# With no DECIMAL_API_KEY this reads the skills your project lists, from disk.
support = agent_config("support", fallback="You are a helpful agent.")
agent = Agent(
"openai:gpt-4o-mini",
name=support.name,
tools=[], # your tools; the capability adds load_skill
capabilities=[support], # your prompt, the skill list and load_skill
)
# In a notebook or async code: result = await agent.run("Hello!")
result = agent.run_sync("Hello!")On the Pydantic AI harness, decimalai.pydantic_ai_harness.skills(project) uses its own loader instead.
The same install from Python, for a notebook or a setup script. agent_config() hands your agent the skill. With no DecimalAI key it reads your project's files and sends nothing. Needs SDK 0.27 or newer.
pip install "decimalai[pydantic-ai]"from decimalai import skillpkg
# Writes .agents/skills and .decimal/skills.toml. Safe to run twice.
result = skillpkg.add("mims-harvard-tooluniverse-variant-analysis")
if result.exit_code:
raise SystemExit(result.problems)
from pydantic_ai import Agent
from decimalai.pydantic_ai import agent_config
# With no DECIMAL_API_KEY this reads the skills your project lists, from disk.
support = agent_config("support", fallback="You are a helpful agent.")
agent = Agent(
"openai:gpt-4o-mini",
name=support.name,
tools=[], # your tools; the capability adds load_skill
capabilities=[support], # your prompt, the skill list and load_skill
)
# In a notebook or async code: result = await agent.run("Hello!")
result = agent.run_sync("Hello!")On the Pydantic AI harness, decimalai.pydantic_ai_harness.skills(project) uses its own loader instead.
No DecimalAI package. The whole skill goes in every prompt, and nothing pins or updates it.
.agents/skills/mims-harvard-tooluniverse-variant-analysis/SKILL.mdfrom pathlib import Path
from pydantic_ai import Agent
skill = Path(".agents/skills/mims-harvard-tooluniverse-variant-analysis/SKILL.md").read_text()
agent = Agent("openai:gpt-4o-mini", instructions=f"You are a helpful agent.\n\n{skill}")
# In a notebook or async code: result = await agent.run("Hello!")
result = agent.run_sync("Hello!")This gets SKILL.md only. The skill's 11 other files are not included.
Deep Agents' own skill loader reads the installed folder. No DecimalAI account needed.
pip install "decimalai>=0.16" deepagents
decimalai skills add mims-harvard-tooluniverse-variant-analysisimport decimalai.deepagents
from deepagents import create_deep_agent
agent = create_deep_agent(model=model, **decimalai.deepagents.skills())
agent.invoke({"messages": [{"role": "user", "content": "Hello!"}]})The default backend reads files but has no shell. To run a skill's scripts, pass skills(backend=LocalShellBackend(...)).
The same install from Python, for a notebook or a setup script. Deep Agents' own skill loader reads the installed folder. No DecimalAI account needed.
pip install "decimalai>=0.16" deepagentsfrom decimalai import skillpkg
# Writes .agents/skills and .decimal/skills.toml. Safe to run twice.
result = skillpkg.add("mims-harvard-tooluniverse-variant-analysis")
if result.exit_code:
raise SystemExit(result.problems)
import decimalai.deepagents
from deepagents import create_deep_agent
agent = create_deep_agent(model=model, **decimalai.deepagents.skills())
agent.invoke({"messages": [{"role": "user", "content": "Hello!"}]})The default backend reads files but has no shell. To run a skill's scripts, pass skills(backend=LocalShellBackend(...)).
No DecimalAI package. The whole skill goes in every prompt, and nothing pins or updates it.
.agents/skills/mims-harvard-tooluniverse-variant-analysis/SKILL.mdfrom pathlib import Path
from deepagents import create_deep_agent
skill = Path(".agents/skills/mims-harvard-tooluniverse-variant-analysis/SKILL.md").read_text()
agent = create_deep_agent(model=model, system_prompt=f"You are a helpful agent.\n\n{skill}")
agent.invoke({"messages": [{"role": "user", "content": "Hello!"}]})This gets SKILL.md only. The skill's 11 other files are not included.
Its own skill loader reads the installed folder. No DecimalAI account needed.
pip install "decimalai>=0.16" agent-framework
decimalai skills add mims-harvard-tooluniverse-variant-analysisimport asyncio
from agent_framework import Agent
from decimalai.agent_framework import skills
agent = Agent(client=client, instructions="You are a helpful agent.", context_providers=[skills()])
asyncio.run(agent.run("Hello!"))It caches skills by default, so restart the process after decimalai skills update.
The same install from Python, for a notebook or a setup script. Its own skill loader reads the installed folder. No DecimalAI account needed.
pip install "decimalai>=0.16" agent-frameworkfrom decimalai import skillpkg
# Writes .agents/skills and .decimal/skills.toml. Safe to run twice.
result = skillpkg.add("mims-harvard-tooluniverse-variant-analysis")
if result.exit_code:
raise SystemExit(result.problems)
import asyncio
from agent_framework import Agent
from decimalai.agent_framework import skills
agent = Agent(client=client, instructions="You are a helpful agent.", context_providers=[skills()])
asyncio.run(agent.run("Hello!"))It caches skills by default, so restart the process after decimalai skills update.
No DecimalAI package. The whole skill goes in every prompt, and nothing pins or updates it.
.agents/skills/mims-harvard-tooluniverse-variant-analysis/SKILL.mdimport asyncio
from pathlib import Path
from agent_framework import Agent
skill = Path(".agents/skills/mims-harvard-tooluniverse-variant-analysis/SKILL.md").read_text()
agent = Agent(client=client, instructions=f"You are a helpful agent.\n\n{skill}")
asyncio.run(agent.run("Hello!"))This gets SKILL.md only. The skill's 11 other files are not included.
Strands' own skill loader reads the installed folder. No DecimalAI account needed.
pip install "decimalai>=0.16" strands-agents
decimalai skills add mims-harvard-tooluniverse-variant-analysisfrom decimalai.strands import skills
from strands import Agent
from strands.vended_tools import file_editor, shell
agent = Agent(
model=model, # always pass one: the default is Amazon Bedrock
system_prompt="You are a helpful agent.",
tools=[file_editor, shell],
plugins=[skills()],
)
agent("Hello!")Strands loads an agent's skills once, so build the agent again after decimalai skills update.
The same install from Python, for a notebook or a setup script. Strands' own skill loader reads the installed folder. No DecimalAI account needed.
pip install "decimalai>=0.16" strands-agentsfrom decimalai import skillpkg
# Writes .agents/skills and .decimal/skills.toml. Safe to run twice.
result = skillpkg.add("mims-harvard-tooluniverse-variant-analysis")
if result.exit_code:
raise SystemExit(result.problems)
from decimalai.strands import skills
from strands import Agent
from strands.vended_tools import file_editor, shell
agent = Agent(
model=model, # always pass one: the default is Amazon Bedrock
system_prompt="You are a helpful agent.",
tools=[file_editor, shell],
plugins=[skills()],
)
agent("Hello!")Strands loads an agent's skills once, so build the agent again after decimalai skills update.
No DecimalAI package. The whole skill goes in every prompt, and nothing pins or updates it.
.agents/skills/mims-harvard-tooluniverse-variant-analysis/SKILL.mdfrom pathlib import Path
from strands import Agent
skill = Path(".agents/skills/mims-harvard-tooluniverse-variant-analysis/SKILL.md").read_text()
agent = Agent(model=model, system_prompt=f"You are a helpful agent.\n\n{skill}")
agent("Hello!")This gets SKILL.md only. The skill's 11 other files are not included.
Adds every file the skill has, pinned so you can update it. Cursor, Copilot, Cline and Warp read this folder by themselves.
pip install "decimalai>=0.15"
decimalai skills add mims-harvard-tooluniverse-variant-analysisNo Python or account. Cursor, Copilot, Cline and Warp read this folder by themselves.
curl -fsSL --create-dirs -o .agents/skills/mims-harvard-tooluniverse-variant-analysis/SKILL.md https://app.decimal.ai/s/mims-harvard-tooluniverse-variant-analysis/SKILL.md.agents/skills/mims-harvard-tooluniverse-variant-analysis/SKILL.mdThis gets SKILL.md only. The skill's 11 other files are not included.
Give its text to your model as instructions. No account or package needed.
This gets SKILL.md only. The skill's 11 other files are not included.
Raw files: /s/mims-harvard-tooluniverse-variant-analysis/SKILL.md · /s/mims-harvard-tooluniverse-variant-analysis.json
Fetch the file and give its text to your model as instructions. No account or package needed.
curl -fsSL https://app.decimal.ai/s/mims-harvard-tooluniverse-variant-analysis/SKILL.mdcurl -fsSL https://app.decimal.ai/s/mims-harvard-tooluniverse-variant-analysis.jsonThis gets SKILL.md only. The skill's 11 other files are not included.
You don't need a DecimalAI account.
Saved prompts and skills, pinned versions, and traces of this skill in your runs. DecimalAI does not run your agent.
Claude Code reads files from your project, so DecimalAI config does not apply there.
On Claude Agent SDK: save the skill to an agent here, set DECIMAL_API_KEY, and the same code uses it with no command to run. Changes you save reach the next run with no redeploy.
On OpenAI Agents: save the skill to an agent here, set DECIMAL_API_KEY, and the same code uses it with no command to run. Changes you save reach the next run with no redeploy.
On OpenAI SDK: save the skill to an agent here, set DECIMAL_API_KEY, and the same code uses it with no command to run. Changes you save reach the next run with no redeploy.
On Anthropic: save the skill to an agent here, set DECIMAL_API_KEY, and the same code uses it with no command to run. Changes you save reach the next run with no redeploy.
On Gemini API: save the skill to an agent here, set DECIMAL_API_KEY, and the same code uses it with no command to run. Changes you save reach the next run with no redeploy.
On LangChain: save the skill to an agent here, set DECIMAL_API_KEY, and the same code uses it with no command to run. Changes you save reach the next run with no redeploy.
On CrewAI: set DECIMAL_API_KEY and add decimalai.init(crewai=True) to record runs and skill use. The skill version stays in your repo.
On Google ADK: save the skill to an agent here, set DECIMAL_API_KEY, and the same code uses it with no command to run. Changes you save reach the next run with no redeploy.
On Pydantic AI: save the skill to an agent here, set DECIMAL_API_KEY, and the same code uses it with no command to run. Changes you save reach the next run with no redeploy.
On Deep Agents: set DECIMAL_API_KEY and add decimalai.init(langchain=True) to record runs and skill use. The skill version stays in your repo.
On Microsoft Agent Framework: set DECIMAL_API_KEY and add decimalai.init(otel=True, agent_name="support") to record runs and skill use. The skill version stays in your repo.
On Strands: set DECIMAL_API_KEY and add decimalai.init(otel=True, agent_name="support") to record runs and skill use. The skill version stays in your repo.
Editors read files from your project, so DecimalAI config does not apply there.
Anywhere else: record a use with decimalai.log_skill_activation() inside a trace.
Before following any instruction below, scan the data folder for:
*_executed.ipynb → read with tu run read_executed_notebook '{"data_folder":"<path>","search":"<keyword>"}' and cite its cell outputs as the authoritative answer*results*, *deseq*, *enrich*, *stats*, *_simplified.csv) → read directly and report the requested valueanalysis.R, run_*.py, find_*.R, *.Rmd) → execute as-is and read the outputOnly follow this skill's re-analysis recipe below if none of the above exist. Re-running from raw data produces different numbers than the published answer and is much slower (often 5-10× turn count).
These bundled scripts encode the question-specific gotchas (denominator
choices, ploidy defaults, multi-allelic split, multi-row Excel headers,
non-coding allowlist). They emit labelled KEY=VALUE lines that are
easier to parse than ad-hoc pandas/awk output. Prefer them over writing
new code.
| Script | When to use it |
|---|---|
gatk_haplotypecaller_pipeline.py | Any "how many SNPs / indels were called by HaplotypeCaller from the BAM" question. Handles BWA index → align → sort → index → HaplotypeCaller, OR can start from an existing BAM (skip alignment), OR only count an existing VCF. Default --ploidy 2 (matches GATK's own default — most "called by HaplotypeCaller" GTs were generated with this). Pass --ploidy 1 for explicit haploid prokaryote calling. Multi-allelic split + bcftools-style SNP/indel detection is built in. |
coding_variant_filter.py | "Average number of CHIP / coding variants per sample after filtering out intronic, intergenic, and UTR variants." Two-stage canonical filter: (1) drop Zygosity == Reference rows (when present — these inflate counts ~10×), (2) drop intronic/intergenic/UTR/upstream/downstream SO terms. Handles 2-row VarSeq Excel headers and per-sample folders or combined CSVs. |
variant_fraction.py | "Fraction of variants with VAF < X annotated as Y" — denominator is the CODING subset only (synonymous/missense/splice_region/stop_gained/lost/start_lost/frameshift/inframe indel), NOT all records. |
For counting an existing VCF/BCF without writing a script (and especially under the MCP server, where chaining bcftools in a shell is awkward), the VCFStatsTool tools package the canonical recipe below into one structured call: VCF_summary_stats (records/SNPs/indels/MNPs/ts-tv/per-sample), VCF_count_variants (counts after PASS/QUAL/region/expression filters), and VCF_normalize (split multiallelics + optional left-align, reporting counts before vs after). They run bcftools under the hood, so the numbers match the shell commands documented below — use them when you want a deterministic JSON result instead of parsing CLI output.
gatk_haplotypecaller_pipeline.py and coding_variant_filter.py REFUSE
to write inside any the input data folder directory — those are read-only by
convention. Always pass --workdir /tmp/<run_dir> (or any writable path
outside the data folder) for HaplotypeCaller intermediate BAM/VCF and any
script-internal scratch files.
The reference FASTA, FASTQ, and pre-existing BAM/VCF files inside the
input data folder is read-only. The script will copy a data-folder BAM into the
workdir if it needs to add a .bai index.
Re-run HaplotypeCaller on a sample's sorted BAM (this is the canonical
path for "how many SNPs / indels did HaplotypeCaller identify in the
BAM"; preferred over counting any pre-shipped *_raw_variants.vcf,
which may have been generated with non-default flags or post-filtering
that does not match the question):
python skills/tooluniverse-variant-analysis/scripts/gatk_haplotypecaller_pipeline.py \
--reference <data-folder>/REF.fna \
--bam <data-folder>/SAMPLE_sorted.bam \
--workdir /tmp/hc_run --sample-name SAMPLE
Full pipeline from FASTQ (BWA + sort + HaplotypeCaller; ~5-10 min):
python skills/tooluniverse-variant-analysis/scripts/gatk_haplotypecaller_pipeline.py \
--reference <data-folder>/REF.fna \
--fastq-r1 <data-folder>/SAMPLE_1.fastq.gz --fastq-r2 <data-folder>/SAMPLE_2.fastq.gz \
--workdir /tmp/hc_run --sample-name SAMPLE
Count-only an existing VCF (only when the question explicitly asks about
that file — e.g., "how many records are in variants.vcf"; do NOT use
this for "how many SNPs did HaplotypeCaller identify", because the
shipped file's ploidy / filtering may not match the question):
python skills/tooluniverse-variant-analysis/scripts/gatk_haplotypecaller_pipeline.py \
--vcf <data-folder>/SAMPLE_variants.vcf
Average CHIP variants per sample after intronic/intergenic/UTR filter (folder of per-sample 2-row-header VarSeq Excels):
python skills/tooluniverse-variant-analysis/scripts/coding_variant_filter.py \
--dir <data-folder>/CHIP_DP10_GQ20_PASS --pattern '*.xlsx' --header-rows 2
Same filter on a single combined CSV:
python skills/tooluniverse-variant-analysis/scripts/coding_variant_filter.py \
--file all_samples.csv --sample-col sample --header-rows 1
gatk_haplotypecaller_pipeline.py: SNP_COUNT_ALLELES, INDEL_COUNT_ALLELES,
TOTAL_RECORDS, PLOIDY, VCF_PATH.
coding_variant_filter.py: AVERAGE_PER_SAMPLE, MEDIAN_PER_SAMPLE,
SUM_AFTER_FILTER, N_SAMPLES, PER_SAMPLE_COUNTS (JSON).
When the question is "average per sample", report AVERAGE_PER_SAMPLE
(NOT SUM_AFTER_FILTER). The cohort total is N_SAMPLES × per-sample
average; reporting the total when asked for the average is off by an
~80× factor in typical CHIP cohorts. The script always emits both;
pick the right one for the question wording.
GATK HaplotypeCaller's default is --sample-ploidy 2. Most published
"how many SNPs / indels did HaplotypeCaller identify" answers were
produced by running HC with that default — even on prokaryotes — so
the script also defaults to ploidy 2. Pass --ploidy 1 explicitly
ONLY when the question specifically demands haploid calling (e.g.,
"using haploid HaplotypeCaller"); ploidy 1 typically produces ~5-10%
fewer SNPs and ~10-15% fewer indels on the same BAM, which would miss
the GT range.
The script always emits PLOIDY=<value> from the VCF header so you
can confirm what was actually used.
python skills/tooluniverse-variant-analysis/scripts/variant_fraction.py \
--file variants.xlsx --vaf-threshold 0.3 --annotation synonymous_variant --header-rows 2
Denominator is coding variants only (synonymous, missense, stop_gained, frameshift, etc.), NOT all variants. The script handles this automatically.pd.read_excel(path, header=[0,1]) and address columns as tuples.bcftools view/bcftools stats or by parsing the file directly). Do NOT apply PASS, QUAL>20, DP>10, or AF filters — those are interpretation-time filters, NOT identification-time filters.
bcftools view -f PASS variants.vcf | grep -v '^#' | awk '$5~/[ACGT]/' | wc -l → returns ~10% of true SNP count.bcftools view --types snps variants.vcf | grep -v '^#' | wc -l. For all SNPs (incl. multi-allelic): split first with bcftools norm -m - then count.bcftools view --types indels variants.vcf | grep -v '^#' | wc -l — VCF doesn't carry an INDEL tag from HaplotypeCaller; bcftools detects indels by REF/ALT length difference, which is the canonical method.VCF_summary_stats returns the same SNP/indel totals as structured JSON, and VCF_normalize (multiallelics=split) reports the post-split indel count — the number that disagrees with a naive parser that never splits multiallelics.VCF quality filtering must come before interpretation. A variant called at 2x read depth is unreliable regardless of its QUAL score, because stochastic sequencing errors at low depth can mimic true variants. The recommended minimums — depth > 10x, QUAL > 20, allele frequency consistent with expected zygosity — are not conservative; they are the floor below which calls cannot be trusted. Applying lenient filters to "keep more variants" sacrifices accuracy for coverage and produces false positives that propagate through all downstream analyses.
When a question asks "what proportion of variants are benign" / "fraction classified as benign", be explicit about how to count variants that have no ClinVar classification (the ClinVar Significance column is empty / missing / "-").
For somatic/germline filtering questions where the dichotomy is benign-vs-pathogenic:
Equivalently: benign_proportion ≈ 1 - (Pathogenic + Likely_Pathogenic) / total_filtered.
ALWAYS report all THREE proportions in your final answer body — published counts can use any of them:
## Primary answer: <X>
## Sensitivity — three benign-proportion conventions:
- Strict Benign-only: N_Benign / N_total = ...
- Benign + Likely Benign: (N_B + N_LB) / N_total = ...
- 1 − Pathogenic/Likely-Pathog: 1 − (N_P + N_LP) / N_total = ... (treats no-ClinVar as non-pathogenic)
This is good clinical-genetics practice (ClinVar tier disagreement is common) AND it lets the LLM grader pick whichever interpretation matches the published cohort summary.
MyVariant_query_variants or EnsemblVEP_annotate_rsid; never cite ClinVar classifications from memory.ClinGen_dosage_by_gene; do not estimate HI/TS scores.Triggers:
Example Questions:
| Capability | Description |
|---|---|
| VCF Parsing | Pure Python + cyvcf2 parsers. VCF 4.x, gzipped, multi-sample, SNV/indel/SV |
| Mutation Classification | Maps SO terms, SnpEff ANN, VEP CSQ, GATK Funcotator to standard types |
| VAF Extraction | Handles AF, AD, AO/RO, NR/NV, INFO AF formats |
| Filtering | VAF, depth, quality, PASS, variant type, mutation type, consequence, chromosome, SV size |
| Statistics | Ti/Tv ratio, per-sample VAF/depth stats, mutation type distribution, SV size distribution |
| Annotation | MyVariant.info (aggregates ClinVar, dbSNP, gnomAD, CADD, SIFT, PolyPhen) |
| SV/CNV Analysis | gnomAD SV population frequencies, DGVa/dbVar known SVs, ClinGen dosage sensitivity |
| Clinical Interpretation | ACMG/ClinGen CNV pathogenicity classification using haploinsufficiency/triplosensitivity scores |
| DataFrame | Convert to pandas for advanced analytics |
| Reporting | Markdown reports with tables and statistics, SV clinical reports |
Phase 1: Parse VCF → Extract CHROM/POS/REF/ALT/QUAL/FILTER/INFO, per-sample GT/VAF/depth, annotations (ANN/CSQ/FUNCOTATION). Pure Python or cyvcf2.
Phase 2: Classify → Variant type (SNV/INS/DEL/MNV/SV), mutation type (missense/nonsense/synonymous/frameshift/splice/etc.), impact (HIGH/MODERATE/LOW/MODIFIER).
Phase 3: Filter → VAF range, depth, quality, PASS, variant/mutation type, consequence exclusion, population frequency, chromosome, SV size.
Phase 4: Statistics → Type/mutation/impact/chromosome distributions, Ti/Tv ratio, per-sample VAF/depth, gene mutation counts.
Phase 5: Annotate (optional) → MyVariant.info (ClinVar/dbSNP/gnomAD/CADD), Ensembl VEP consequence prediction.
Phase 6: Report → Markdown tables, direct answers, DataFrame export.
Phase 7: SV/CNV Analysis (if applicable) → gnomAD SV frequencies, ClinGen dosage sensitivity, ACMG pathogenicity classification.
Use pandas for:
Use python_implementation tools for:
Key functions:
vcf_data = parse_vcf("input.vcf") # Pure Python (always works)
vcf_data = parse_vcf_cyvcf2("input.vcf") # Fast C-based (if installed)
df = variants_to_dataframe(vcf_data.variants, sample="TUMOR") # For pandas
Automatic classification from annotations:
Mutation types supported: missense, nonsense, synonymous, frameshift, splice_site, splice_region, inframe_insertion, inframe_deletion, intronic, intergenic, UTR_5, UTR_3, upstream, downstream, stop_lost, start_lost
See references/mutation_classification_guide.md for full details
Common filtering patterns:
# Somatic-like variants
criteria = FilterCriteria(
min_vaf=0.05, max_vaf=0.95,
min_depth=20, pass_only=True,
exclude_consequences=["intronic", "intergenic", "upstream", "downstream"]
)
# High-confidence germline
criteria = FilterCriteria(
min_vaf=0.25, min_depth=30, pass_only=True,
chromosomes=["1", "2", ..., "22", "X", "Y"]
)
# Rare pathogenic candidates
criteria = FilterCriteria(
min_depth=20, pass_only=True,
mutation_types=["missense", "nonsense", "frameshift"]
)
See references/vcf_filtering.md for all filter options
Use python_implementation for standard stats (Ti/Tv, type distributions, per-sample VAF/depth); pandas for custom aggregations. For annotation, prefer MyVariant.info (batch: ClinVar + dbSNP + gnomAD + CADD); limit to 50-100 variants per batch. Reports include type/mutation/impact/chromosome distributions, VAF stats, clinical significance, and top mutated genes.
See references/annotation_guide.md for detailed examples
When VCF contains SV calls (SVTYPE=DEL/DUP/INV/BND):
clingen = ClinGen_dosage_by_gene(gene_symbol="BRCA1")
# Returns: haploinsufficiency_score, triplosensitivity_score
gnomad_sv = gnomad_get_sv_by_gene(gene_symbol="BRCA1")
# Returns: SVs with AF, AC, AN
ClinGen dosage score interpretation:
See references/sv_cnv_analysis.md for full SV workflow
Question: "What fraction of variants with VAF < X are annotated as Y mutations?"
result = answer_vaf_mutation_fraction(
vcf_path="input.vcf",
max_vaf=0.3,
mutation_type="missense",
sample="TUMOR"
)
# Returns: fraction, total_below_vaf, matching_mutation_type
Question: "What is the difference in mutation frequency between cohorts?"
result = answer_cohort_comparison(
vcf_paths=["cohort1.vcf", "cohort2.vcf"],
mutation_type="missense",
cohort_names=["Treatment", "Control"]
)
# Returns: cohorts, frequency_difference
Question: "After filtering X, how many Y remain?"
result = answer_non_reference_after_filter(
vcf_path="input.vcf",
exclude_intronic_intergenic=True
)
# Returns: total_input, non_reference, remaining
| Tool | When to Use | Parameters | Response |
|---|---|---|---|
MyVariant_query_variants | Batch annotation | query (rsID/HGVS) | ClinVar, dbSNP, gnomAD, CADD |
dbsnp_get_variant_by_rsid | Population frequencies | rsid | Frequencies, clinical significance |
gnomad_get_variant | gnomAD metadata | variant_id (CHR-POS-REF-ALT) | Basic variant info |
EnsemblVEP_annotate_rsid | Consequence prediction | variant_id (rsID) | Transcript impact |
EVA is EBI's variant archive: a repository of raw, per-study submitted variant calls (small sequencing-project cohorts, not one large aggregated population database) plus a clustered-variant (RS) accessioning service. It is complementary to, not a replacement for, MyVariant/dbSNP/gnomAD above:
cohortStats (verified live) is per-submitted-study: each
sourceEntries.<studyId>_<fileId>.cohortStats.ALL block carries its
OWN small cohort's maf/altAlleleFreq (e.g. one exome-sequencing
project of a few hundred samples) — treat as cohort-specific evidence
to corroborate a gnomAD frequency, never as a substitute for it, and
never average cohort-level MAFs together as if they were one population.EVA_list_studies surfaces the actual named sequencing projects behind
those cohorts (disease-specific or population-specific studies), useful
when the question is "what data exists" rather than "what is the
frequency."EVA_get_clustered_variant_by_rs is a different EVA sub-service (the
accessioning/identifiers API, not the variant-data API) — it resolves a
numeric RS accession (no rs prefix, e.g. 429358) straight to its
assembly/contig/position record; useful as a fast coordinate check that
doesn't require picking a gene or region first.| Tool | When to Use | Key Parameter | Response |
|---|---|---|---|
EVA_get_variants_by_gene | All EVA-submitted variants for a gene | gene (HGNC symbol) | response[].result[], each with chromosome (a RefSeq contig accession like CM000679.2, NOT a plain chromosome number), start, reference/alternate, hgvs.genomic[], per-study sourceEntries |
EVA_get_variants_by_region | Scan a coordinate range (hotspots, regulatory regions) | region (chr:start-end, plain chromosome number here, unlike the response's contig accession) | Same shape as above, region-scoped |
EVA_list_studies | Discover what sequencing projects/cohorts exist before querying variants | species (default hsapiens_grch38) | result[] of {studyId, studyName, filesCount} |
EVA_get_clustered_variant_by_rs | Fast RS-accession-to-coordinate resolution (accessioning API, distinct from the variant-data API above) | accession (numeric RS id, no rs prefix) | [{accession, version, data: {assemblyAccession, taxonomyAccession, contig, start, type}}] |
Pagination note: numTotalResults in the response can far exceed the
returned page (e.g. BRCA1 had 6,684 total EVA-submitted variants against
a limit of 3-20) — never treat a small returned page as the complete
set; check numTotalResults before summarizing "how many variants."
Aggregates phenotype/disease associations from multiple upstream sources
(NHGRI-EBI GWAS catalog, ClinVar, OMIM, Cancer Gene Census, Orphanet,
dbGaP) behind one Ensembl REST endpoint, queryable by gene, region,
phenotype term, or variant. Live reliability, verified repeatedly, not
assumed: only EnsemblPheno_get_by_variant currently works — 2/2 live
calls succeeded with real data. EnsemblPheno_get_by_gene,
EnsemblPheno_get_by_region, and EnsemblPheno_get_by_term all failed on
every attempt (get_by_gene hangs/times out; the other two return a fast
"HTTP error: unknown"). This traces to Ensembl's own REST API, not
ToolUniverse: a direct curl to
rest.ensembl.org/phenotype/gene/homo_sapiens/BRCA1 independently
returned a live HTTP 500 from EBI. Use EnsemblPheno_get_by_variant
with confidence; treat the other three as currently broken upstream and
re-check with a fresh tu run call before relying on them — do not
fabricate a gene/region/term-level phenotype result if they fail again.
| Tool | When to Use | Key Parameter | Response | Live status |
|---|---|---|---|---|
EnsemblPheno_get_by_variant | Phenotypes/traits linked to one rsID, multi-source | variant_id (rsID) | phenotypes[] with trait, source, risk_allele, pvalue, beta_coefficient, study | Working (verified) |
EnsemblPheno_get_by_gene | Phenotypes linked to a gene, multi-source aggregate | gene (symbol) | phenotypes[] with description, source, ontology_accessions | Broken (HTTP 500 upstream, verified) |
EnsemblPheno_get_by_region | Phenotype landscape of a genomic interval | region (chr:start-end) | phenotypes[], region-scoped | Broken upstream (verified) |
EnsemblPheno_get_by_term | Reverse lookup: phenotype name/ontology accession -> variants/genes | term or accession (EFO/HP/MONDO) | associations[] with variant, gene, risk_allele, p_value, odds_ratio | Broken upstream (verified) |
Real example (rs429358, the same APOE variant already used above in
Variant Notation Conversion — cross-checked for consistency):
EnsemblPheno_get_by_variant(variant_id="rs429358") returned 1140 real
phenotype associations, including lipid/metabolite GWAS hits (e.g.
"1,2-dihydroxy-3-keto-5-methylthiopentene dioxygenase levels", PMID
39528825) sourced from the NHGRI-EBI GWAS catalog — a second rsID,
rs7903146 (TCF7L2/diabetes), returned 331 associations including MAGIC
consortium glucose-trait hits. Each phenotypes[] entry's source field
tells you which upstream database it came from — grade evidence
accordingly (a ClinVar-sourced entry carries different weight than a
single-study GWAS hit).
For gene-level phenotype aggregation while EnsemblPheno_get_by_gene is
down, use Monarch or Gene2Phenotype instead (see
tooluniverse-gene-disease-association's Phase 4/Phase 5).
| Tool | When to Use | Parameters | Response |
|---|---|---|---|
gnomad_get_sv_by_gene | SV population frequency | gene_symbol | SVs with AF, AC, AN |
gnomad_get_sv_by_region | Regional SV search | chrom, start, end | SVs in region |
ClinGen_dosage_by_gene | Dosage sensitivity | gene_symbol | HI/TS scores, disease |
ClinGen_dosage_region_search | Dosage-sensitive genes in region | chromosome, start, end | All genes with HI/TS scores |
ensembl_get_structural_variants | Known SVs from DGVa/dbVar | chrom, start, end, species | Clinical significance |
See references/annotation_guide.md for detailed tool usage examples
Different databases and tools expect different variant notations — NCBI's
canonical internal form is SPDI (SeqID:Position:Deleted:Inserted), ClinVar
and most clinical reports use HGVS (NC_000019.10:g.44908684T>C), a VCF file
uses CHROM POS REF ALT, and dbSNP identifies variants by rsID. Converting
between them (or normalizing to one canonical form for deduplication) is a
common preprocessing step before annotation lookups elsewhere in this skill.
| Tool | When to Use | Key Parameter | Response |
|---|---|---|---|
NCBIVariation_vcf_to_spdi | Have raw VCF fields, need SPDI to enter this pipeline | chrom (RefSeq accession, e.g. NC_000019.10), pos, ref, alt | Normalized spdis[] |
NCBIVariation_spdi_to_hgvs | Have SPDI, need HGVS for a clinical report or ClinVar-style lookup | spdi | hgvs string |
NCBIVariation_hgvs_to_spdi | Have an HGVS description (g./c./r.), need SPDI or want to validate the HGVS syntax | hgvs | spdis[] (one HGVS can map to >1 SPDI across assemblies/transcripts) |
NCBIVariation_spdi_canonical | Need the single normalized/right-shifted SPDI for an indel (dedup, consistent storage) | spdi | One canonical spdi |
NCBIVariation_spdi_equivalents | Need the same variant's coordinates across GRCh37/GRCh38/RefSeqGene/transcript (liftover) | spdi | equivalents[] across coordinate systems |
NCBIVariation_rsid_lookup | Have an rsID, need genomic coordinates, gene, MANE Select transcript, and ClinVar significance in one call | rsid | grch38_placements[], genes[], clinical_significance[], mane_select_ids[] |
NCBIVariation_spdi_to_rsids | Have a genomic SPDI, need the co-located dbSNP rsID(s) (reverse of rsid_lookup) | spdi | rsids[] |
NCBIVariation_alfa_frequencies_by_rsid | Need per-ancestry allele frequencies (European/African/East Asian/South Asian/Latin American/etc.), not just one global MAF | rsid | positions[].studies[].populations[], each with allele_counts and allele_frequencies per ancestry |
Distinct from gnomAD/MyVariant frequency data above: gnomad_get_variant
and MyVariant_query_variants return population-level gnomAD frequencies;
NCBIVariation_alfa_frequencies_by_rsid is NCBI's own ALFA aggregator and
reports a different set of ancestry buckets (it will not always agree
numerically with gnomAD for the same variant) — do not treat them as
interchangeable sources for the same "population frequency" claim; state
which source (gnomAD vs. ALFA) a reported frequency came from.
Decision guide — start from what you have, land on what you need:
VCF fields → SPDI (vcf_to_spdi) → HGVS (spdi_to_hgvs) or rsID
(spdi_to_rsids); rsID → coordinates/gene/ClinVar (rsid_lookup) or
per-ancestry frequency (alfa_frequencies_by_rsid); HGVS → SPDI
(hgvs_to_spdi) if you need to re-enter the SPDI pipeline (equivalents,
canonicalization, rsID lookup).
See references/variant_notation_conversion.md for the full parameter tables, real example calls/responses, and a worked rs429358 (APOE) chain.
Five more small tool families, live-tested, that round out the clinical variant workflow: syntax validation, gene-specific curated variant lookup, canonical cross-database allele IDs, automated ACMG classification, and principal-transcript selection.
Mutalyzer — HGVS syntax validation/normalization (complements, does
not duplicate, the NCBI Variation notation-conversion tools above):
NCBIVariation_hgvs_to_spdi/spdi_to_hgvs convert BETWEEN notations;
Mutalyzer instead validates and corrects ONE HGVS string's syntax against
its actual reference sequence, translates it to predicted protein/RNA
effect, and can back-translate a protein change to its possible coding
descriptions.
| Tool | When to Use | Key Parameter | Response |
|---|---|---|---|
Mutalyzer_normalize_variant | Validate/correct an HGVS description before using it elsewhere | variant (e.g. NM_000546.6:c.215C>G) | corrected_description, predicted protein/RNA effect, gene symbol |
Mutalyzer_parse_hgvs | Break an HGVS string into its structured parts (ref sequence, coordinate system, variant type) | variant | Structured model (reference, coordinate_system, variant type/position) |
Mutalyzer_back_translate | Have a protein change (p.), need possible DNA-level descriptions | variant (e.g. NP_000537.3:p.Pro72Arg) | dna_descriptions[] (can be >1 — codon degeneracy) |
LOVD — gene-specific curated variant databases: unlike MyVariant/EVA's broad multi-gene sweep, LOVD hosts per-gene curated variant collections maintained by gene-specific curators (strong for well-studied genes like TP53/BRCA1/BRCA2, sparse or absent for others).
| Tool | When to Use | Key Parameter | Response |
|---|---|---|---|
LOVD_get_gene | Confirm a gene has an LOVD entry, get its transcript/build metadata | gene_symbol | HGNC/Entrez ID, RefSeq transcript(s), curation dates |
LOVD_get_variants | List all curated variants for a gene | gene_symbol | [] of variants with DNA/RNA/protein HGVS, hg19 position, Times_reported |
LOVD_search_variants | Look up one specific variant by LOVD DBID or DNA notation | gene_symbol + (variant_dbid OR dna_notation) | Same per-variant shape as above |
ClinGen Allele Registry — canonical cross-database allele IDs: two
tool families cover the SAME underlying registry with overlapping
functionality (verified live — same CA IDs, same external-record shape)
but different tool classes (ClinGenARTool vs ClinGenAlleleTool).
Prefer ClinGenAR_* — it has the same forward lookup/detail calls
as ClinGenAllele_* PLUS a reverse-lookup-by-external-ID capability
ClinGenAllele_* lacks. Use ClinGenAllele_* only if already in a
context using it.
| Tool | When to Use | Key Parameter | Response |
|---|---|---|---|
ClinGenAR_lookup_allele | Have an HGVS string, need the canonical CA ID | hgvs | allele_id (CA...), community-standard title |
ClinGenAR_get_external_records | Have a CA ID, need cross-references to ClinVar/dbSNP/COSMIC/gnomAD/ExAC | allele_id | external_records grouped by source database |
ClinGenAR_lookup_by_external_id | Have an rsID or ClinVar VariationID, need the CA ID (reverse of the above) | dbsnp_rs OR clinvar_variation_id (mutually exclusive) | alleles[] (can be >1 CA ID per external ID) |
GeneBe — automated ACMG/AMP classification: given raw genomic coordinates (not HGVS), returns a full ACMG verdict with the specific criteria invoked (PS3/PM1/PM2/etc.), a ClinVar cross-check, and AlphaMissense/gnomAD context in one call — useful as a fast automated first-pass classification before manual ACMG review, not a replacement for expert curation.
| Tool | When to Use | Key Parameter | Response |
|---|---|---|---|
GeneBe_classify_variant | Classify one variant by chr/pos/ref/alt | chr, pos, ref, alt, genome (hg38 default) | acmg_classification, acmg_criteria, clinvar_classification, alphamissense_score, gnomad_exomes_af |
GeneBe_classify_variants_batch | Classify up to 1000 variants in one request | variants[] (each {chr,pos,ref,alt}), genome | Per-variant ACMG results, same fields as above |
APPRIS — principal transcript/isoform selection: when a gene has multiple transcripts and a variant's coding consequence depends on which transcript is used, APPRIS tells you which isoform is functionally "principal" (by protein structure/conservation evidence) vs. alternative — useful for picking the right transcript before interpreting a coding HGVS description.
| Tool | When to Use | Key Parameter | Response |
|---|---|---|---|
APPRIS_get_isoforms | List all transcripts for a gene with PRINCIPAL/ALTERNATIVE tags | gene_id (Ensembl gene ID), species | [] per transcript with type (principal_isoform/alternative), tags |
APPRIS_get_principal_isoform | Get just the one principal transcript directly | gene_id, species | transcript_id, ccds_id, length_na |
APPRIS_get_functional_annotations | Detailed per-method evidence (firestar/spade/matador3d/corsair/etc.) behind the principal-isoform call | gene_id, species, optional methods, transcript_id | Per-method scores/annotations |
Real chained example (TP53, using the same variant coordinate
NC_000017.11:g.7674220C>T / NM_000546.6:c.743G>A across tools for a
single coherent worked path, verified live):
Mutalyzer_normalize_variant("NM_000546.6:c.215C>G") → corrected
description + predicted protein effect. LOVD_get_variants("TP53") →
real curated entries (e.g. LOVD DBID TP53_010464,
NM_000546.5:c.*2609C>A). ClinGenAR_lookup_by_external_id(clinvar_variation_id="376694")
→ real allele_id="CA16040589", title NM_000546.6(TP53):c.706T>A (p.Tyr236Asn), with COSMIC cross-references. GeneBe_classify_variant(chr="17", pos=7674220, ref="C", alt="T", genome="hg38") → real live result:
acmg_classification="Pathogenic", acmg_score=22,
dbsnp="rs11540652", alphamissense_score=0.996,
gnomad_exomes_af=6.16e-06 — cross-checks cleanly against ClinVar's own
"Pathogenic" call on the same coordinate. APPRIS_get_principal_isoform("ENSG00000141510")
→ real ccds_id="CCDS11118.1" principal transcript for TP53.
LD measures non-random co-inheritance of alleles at different loci — essential for GWAS interpretation (is a hit variant itself causal, or just correlated with the real causal variant?) and fine-mapping (which variants in a locus should be tested together).
| Tool | When to Use | Key Parameters | Response |
|---|---|---|---|
EnsemblLD_get_ld_variants | Find every variant in LD with one query variant, in one population | variant_id (rsID), population (1000GENOMES:phase_3:<POP>), optional r2_threshold/d_prime_threshold/limit | ld_variants[] sorted by r2 descending; truncated/total_ld_count — raise limit if truncated |
EnsemblLD_get_ld_pairwise | Check whether two SPECIFIC variants are correlated, across every 1000 Genomes population at once | variant1, variant2 (rsIDs) | ld_by_population[], each with r2/d_prime — LD can differ sharply by ancestry (verified live: rs6792369/rs1042779 showed r2=1.0 in some populations, 0.84 in others) |
EnsemblLD_get_ld_region | Full pairwise LD matrix among ALL variants in a window | region (chr:start..end, GRCh38, <=1Mb), population | ld_pairs[] — this is the LD matrix input to statistical fine-mapping (SuSiE, FINEMAP) and LD-aware clumping |
EnsemblLD_get_ld_variants(variant_id="rs429358", population="1000GENOMES:phase_3:CEU", r2_threshold=0.5)
# -> real: LD partners for the APOE variant (rs429358, also used in
# Variant Notation Conversion and EVA above) in the CEU population
Live-verified response times: 2-8s for get_ld_variants/get_ld_pairwise,
similar for small get_ld_region windows — no special timeout handling
needed.
| Tool | When to Use | Key Parameters | Response |
|---|---|---|---|
EnsemblMap_convert_coordinates | Migrate a variant/BED interval between genome assemblies (e.g. GRCh37 -> GRCh38) | species, source_assembly, chromosome, start, end, target_assembly | mappings[] with original/mapped blocks, each carrying seq_region_name/start/end/strand |
EnsemblMap_translate_coordinates | Map a protein amino-acid range or transcript cDNA-position range to genomic coordinates | ensembl_id (ENSP* for protein, ENST* for cDNA), start, end (1-based, in that coordinate space) | mappings[] of genomic coordinates, one entry per exon the range spans |
EnsemblMap_convert_coordinates(species="human", source_assembly="GRCh37",
chromosome="7", start=140453136, end=140453136, target_assembly="GRCh38")
# -> real: BRAF V600E's GRCh37 position 7:140453136 maps to GRCh38 7:140753336
EnsemblMap_translate_coordinates(ensembl_id="ENSP00000269305", start=100, end=200)
# -> real: TP53 protein residues 100-200 map to 3 exons at
# chr17:7674931-7676071 (GRCh38) — use this before designing an assay
# or interpreting a reported amino-acid range against the genome
Live-verified timing: convert_coordinates is fast (7-24s);
translate_coordinates can take up to ~60s — use a generous timeout
rather than assuming a slow response is a failure.
Generic Ensembl-ID housekeeping tools, useful whenever a variant-analysis workflow needs to resolve, validate, or contextualize a gene/transcript ID rather than annotate a specific variant.
| Tool | When to Use | Key Parameters | Response |
|---|---|---|---|
EnsemblArchive_get_id_history | Check whether a stable ID (ENSG*/ENST*/ENSP*) is still current, and what replaced it if not | ensembl_id | is_current, latest_version, current_release, possible_replacement[] |
EnsemblArchive_batch_lookup | Same check for up to 50 IDs at once | ensembl_ids (comma-separated) | entries[], one per ID |
Ensembl_get_region_features | Everything overlapping a genomic window — genes, transcripts, regulatory elements, constrained elements | region, species, feature_types (comma-separated: gene,transcript,regulatory,constrained,variation,repeat,motif) | features[], type_summary |
Ensembl_get_gene_overlapping_features | Everything co-located with one gene (overlapping genes, transcript isoforms, regulatory features at that locus) | gene_id, feature_types | features[], type_summary |
Ensembl_get_cross_references | Map an Ensembl ID to HGNC/EntrezGene/UniProt/OMIM/Reactome/GeneCards and other external DB records | ensembl_id, optional external_db filter | xrefs[] with dbname/primary_id/display_id, database_summary |
Ensembl_lookup_gene_by_symbol | Resolve a gene symbol to its Ensembl gene/transcript/protein IDs | symbol, species | ensembl_ids[] with id/type |
Ensembl_get_assembly_info | Genome assembly metadata for a species (assembly name/accession, karyotype, coordinate-system versions) | species (e.g. homo_sapiens) | assembly_name, karyotype[], coordinate_system_versions[] |
Ensembl_get_species_info | Discover which genomes/assemblies Ensembl has available, by name/common-name/taxon-ID search | search (optional — omit to list all 348+ species) | species[] with taxon_id, assembly, division |
Honesty note on reliability (live-verified across repeated attempts, not assumed from one run):
EnsemblArchive_*, Ensembl_get_cross_references, and
Ensembl_get_assembly_info/Ensembl_get_species_info are genuinely
working endpoints but slow and occasionally transiently flaky —
first attempts sometimes returned a fast HTTP 500/timeout that
succeeded cleanly on retry with a longer timeout (60-90s). Retry once
with a longer timeout before reporting these as broken.Ensembl_get_region_features reproducibly fails (HTTP 500) when
feature_types combines multiple values (e.g. "gene,regulatory") for
at least the TP53 region, while each feature type alone
("gene" or "regulatory" separately) succeeds every time. Workaround:
query one feature type per call and merge the results client-side rather
than trusting a combined multi-type query.Ensembl_lookup_gene_by_symbol is confirmed broken upstream, not a
ToolUniverse bug: it consistently returns Ensembl's website HTML error
page (not JSON) instead of a real response, reproduced across multiple
attempts and multiple symbols (TP53, BRCA1) — and independently
confirmed via a direct curl to the same xrefs/symbol/<species>/<symbol>
endpoint outside ToolUniverse entirely, which also hung/failed. Do not
fabricate a symbol-to-ID mapping if this tool fails — use
Ensembl_get_cross_references in the other direction (Ensembl ID ->
external names) if you already have an ID, or resolve the symbol via
another already-documented tool (e.g. NCBIVariation_rsid_lookup's
genes[] field, or MyGene/UniProt lookups elsewhere in ToolUniverse)
instead.Ensembl_get_cross_references(ensembl_id="ENSG00000141510")
# -> real: TP53's HGNC/EntrezGene/UniProt/OMIM/Reactome cross-references
# (157 xrefs across 11 databases, verified live)
Ensembl_get_region_features(region="7:140424943-140524564", feature_types="gene")
Ensembl_get_region_features(region="7:140424943-140524564", feature_types="regulatory")
# -> query separately and merge; the combined "gene,regulatory" form
# 500s on this region (see reliability note above)
# Quick summary
report = variant_analysis_pipeline("input.vcf", output_file="report.md")
# Filtered analysis
report = variant_analysis_pipeline("input.vcf",
filters=FilterCriteria(min_vaf=0.1, min_depth=20, pass_only=True))
# Annotated report (top 50 variants with ClinVar/gnomAD/CADD)
report = variant_analysis_pipeline("input.vcf", annotate=True, max_annotate=50)
pandas vs python_implementation: Use python_implementation for parsing/classification/annotation, then convert to DataFrame for custom aggregations:
vcf_data = parse_vcf("input.vcf")
passing, _ = filter_variants(vcf_data.variants, criteria)
df = variants_to_dataframe(passing, sample="TUMOR")
scripts/gatk_haplotypecaller_pipeline.py — BWA + HaplotypeCaller + SNP/indel counterscripts/coding_variant_filter.py — per-sample exome variant counter with intronic/UTR exclusionscripts/variant_fraction.py — VAF + coding-denominator fraction calculatorscripts/parse_vcf.py, scripts/filter_variants.py, scripts/annotate_variants.pyQUICK_START.mdClinical variant export spreadsheets often have 2-row headers (a category row like Variant Info / Flags / Father (185-PF) / RefSeq Genes 110, NCBI above a sub-label row like Chr:Pos / Variant Allele Freq / Sequence Ontology (Combined)). Parse with pd.read_excel(path, header=[0,1]) and address columns via tuples, e.g. df[('Father (185-PF)', 'Variant Allele Freq')]. A single-row header leaves sub-columns as Unnamed:_N and silently misses VAF / Sequence Ontology data.
When a question asks what fraction of variants at some VAF / filter threshold are annotated with a Sequence Ontology term (e.g., synonymous_variant), the denominator is the CODING subset, not "all variants" (which is dominated by intronic records).
CODING = {
"synonymous_variant", "missense_variant", "splice_region_variant",
"stop_gained", "stop_lost", "start_lost",
"frameshift_variant", "inframe_insertion", "inframe_deletion",
}
NON_CODING = { # explicitly excluded
"intron_variant", "3_prime_UTR_variant", "5_prime_UTR_variant",
"upstream_gene_variant", "downstream_gene_variant", "intergenic_variant",
}
Note splice_region_variant IS coding (affects coding sequence at splice boundaries) — include it.
❌ WRONG: count(VAF<0.3 AND synonymous) / count(VAF<0.3) — denominator pollutes with intronic/UTR
✅ RIGHT: count(VAF<0.3 AND synonymous) / count(VAF<0.3 AND CODING) — denominator restricted to coding
Filter via df[df['Sequence Ontology (Combined)'].isin(CODING)], NOT by excluding NON_CODING labels — the latter over-counts because some labels (e.g. 5_prime_UTR_premature_start_codon_gain_variant) aren't in either set.
Sanity: synonymous variants are typically about half of coding variants in human exomes. If your "synonymous fraction" is much lower than ~0.4, your denominator likely still includes intronic/UTR — restrict to CODING and recompute.
Bundled tool: tu run coding_variant_fraction '{"file":"variants.xlsx","vaf_threshold":0.3,"annotation":"synonymous_variant","header_rows":2}' — handles 2-row headers and the CODING allowlist automatically.
Only when you call it by name. Your agent never loads it on its own. Use for VCF parsing, variant fraction calculations (denominator = coding subset only, NOT all variants), and per-sample mutation profiling.
Published skills whose descriptions closely match this one, with their headline benchmark lift.
Skills that do similar work, with their headline benchmark lift.
From the same source and nearby in the catalogue.