Education
Epistasis Ratio Calculator (modified dihybrid ratios)
Compute modified F2 phenotypic ratios from two-locus gene interaction: 9:7, 9:3:4, 12:3:1, 13:3, 15:1, 9:6:1 or 9:3:3:1, with expected counts and optional chi-square goodness-of-fit. Derived from Mendel 1866, Bateson & Punnett 1905, Griffiths, Hartl & Clark 2007. Educational use only.
Quick start
Call this tool from your code in three languages.
curl -X POST 'https://api.elysiatools.com/en/api/tools/epistasis-ratio-calculator' \
-H 'Content-Type: application/json' \
-d '{"interactionType":"complementary","totalOffspring":160,"observedCounts":"e.g. 315, 108, 101, 32 (order follows the classes above)","decimalPlaces":4}'API reference
Send a POST request with your inputs as JSON. File parameters require a separate upload first.
Endpoint
POST https://api.elysiatools.com/en/api/tools/epistasis-ratio-calculatorParameters
| Name | Type | Required | Description |
|---|---|---|---|
| interactionType | select | Yes | Type of gene interaction between the two loci. |
| totalOffspring | number | Yes | Total number of F2 individuals used to convert ratios into expected counts. |
| observedCounts | text | No | Optional comma-separated observed counts, one per phenotypic class, for a chi-square goodness-of-fit test. |
| decimalPlaces | number | No | — |
Response format
JSON result
MCP integration
Add this tool to your Model Context Protocol server so AI agents can list and call it.
Server configuration
Add this block to your MCP client configuration:
{
"mcpServers": {
"elysiatools-epistasis-ratio-calculator": {
"name": "epistasis-ratio-calculator",
"description": "Compute modified F2 phenotypic ratios from two-locus gene interaction: 9:7, 9:3:4, 12:3:1, 13:3, 15:1, 9:6:1 or 9:3:3:1, with expected counts and optional chi-square goodness-of-fit. Derived from Mendel 1866, Bateson & Punnett 1905, Griffiths, Hartl & Clark 2007. Educational use only.",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=epistasis-ratio-calculator",
"command": "",
"args": [],
"env": {},
"isActive": true,
"type": "sse"
}
}
}List available tools
After connecting to the SSE endpoint, list the exposed tools:
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/list"
}Call this tool
Invoke the tool by its id, passing arguments built from its parameters:
{
"jsonrpc": "2.0",
"id": 2,
"method": "tools/call",
"params": {
"name": "epistasis-ratio-calculator",
"arguments": {
"interactionType": "complementary",
"totalOffspring": 160,
"observedCounts": "e.g. 315, 108, 101, 32 (order follows the classes above)",
"decimalPlaces": 4
}
}
}