Using spip and summarizing its outputFunctions for running a spip simulation, reading its output back into R, and processing the output into pairs of related samples |
|
---|---|
Download the spip binary and install it where CKMRpop expects it |
|
Run spip in a user-specified directory |
|
Read in the pedigree, census, and sampling information from the spip run |
|
compile pairwise relationships from the samples |
|
return TRUE if spip exists where it should be installed. |
|
print the abbreviated usage information from spip |
|
print the full usage information from spip |
|
downsample the number of individuals sampled |
|
Designing spip parametersFunctions for obtaining spip parameters desired for simulating given situations |
|
Return a Leslie-like matrix from the spip parameters |
|
Visualizing simulation resultsHigh-level functions for visualizing the results of spip simulations |
|
Count up the number of different kinds of related pairs and make a plot |
|
Count and plot the number of mates each individuals has produced offspring with |
|
Just a simple plot function |
|
plot the graph showing the connected components |
|
Summarize the distribution of number of offspring and number of mates |
|
Summarize annual sex-and-age-specific survival rates from the census information |
|
Summarise kin-pair information and use it to create uncooked spaghetti plots |
|
Helper functionsLow-level functions used in some of the above functions. Most users will typically not interact with these functions directly. |
|
plot an ancestry matrix (or multiple such matrices) from its (their) matrix form |
|
convert an ancestry-matching matrix to a ggplot-able tibble |
|
Return the perimeters of all the relationship zones |
|
Example package dataPackage data sets that are used in the examples: either parameter values or examples of spip output. |
|
a list of life-history / life-table data for a hypothetical species |
|
a list of life-history / life-table data for another hypothetical species |
|
The result of running spip in the species_1_simulation vignette. |
|
The result of running spip in the species_1_simulation vignette with 100 loci. |
|
The result of running spip in the species_1_simulation vignette and slurping out with num_generations = 1. |
|
The result of running spip and slurping the output in the three population case with no migration |
|
The result of running spip and slurping the output in the three population case with migration |
|
The result of running spip with growth 0.01 in the population-growth-with-spip vignette |
|
The result of running spip with growth -0.005 in the population-growth-with-spip vignette |
|
Helper package dataPackage data sets that define values used primarily internally in functions or for some external examples |
|
A tibble like that produced by |
|
a list of examples of ancestry-match matrices |
|
A half-first cousin ancestry match matrix |
|
Minimum number of generations for the ancestry match matrix to include relationship types |
|
relationship zone names |
|
Find relatives amongst samples from their ancestor vectors |