We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 248ef13 commit 5b36b3eCopy full SHA for 5b36b3e
R/pairsnp/R/snp_dist.R
@@ -41,7 +41,7 @@ snp_dist <- function(sparse.data, compare.n=FALSE){
41
} else {
42
total.n <- colSums(sparse.data$snp.matrix==5)
43
44
- n.cols.submatrix <- 1*(sparse.data$snp.matrix>0)[sparse.data$consensus==4,]
+ n.cols.submatrix <- 1*(sparse.data$snp.matrix>0)[sparse.data$consensus==5,]
45
cons.snps.N <- as.matrix(tcrossprod(t(n.cols.submatrix)))
46
tot.cons.snps.N <- colSums(n.cols.submatrix)
47
tot.cons.snps.N <- (matrix(rep(tot.cons.snps.N, n.isolates), nrow = n.isolates, byrow = TRUE) +
0 commit comments