Skip to content

Commit

Permalink
v 0.5-9; fixed a bug in getal; some RD cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
jgx65 committed Feb 15, 2021
1 parent 3a5e785 commit f350697
Show file tree
Hide file tree
Showing 8 changed files with 29 additions and 14 deletions.
5 changes: 5 additions & 0 deletions CHANGES
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
#version 0.5-9 15.02.2021
-fs.dosage now also estimates pairwise fst
-created alias pairwise.fst.dosage
-fixed a bug in getal when pop is a factor, on pop id was 1 but not first level in factor

#version 0.5-8 09.08.2020
-created class betas for objects generated by function betas
-new function pairwise.betas for pairwise betas FST
Expand Down
4 changes: 2 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: hierfstat
Version: 0.5-8
Date: 2020-08-09
Version: 0.5-9
Date: 2021-02-15
Title: Estimation and Tests of Hierarchical F-Statistics
Authors@R: c(person("Jerome","Goudet",role=c("aut","cre"),email="jerome.goudet@unil.ch"),
person("Thibaut","Jombart",role="aut",email="t.jombart@imperial.ac.uk"),
Expand Down
1 change: 1 addition & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ export(ms2dos)
export(nb.alleles)
export(pairwise.WCfst)
export(pairwise.betas)
export(pairwise.fst.dosage)
export(pairwise.neifst)
export(pcoa)
export(pop.freq)
Expand Down
2 changes: 1 addition & 1 deletion R/fsdosage.R
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#'
#' Reports individual inbreeding coefficients, Population specific Fsts and Fiss from dosage data
#'
#' @aliases fst.dosage fis.dosage
#' @aliases fst.dosage fis.dosage pairwise.fst.dosage
#' @usage fs.dosage(dos, pop, matching = FALSE)
#'
#'
Expand Down
4 changes: 2 additions & 2 deletions R/misc.R
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,11 @@ if (min(data[,true.loci]%/%100,na.rm=TRUE)>=10 & max(data[,true.loci]%%100,na.rm
if (max(data[,true.loci],na.rm=TRUE)<100) modulo<-10
firstal<-data[,-1] %/% modulo
secal<-data[,-1] %% modulo
ind<-vector(length=0)
ind<-NULL
nbpop <- length(unique(data[,1]))
for (i in sort(unique(data[,1]))) {
dum<-1:sum(data[,1]==i)
if (i==1) ind<-dum else ind<-c(ind,dum)
ind<-c(ind,dum)
}
ind<-rep(ind,2)
if (x[2]==2) data.al<-data.frame(pop=rep(data[,1],2),ind=ind,al=c(firstal,secal))
Expand Down
13 changes: 13 additions & 0 deletions man/beta.dosage.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 2 additions & 9 deletions man/betas.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions man/fs.dosage.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit f350697

Please sign in to comment.