Learn R Programming

mlPhaser (version 0.01)

tableHaploToList: Haplotype table to haplotype list

Description

Converts a data.frame of haplotypes to a list of lists with haplotypes at the top level and list of loci (with their alleles) beneath.

Usage

tableHaploToList(haploTable, locusNames = colnames(haploTable))

Arguments

haploTable
A data.frame of alleles making up the haplotypes. One columm per locus, one row per haplotype. The rownames should contain the haplotype ids.
locusNames
A character vector giving the names of the loci which should match the column names of the haploTable

Value

Haplotypes as a list of lists.

Details

Summary paragraph outlining method