Skip to content

Commit

Permalink
Update run_kgd.R
Browse files Browse the repository at this point in the history
Allow for singletons in Inbreeding plot
  • Loading branch information
doddsk authored Sep 29, 2023
1 parent b0d94d7 commit 53dd930
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion run_kgd.R
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ if ( geno_method == "default" ) {
NInb <- calcGdiag(snpsubset=which(HWdis.sep > -0.05),puse=p.sep)-1

png(paste0("InbCompare",".png"),width=600, height=600,pointsize=cex.pointsize*13.5)
pairs(cbind(Inbc,NInb,SepInb,Inbs,LaneRel-1)[ubb,],cex.labels=1.5, cex=1.2,
pairs(cbind(Inbc,NInb,SepInb,Inbs,LaneRel-1)[ubb,,drop=FALSE],cex.labels=1.5, cex=1.2,
labels=c(paste0("Combined\nmean=",signif(mean(Inbc[ubb],na.rm=TRUE),3)),
paste0("Combined\nalpha=",signif(bbalpha[4],2),"\nmean=",signif(mean(NInb[ubb],na.rm=TRUE),3)),
paste0("Separate\nalpha=",signif(bbalpha[1],2),"\nmean=",signif(mean(SepInb[ubb],na.rm=TRUE),3)),
Expand Down

0 comments on commit 53dd930

Please sign in to comment.