High level simulation functionsThese are functions that are intended for use by the user when preparing inputs for a gscramble simulation and for conducting those simulation. |
|
---|---|
Create a GSP from user inputs about what type of hybrids from which populations to create hybrids |
|
Segregate segments down genomic simulation pedigrees |
|
Map alleles from scrambled founders to the sampled segments from a GSP. |
|
Renumber GSP members by adding a constant to each |
|
Functions for summarizing and visualizing simulation results or inputsThese are just a few functions to summarize the results from gscramble simulations or to visualize GSPs. |
|
return the admixture fractions of sampled individuals |
|
Plot the simulated chromosomes of an individual |
|
Write a dot file to represent a genome simulation pedigree |
|
Data input and output functionsThese functions help to get data in PLINK format into gscramble, and also converting gscramble objects into PLINK or newhybrids input files. |
|
read plink-formatted .map and .ped files into 'gscramble' format |
|
Write 'gscramble' I_meta, M_meta, and Geno to a plink file |
|
Convert a PLINK map file to 'gscramble' RecRates bins in a tibble |
|
Convert 'gscramble' output to newhybrids format |
|
Functions for checking the formatting and validity of inputsThese functions, some of which are used internally by other functions, can let the user check to see if their inputs are OK. |
|
check that the chromosome lengths are acceptable given recombination rates |
|
Check that GSP does not reuse genetic material and yet uses all of it |
|
Check the a GSP (in prepped list format) for inbreeding loops |
|
check that the RepPop is formatted correctly |
|
Example data objectsThese data objects are provided as examples of the inputs to gscramble. They are used in the vignettes as well. |
|
Genotype matrix of 78 individuals and 100 SNP markers |
|
Metadata for 78 individuals |
|
Metadata for 100 molecular markers |
|
Recombination rate data for many roughly 1 Mb bins |
|
Tibble holding specification for a 7 member genomic permutation pedigree. |
|
Example Genomic Simulation Pedigree, GSP, with 13 members |
|
A simple example of a reppop table |
|
Another simple example of a reppop table |
|
A list of tibbles specifying the pedigrees available from |
|
Example of a segments tibble |
|
Tibble holding specification for a 5 member genomic permutation pedigree. |
|
Lengths of the three chromosomes used in the example data set |
|
Low-level functionsThese are functions that are not intended for use by the general user, but they are included in the documentation for the interest of developers and they are exported in the package to help with debugging and development. |
|
High level function for dropping segments down a GSP |
|
makes a two-column matrix for subscripting alleles out of a genotype matrix |
|
Scramble a matrix of genotype data |
|
Take the output of rearrange_genos and permute everyone by population |
|
Take a gsp in tibble form and make a list suitable for gene dropping |
|
rearrange genotypes into separate columns for each haplotype. |
|
Randomly sample the positions of recombinations on a chromosome |
|
Takes a gamete in segment format and returns a tibble with Pop and indiv_index |
|
Segregate haplotypes through a genome simulation pedigree list |
|
computes the simulation-level founder haplotype index for each founder haplo |
|
takes the waka_waka table and returns a simple tibble with results for each sampled "hybridized" gamete from each chromosome #' Not yet documented |
|
internal function to do crossovers and create recombinations |