\name{snp.compare} \alias{snp.compare} %- Also NEED an '\alias' for EACH other topic documented here. \title{ function to do compare two snp.matrix class object } \description{ Currently this function just counts how many genotypes differ, for each SNP, and output named integer counts, and the signed call differences. } \usage{ snp.compare(obj1, obj2) } %- maybe also 'usage' for other objects documented here. \arguments{ \item{obj1}{a \code{\link{snp.matrix-class}} object } \item{obj2}{another \code{\link{snp.matrix-class}} object } } \details{ The two \code{\link{snp.matrix-class}} objects must have the same row and column names; e.g. from the same raw data clustered with two different calling algorithms. } \value{ named integer vector of the counts of differed genotypes, and the signed call differences, for each SNP } \author{Hin-Tak Leung \email{htl10@users.sourceforge.net}} \examples{ load(system.file("data/Genotypes.GenTrain1.Rda",package="snpMatrix")) load(system.file("data/Genotypes.GenTrain2.Rda",package="snpMatrix")) a<- snp.compare(GenTrain1, GenTrain2) hist(a$count,breaks=50,col='black') } \keyword{manip}