Education
Simulate Wright–Fisher genetic drift across many replicate populations with mutation and selection. Visualize drift trajectories, the final-frequency distribution, heterozygosity decay Hₜ = H₀(1−1/2Nₑ)ᵗ, and run a Hardy–Weinberg chi-square test.
Call this tool from your code in three languages.
curl -X POST 'https://api.elysiatools.com/en/api/tools/wright-fisher-population-drift-and-allele-frequency-tutor' \
-H 'Content-Type: application/json' \
-d '{"N":100,"ploidy":"diploid","generations":100,"reps":40,"p0":0.5,"mu":0,"s":0,"dominance":"additive","seed":42,"hwAA":0,"hwAa":0,"hwaa":0}'Send a POST request with your inputs as JSON. File parameters require a separate upload first.
POST https://api.elysiatools.com/en/api/tools/wright-fisher-population-drift-and-allele-frequency-tutor| Name | Type | Required | Description |
|---|---|---|---|
| N | number | No | — |
| ploidy | select | No | — |
| generations | number | No | — |
| reps | number | No | — |
| p0 | number | No | — |
| mu |
Add this tool to your Model Context Protocol server so AI agents can list and call it.
Add this block to your MCP client configuration:
{
"mcpServers": {
"elysiatools-wright-fisher-population-drift-and-allele-frequency-tutor": {
"name": "wright-fisher-population-drift-and-allele-frequency-tutor",
"description": "Simulate Wright–Fisher genetic drift across many replicate populations with mutation and selection. Visualize drift trajectories, the final-frequency distribution, heterozygosity decay Hₜ = H₀(1−1/2Nₑ)ᵗ, and run a Hardy–Weinberg chi-square test.",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=wright-fisher-population-drift-and-allele-frequency-tutor",
"command": "",
"args": [],
"env": {},
"isActive": true,
"type": "sse"
}
}
}After connecting to the SSE endpoint, list the exposed tools:
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/list"
}Invoke the tool by its id, passing arguments built from its parameters:
{
"jsonrpc": "2.0",
"id": 2,
"method": "tools/call",
"params": {
"name": "wright-fisher-population-drift-and-allele-frequency-tutor",
"arguments": {
"N": 100,
"ploidy": "diploid",
"generations": 100,
"reps": 40,
"p0": 0.5,
"mu": 0,
"s": 0,
"dominance": "additive",
"seed": 42,
"hwAA": 0,
"hwAa": 0,
"hwaa": 0
}
}
}| number |
| No |
| — |
| s | number | No | — |
| dominance | select | No | — |
| seed | number | No | — |
| hwAA | number | No | — |
| hwAa | number | No | — |
| hwaa | number | No | — |
HTML result
{
"result": "<div>Processed HTML content</div>",
"error": "Error message (optional)",
"message": "Notification message (optional)",
"metadata": {
"key": "value"
}
}Questions or issues? Contact [email protected]