read_individual_genomes: Read individual whole genome data

View source: R/read_individual_genomes.R

read_individual_genomesR Documentation

Read individual whole genome data

Description

Reads individual genome data and assembles them into a tibble.

Usage

read_individual_genomes(
  root,
  individual_variables = NULL,
  individual_ncols = NULL,
  locus_variables = NULL,
  locus_architecture = FALSE
)

Arguments

root

Path to the simulation folder

individual_variables, individual_ncols

Variables to be passed to read_individuals

locus_variables, locus_architecture

Variables to be passed to read_loci

Details

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.

Value

A tibble containing the simulation data

See Also

read_individuals, read_loci, read_architecture

Examples


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")


rscherrer/speciomer documentation built on March 11, 2023, 5:37 p.m.