Learn R Programming

admixturegraph (version 1.0.2)

project_to_population: Map sample names to population names.

Description

Map sample names to population names.

Usage

project_to_population(data, f)

Arguments

data
The data frame to modify.
f
Function mapping sample names to population names.

Details

This function maps the sample names in W, X, Y, and Z to population names (typically what an admixture graph has for leaves) and stores the original sample names so we can map them back again after using the graph for making predictions.