Inference Algorithms#
ARGscape provides access to multiple spatial and temporal inference algorithms for estimating ancestral locations and node times. This guide explains each algorithm, when to use them, and their accuracy vs. speed tradeoffs.
Overview#
Inference algorithms in ARGscape fall into two categories:
Category |
Purpose |
Algorithms |
|---|---|---|
Spatial |
Infer geographic locations of ancestors |
FastGAIA, Geoancestry (GAIA), SPARG, Spacetrees, Midpoint |
Temporal |
Infer times (ages) of ancestral nodes |
Tsdate |
Note
Availability by interface:
Python API (
argscape.infer()): Midpoint, FastGAIA, GAIA, TsdateCLI (
argscape infer): Midpoint, FastGAIA, GAIA, SPARGWeb App: All algorithms including SPARG and Spacetrees
Spatial Inference Algorithms#
FastGAIA#
Parameters#
Parameter |
Type |
Default |
Description |
|---|---|---|---|
|
bool |
|
Weight by genomic span of edges |
|
bool |
|
Weight by branch length (time) |
GAIA Quadratic / Linear#
Parameters#
Parameter |
Type |
Default |
Description |
|---|---|---|---|
|
bool |
|
Incorporate branch lengths in parsimony calculation |
SPARG#
Note
SPARG is available in the CLI and web app only. It is not exposed in the Python API.
Output Information#
SPARG returns additional information:
dispersal_rate: Estimated dispersal rate matrixnum_inferred_locations: Number of ancestors located
Spacetrees#
Note
Spacetrees is available in the web app only. It is not exposed in the Python API or CLI.
Parameters#
Parameter |
Type |
Default |
Description |
|---|---|---|---|
|
float |
None |
Only infer locations for ancestors younger than this |
|
list |
None |
Specific times to locate ancestors (None = all unique node times) |
|
bool |
|
Weight trees by coalescent probability |
|
bool |
|
Only use trees where all samples coalesce |
|
float |
None |
Effective population size (constant) |
|
list |
None |
Time boundaries for varying Ne |
|
list |
None |
Ne values for each epoch |
|
bool |
|
Use BLUP instead of MLE |
|
bool |
|
Also return variance estimates |
Midpoint Inference#
Parameters#
Parameter |
Type |
Default |
Description |
|---|---|---|---|
|
bool |
|
Weight by genomic span of edges |
|
bool |
|
Weight by branch length |
Temporal Inference#
Tsdate#
Parameters#
Parameter |
Type |
Default |
Description |
|---|---|---|---|
|
float |
|
Per-site, per-generation mutation rate |
|
bool |
|
Apply preprocessing steps |
|
bool |
|
Remove telomeric regions |
|
float |
None |
Minimum gap size for splitting |
|
bool |
|
Split disjoint trees |
See Also#
argscape.visualize() - Main visualization API
3D Spatial Visualization - 3D spatial visualization tutorial
argscape infer - CLI for running inference