Skip to content

Commit

Permalink
Fix bug introduced in calc_het()
Browse files Browse the repository at this point in the history
- dimnames(pr) for output of calc_genoprob gives chromosome-specific
  genotype names
  • Loading branch information
kbroman committed Aug 24, 2023
1 parent 480c535 commit fa8a362
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/calc_het.R
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ calc_het <-
het_col <- vector("list", n_chr)
geno <- dimnames(probs)[[2]]

if(any(nchar(geno) != 2)) {
if(any(nchar(unlist(geno)) != 2)) {
stop("calc_het requires genotypes to have two-letter names")
}

Expand Down

0 comments on commit fa8a362

Please sign in to comment.