read_loci_by_edge: Read locus-wise variables on a per-edge basis

View source: R/read_loci_by_edge.R

read_loci_by_edgeR Documentation

Read locus-wise variables on a per-edge basis

Description

Reads locus-specific data through time and rearranges the output tibble with one row per edge instead of one row per locus.

Usage

read_loci_by_edge(root, variables)

Arguments

root

Path to the simulation folder

variables

What variables to read

Details

Uses internally read_loci with architecture = TRUE, then reads the network architecture (the edges tibble returned by read_architecture) to reformat.

Value

A tibble

Note

Assumes that the genetic architecture file is present.

See Also

read_loci, read_architecture, get_locus_data_n

Examples


root <- system.file("extdata", "sim-example", package = "speciomer")
read_loci_by_edge(root, "Fst")


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