Skip to content

Commit

Permalink
Debug merge GWAS in FarmCPU
Browse files Browse the repository at this point in the history
  • Loading branch information
jiabowang committed Nov 5, 2023
1 parent 7f5c24a commit ea98767
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion R/GAPIT.Bus.R
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,7 @@ GWAS[,3]=as.numeric(as.character(GWAS[,3]))
#rint(head(GWAS))
nobs=ns
# print(head(GWAS))
GWAS=GWAS[,c(1:5,7,8,6)]
GWAS=GWAS[,c(1:5,7,6)]
GWAS[is.na(GWAS[,4]),4]=1
# colnames(GWAS)=c("SNP","Chr","Pos","P.value","MAF","effect","nobs")
sig=GWAS[GWAS[,4]<(cutOff/(nrow(GWAS))),1:5]
Expand Down
8 changes: 4 additions & 4 deletions R/GAPIT.PCA.R
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ for(i in 1:(maxPlot-1))
{
for(j in (i+1):(maxPlot))
{
plot(PCA.X$x[,i],PCA.X$x[,j],xlab=paste("PC",i,sep=""),ylab=paste("PC",j,sep=""),pch=19,col=PCA.col,cex.axis=1.3,cex.lab=1.4, cex.axis=1.2, lwd=2,las=1)
plot(PCA.X$x[,i],PCA.X$x[,j],xlab=paste("PC",i," (evp=",round(evp[i],4)*100,"%)",sep=""),ylab=paste("PC",j," (evp=",round(evp[j],4)*100,"%)",sep=""),pch=19,col=PCA.col,cex.axis=1.3,cex.lab=1.4, cex.axis=1.2, lwd=2,las=1)
if(!is.null(PCA.legend)) legend(as.character(PCA.legend$pos),legend=PCA.legend$taxa,pch=19,col=PCA.legend$col,
ncol=PCA.legend$ncol,box.col="white",bty = "n", bg = par("bg"),inset=-0.05)
}
Expand Down Expand Up @@ -141,9 +141,9 @@ if(PCA.3d==TRUE)
scatterplot3d::scatterplot3d(PCA.X$x[,1],
PCA.X$x[,2],
PCA.X$x[,3],
xlab = paste("PC",1,sep=""),
ylab = paste("PC",2,sep=""),
zlab = paste("PC",3,sep=""),
xlab = paste("PC",1," (evp=",round(evp[1],4)*100,"%)",sep=""),
ylab = paste("PC",2," (evp=",round(evp[2],4)*100,"%)",sep=""),
zlab = paste("PC",3," (evp=",round(evp[3],4)*100,"%)",sep=""),
pch = 20,
color = PCA.col,
col.axis = "blue",
Expand Down

0 comments on commit ea98767

Please sign in to comment.