population_graph: Convience function to create population graph object from...

View source: R/population_graph.R

population_graphR Documentation

Convience function to create population graph object from genotypes.

Description

This function is a convience function that wraps together the subset_loci() (potentially) function with the popgraph::popgraph() function (and translations from genotypes to multivariate data).

Usage

population_graph(x, stratum = "Population", numLoci = NULL, ...)

Arguments

x

A data.frame with locus objects

stratum

The stratum column to use as the Node designation (default="Population").

numLoci

If not NULL then how many randomly selected loci (fewer than the total) to use in the estimation.

...

Other parameters passed to the popgraph::popgraph() function.


dyerlab/gstudio documentation built on Feb. 2, 2024, 8:24 p.m.