snpmatrix.combine.Rd
Bind two SnpMatrices with overlapping SNPs but distinct samples.
snpmatrix.combine(X, Y)
X | a SnpMatrix |
---|---|
Y | a SnpMatrix with some snps overlapping X, but no samples overlapping |
a new SnpMatrix formed from X and Y. SNPs found in only one dataset will have missing genotypes in the other
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.