CollapsABEL (version 0.10.11)

collapseMat: Collapse two genotype matrices, column by column

Description

Each column is assummed to be the genotype for a SNP. The two genotype matrices should have the same size.

Usage

collapseMat(m1, m2, collapse_matrix = matrix(c(0L, 0L, 0L, 0L, 0L, 1L, 1L, 1L, 0L, 1L, 0L, 3L, 0L, 1L, 3L, 3L), 4, 4))

Arguments

m1
first genotype matrix
m2
second genotype matrix
collapse_matrix
collapsed genotype matrix

Value

collapsed genotyp matrix