idsToList: Convert an ID table into a population list

Description Usage Arguments Value

View source: R/helperFunctions.R

Description

Takes a data frame converting individual identifiers into cluster ids, and returns this same structure. The cluster ids (and individual ids within each cluster id) appear in the same order they appeared in the data.

Usage

1
idsToList(ids)

Arguments

ids

A data frame containing 2 or more columns. The first are individual identifiers, the second are population identifiers. Any further columns are ignored. NB: Chromopainter excludes individuals in the third column that have a 0; you are advised to do this before passing to this function.

Value

A list of populations, named by the population identifiers. Each is a chartacter vector of the individual identifiers in each population.


danjlawson/badMIXTURE documentation built on Sept. 27, 2019, 9:11 p.m.