Guest User

Untitled

a guest
Nov 20th, 2018
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. pvals <- numeric(nrow(SNP))
  2.  
  3. for(i in 1:nrow(SNP)) {
  4.  
  5. fit <- cor.test(vector, as.numeric(SNP[i,c(4:50)]), method='spearman', exact=FALSE)
  6.  
  7. pvals[i] <- fit$p.value
  8.  
  9. names(pvals)[i] <- paste(SNP$V1[i], SNP$V2[i])
  10.  
  11. }
Add Comment
Please, Sign In to add comment