Skip to content
Snippets Groups Projects
Commit ce52f22c authored by Vincent  LAVILLE's avatar Vincent LAVILLE
Browse files

Update correlationMatrix.R

parent 3d36be92
No related branches found
No related tags found
No related merge requests found
...@@ -138,7 +138,7 @@ getGenoCorMatrix <- function(lrsid, lchr, lpos, lrefall, pop, path = NULL, web = ...@@ -138,7 +138,7 @@ getGenoCorMatrix <- function(lrsid, lchr, lpos, lrefall, pop, path = NULL, web =
lind <- lind[lind$Paternal.ID == 0 & lind$Maternal.ID == 0, 2] lind <- lind[lind$Paternal.ID == 0 & lind$Maternal.ID == 0, 2]
testMat <- getAdditivelyCodedMatrix(genoMat,lind) testMat <- getAdditivelyCodedMatrix(genoMat,lind)
testMat <- testMat[-which(apply(testMat, 1, sd) == 0, ] testMat <- testMat[-which(apply(testMat, 1, sd) == 0), ]
to_remove <- NULL to_remove <- NULL
for (i in 1:nrow(testMat)) { for (i in 1:nrow(testMat)) {
if (!(rownames(testMat)[i] %in% lrsid)) { if (!(rownames(testMat)[i] %in% lrsid)) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment