Skip to content

Commit 1bea7c8

Browse files
committed
Bug fix
1 parent ab6f69a commit 1bea7c8

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

DESCRIPTION

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Package: polysat
2-
Version: 1.7-7
3-
Date: 2022-08-20
2+
Version: 1.7-8
3+
Date: 2024-12-20
44
Title: Tools for Polyploid Microsatellite Analysis
55
Authors@R: c(person("Lindsay V.", "Clark", email = "[email protected]", role = c("aut", "cre"),
66
comment = c(ORCID = "0000-0002-3881-9252")),

NEWS

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
Changes in version 1.7-8
2+
3+
* Bug fixed in PIC function.
4+
15
Changes in version 1.7-7
26

37
* Maintainer email address updated.

R/population_stats.R

+1-1
Original file line numberDiff line numberDiff line change
@@ -896,7 +896,7 @@ PIC <- function(freqs, pops=row.names(freqs),
896896
} else {
897897
genomes <- freqs[,"Genomes"]
898898
}
899-
meanfreq <- apply(freqs[,lcol], 2, function(x) weighted.mean(x, w = genomes))
899+
meanfreq <- apply(freqs[,lcol, drop = FALSE], 2, function(x) weighted.mean(x, w = genomes))
900900
results["Overall",L] <- pic(meanfreq)
901901
}
902902
}

0 commit comments

Comments
 (0)