Created
October 7, 2019 18:51
-
-
Save monogenea/98de408819cb19ebb8288617eb98366c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Choose trait for association analysis, use colnames(genData$LIP) for listing | |
# NOTE: Ignore the first column of genData$LIP (gender) | |
target <- "Cholesterol" | |
phenodata <- data.frame("id" = rownames(genData$LIP), | |
"phenotype" = scale(genData$LIP[,target]), stringsAsFactors = F) | |
# Conduct GWAS (will take a while) | |
start <- Sys.time() | |
GWAA(genodata = genData$SNP, phenodata = phenodata, filename = paste(target, ".txt", sep = "")) | |
Sys.time() - start # benchmark |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment