View source: R/read_individual_genomes.R
read_individual_genomes | R Documentation |
Reads individual genome data and assembles them into a tibble.
read_individual_genomes( root, individual_variables = NULL, individual_ncols = NULL, locus_variables = NULL, locus_architecture = FALSE )
root |
Path to the simulation folder |
individual_variables, individual_ncols |
Variables to be passed to |
locus_variables, locus_architecture |
Variables to be passed to |
The files "individual_whole_genomes.dat" and "individual_locus_genvalues.dat"
are read and assembled into an individual-and-locus-wise tibble. The individual_*
and locus_*
arguments allow to read extra individual-wise or locus-wise
variables, respectively, and append them to the tibble as metadata. Then, these
arguments are passed down to the functions read_individuals
and
read_loci
, respectively, as variables
, ncols
and architecture
.
See ?read_individuals
and ?read_loci
for details.
A tibble containing the simulation data
read_individuals
, read_loci
, read_architecture
root <- system.file("extdata", "sim-indiv-genomes", package = "speciomer") read_individual_genomes(root) read_individual_genomes(root, "individual_ecotypes") read_individual_genomes(root, locus_variables = "locus_Fst")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.