Bind two SnpMatrices with overlapping SNPs but distinct samples.

snpmatrix.combine(X, Y)

Arguments

X

a SnpMatrix

Y

a SnpMatrix with some snps overlapping X, but no samples overlapping

Value

a new SnpMatrix formed from X and Y. SNPs found in only one dataset will have missing genotypes in the other

Details

BEWARE: it is assumed that alleles are aligned, and NO CHECK is made. Combining SnpMatrices with alleles aligned to opposite strands will produce a meaningless result.