Learn R Programming

mappoly (version 0.4.1)

ph_list_to_matrix: Linkage phase format conversion: list to matrix

Description

This function converts linkage phase configurations from list to matrix form

Usage

ph_list_to_matrix(L, ploidy)

Value

a matrix whose columns represent homologous chromosomes and the rows represent markers

Arguments

L

a list of configuration phases

ploidy

ploidy level