Skip to content

Commit

Permalink
Update convertPedigree.R
Browse files Browse the repository at this point in the history
tweak commenting
  • Loading branch information
smasongarrison committed May 1, 2024
1 parent 9446650 commit 764bd0e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion R/convertPedigree.R
Original file line number Diff line number Diff line change
Expand Up @@ -170,10 +170,14 @@ ped2com <- function(ped, component,
cat("Doing tcrossprod\n")
}
if(tcross.alt.crossprod){
cat("Doing alt tcrossprod crossprod t \n")
if (verbose){
cat("Doing alt tcrossprod crossprod t \n")
}
r <- crossprod(t(as.matrix(r2)))
}else if(tcross.alt.star){
if (verbose){
cat("Doing alt tcrossprod %*% t \n")
}
r <- r2 %*% t(as.matrix(r2))
}else{
r <- Matrix::tcrossprod(r2)
Expand Down

0 comments on commit 764bd0e

Please sign in to comment.