- dat <- matrix(sample(c("A", "T", "G", "C"), 10*3, replace = TRUE), ncol = 3)
- pairwise.comparison <- matrix(nrow = nrow(dat), ncol = nrow(dat))
- for (j in 1:nrow(dat)) {
- equal <- (dat[j, ] == t(dat))
- equal.cnt <- colSums(equal)
- pairwise.comparison[j, ] <- equal.cnt
- }


雷达卡




京公网安备 11010802022788号







