tabToListRef {casesolver}R Documentation

tabToListRef

Description

Function to convert a matrix to list format.

Usage

tabToListRef(tab, ln = NULL, setEmpty = FALSE)

Arguments

tab

A (nR x nL) matrix with rows giving locus specific genotypes (for each column) for references

ln

Loci names of return list

setEmpty

Whether genotypes with one allele is set as empty or not (then set as homozygous)

Details

Used to convert reference data stored in matrix to list format required by functions.

Value

List format of references refL[[refname]][[locname]]$adata


[Package casesolver version 1.8.0 Index]