Learn R Programming

mlPhaser (version 0.01)

tableGenoToList: Convert genotype table to list of lists

Description

Converts a table of genotypes to a list of lists, one sub-list per genotype.

Usage

tableGenoToList(genoTable, locusNames)

Arguments

genoTable
A data.frame containg genotypes. One row per genotype. Multiple columns per locus as per the ploidy.
locusNames
A character vector of locus names.

Value

genotypes as a list of lists

Details

Converts a table of genotypes to a list of lists, one sub-list per genotype.