tableHaploToList: Haplotype table to haplotype list

Description Usage Arguments Details Value

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

1
2
  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

Details

Summary paragraph outlining method

Value

Haplotypes as a list of lists.


mlPhaser documentation built on May 2, 2019, 7:59 a.m.