Skip to content

Commit c5ac17b

Browse files
committed
updated: comments and sanity checks
1 parent 6eb5f08 commit c5ac17b

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

introduction_to_animal_breeding/notebooks/8.gwas_basic_models.Rmd

+6-2
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ load("../data/pca.RData")
125125
names(res)
126126
127127
npcs = length(res$sdev)
128-
print(paste("The total number of PCs is", npcs, ": can you guess why?"))
128+
print(paste("QUESTION: The total number of PCs is", npcs, ": can you guess why?"))
129129
```
130130

131131
#### Eigenvalues
@@ -145,7 +145,7 @@ sum(variance[c(1:3)])
145145

146146
```{r echo=TRUE}
147147
library("factoextra")
148-
fviz_eig(res, ncp = 50)
148+
fviz_eig(res, ncp = 25)
149149
```
150150

151151
#### Use principal components to model population structure
@@ -212,6 +212,10 @@ phenotypes <- phenotypes[phenotypes$id %in% genotypes$IID,]
212212
phenotypes <- phenotypes[,c(1,3)]
213213
```
214214

215+
```{r}
216+
head(phenotypes)
217+
```
218+
215219
### Kinship matrix
216220

217221
We saw that one option to account for population structure in the GWAS

0 commit comments

Comments
 (0)