Skip to content

Commit

Permalink
Merge branch 'candidate-1.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
zkamvar committed Jul 25, 2014
2 parents b5804f6 + 3cfe55e commit 0fce5f3
Show file tree
Hide file tree
Showing 104 changed files with 16,422 additions and 7,334 deletions.
3 changes: 3 additions & 0 deletions .Rbuildignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,6 @@
^\.gitignore$
^\.travis.yml$
^\.Rhistory$
^vignettes/*.bbl$
^vignettes/*.log$
^vignettes/*.toc$
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ install:
- "[ ! -d ~/R ] && mkdir ~/R"
- R --version
- R -e '.libPaths(); sessionInfo()'
- Rscript -e 'install.packages(c("adegenet", "pegas", "vegan", "ggplot2", "phangorn", "ape", "igraph"), repos="http://cran.r-project.org")'
- Rscript -e 'install.packages(c("adegenet", "pegas", "vegan", "ggplot2", "phangorn", "ape", "igraph", "reshape", "seqinr", "testthat", "knitr", "polysat"), repos="http://cran.at.r-project.org")'

# run tests
script:
Expand Down
18 changes: 13 additions & 5 deletions DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ Package: poppr
Type: Package
Title: an R package for genetic analysis of populations with mixed
reproduction
Version: 1.0.6
Date: 2014-03-09
Version: 1.1.0
Date: 2014-07-23
Author: Zhian N. Kamvar <[email protected]>, Javier F. Tabima
<[email protected]>, Niklaus J. Grunwald
<[email protected]>
Expand All @@ -13,15 +13,23 @@ URL: http://cran.r-project.org/package=poppr,
http://grunwaldlab.cgrb.oregonstate.edu/poppr-r-package-population-genetics
Description: Population genetic analyses for hierarchical analysis of partially
clonal populations built upon the architecture of the adegenet package.
MailingList: http://groups.google.com/group/poppr
Depends:
R (>= 2.15.1),
adegenet
adegenet (>= 1.4-2)
Imports:
vegan,
ggplot2,
phangorn,
ape,
igraph,
methods,
ade4,
pegas,
methods
License: GPL-2
reshape2
Suggests:
testthat,
knitr,
polysat
License: GPL-2 | GPL-3
VignetteBuilder: knitr
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -43,5 +43,5 @@ checkdevel: build
cd R-devel;\
./configure;\
make;\
bin/./R -e 'install.packages(c("colorspace", "stringr", "RColorBrewer", "dichromat", "munsell", "labeling", "ade4", "network", "permute", "plyr", "digest", "gtable", "reshape2", "scales", "proto", "rgl", "quadprog", "adegenet", "pegas", "vegan", "ggplot2", "phangorn", "ape", "igraph", "seqinr", "testthat"), repos="http://cran.at.r-project.org", lib = "library")';\
bin/./R -e 'install.packages(c("colorspace", "stringr", "RColorBrewer", "dichromat", "munsell", "labeling", "ade4", "network", "permute", "plyr", "digest", "gtable", "reshape2", "scales", "proto", "rgl", "quadprog", "adegenet", "pegas", "vegan", "ggplot2", "phangorn", "ape", "igraph", "seqinr", "testthat", "knitr", "polysat", "caTools", "xtable"), repos="http://cran.at.r-project.org", lib = "library")';\
bin/./R CMD check ../$(PKGNAME)_$(PKGVERS).tar.gz --as-cran
47 changes: 46 additions & 1 deletion NAMESPACE
Original file line number Diff line number Diff line change
@@ -1,31 +1,71 @@
# Generated by roxygen2 (4.0.1): do not edit by hand

S3method(print,amova)
S3method(print,ialist)
S3method(print,locustable)
S3method(print,popprtable)
export("addhierarchy<-")
export("namehierarchy<-")
export("sethierarchy<-")
export("setpop<-")
export("splithierarchy<-")
export(aboot)
export(addhierarchy)
export(as.genclone)
export(bruvo.boot)
export(bruvo.dist)
export(bruvo.msn)
export(clonecorrect)
export(diss.dist)
export(edwards.dist)
export(genind2genalex)
export(genotype_curve)
export(getfile)
export(gethierarchy)
export(greycurve)
export(ia)
export(info_table)
export(informloci)
export(is.genclone)
export(locus_table)
export(missingno)
export(mlg)
export(mlg.crosspop)
export(mlg.id)
export(mlg.table)
export(mlg.vector)
export(namehierarchy)
export(nei.dist)
export(plot_poppr_msn)
export(poppr)
export(poppr.all)
export(poppr.amova)
export(poppr.msn)
export(popsub)
export(private_alleles)
export(provesti.dist)
export(read.genalex)
export(recode_polyploids)
export(reynolds.dist)
export(rogers.dist)
export(sethierarchy)
export(setpop)
export(shufflepop)
export(splitcombine)
export(splithierarchy)
exportClasses(bootgen)
exportClasses(bruvomat)
exportClasses(genclone)
exportMethods(print)
import(adegenet)
import(ggplot2)
import(methods)
import(pegas)
import(vegan)
importFrom(ade4,amova)
importFrom(ade4,cailliez)
importFrom(ade4,is.euclid)
importFrom(ade4,lingoes)
importFrom(ade4,quasieuclid)
importFrom(ape,add.scale.bar)
importFrom(ape,axisPhylo)
importFrom(ape,boot.phylo)
Expand All @@ -38,10 +78,15 @@ importFrom(igraph,"E<-")
importFrom(igraph,"V<-")
importFrom(igraph,E)
importFrom(igraph,V)
importFrom(igraph,delete.edges)
importFrom(igraph,graph.adjacency)
importFrom(igraph,layout.auto)
importFrom(igraph,minimum.spanning.tree)
importFrom(igraph,plot.igraph)
importFrom(igraph,print.igraph)
importFrom(pegas,as.loci)
importFrom(phangorn,midpoint)
importFrom(phangorn,upgma)
importFrom(reshape2,colsplit)
importFrom(reshape2,melt)
useDynLib(poppr)
57 changes: 55 additions & 2 deletions NEWS
Original file line number Diff line number Diff line change
@@ -1,3 +1,56 @@
poppr 1.1.0
===========
NEW FEATURES
* Polyploids with ambiguous genotypes are now supported in poppr. See documentation for `recode_polyploids` for details.
* Calculations of Bruvo's distance now features correction for partial missing data utilizing genome addition and genome loss models as presented in Bruvo et al. 2004.
* `diss.dist` now has options to return raw distances and a matrix instead of a dist object.
* `read.genalex` now has the option to import as a genclone object. This is the default action.
* `poppr.all` will be able to analyze lists of genind or genclone objects.
* `ia` now has the argument valuereturn which will return the sampled data.
* `[bruvo,poppr].msn` functions now give the user the choice to show the graph.
* `bruvo.boot` has a cleaner plot style.

NEW DATA CLASSES
* The `genclone` object is a new extension of the `genind` object from adegenet. This object contains slots containing population hierarchies and multilocus genotype definitions and will work with all analyses in adegenet and poppr.

NEW FUNCTIONS
* [get,set,name,split,add]hierarchy - functions that will manipulate the hierarchy slot in a `genclone` object utilizing hierarchical formulae as arguments for simplification.
* `setpop` will set the population of a `genclone` object utilizing model formulae regarding the hierarchy slot.
* `as.genclone` will automatically convert genind objects to genclone objects.
* `is.genclone` checks the validity of genclone objects.
* `poppr.amova` will run amova on any hierarchical level. This also includes the feature to run amova on clone censored data sets. It utilizes the ade4 version of amova.
* `info_table` will calculate missing data per population per locus or ploidy per individual per locus and gives the user the option to visualize this as a heatmap.
* `locus_table` will calculate diversity and evenness statistics over all loci in a genind or genclone object.
* `*.dist` functions will calculate Nei's distance, Rogers' Distance, Edwards' Distance, Reynolds' Distance, and Provestis' Distance.
* `aboot` will allow the user to create bootstrapped dendrograms for ANY distance that can be calculated on genind or genpop objects.
* `plot_poppr_msn` will plot minimum spanning networks produced with poppr.
* `private_alleles` will give information about the presence of private alleles within a genind or genclone object.
* `recode_polyploids` will take in a polyploid genind/genclone object (with missing alleles coded as extra zero-value allele) and recode them to have frequencies relative to the observed number of alleles.
* `genotype_curve` will create a genotype accumulation curve for increasing number of loci.
* `mlg.id` will return a list indicating the samples belonging to a specific multilocus genotype.

NEW DATA SETS
* Pinf - a data set of 86 isolates from different populations of the late blight pathogen, Phytophthora infestans. Provided by Erica Goss
* monpop - a large data set of 694 Monilinia fructicola isolates from a single orchard over three years. Provided by Sydney E. Everhart

NEW CAR
* Not really.

NAMESPACE CHANGES
* poppr no longer depends on pegas.
* ade4 and reshape2 are now explicitly required.

IMPROVEMENTS
* default shuffling algorithm has been implemented in C to increase speed.
* output of the mlg functions are now represented as integers to decrease their size in memory.
* `mlg.matrix` is now calculated faster utilizing R's internal tabulating capabilities.
* The function `poppr` will no longer return rounded results, but rather is printed with three significant digits.

MISC
* Added unit tests.
* The poppr user manual has been shortened to only include instructions on data manipulation.
* A new vignette, "Algorithms and Equations" gives algorithmic details for calculations performed in poppr.

poppr 1.0.7
===========
UPDATE
Expand All @@ -17,7 +70,7 @@ MISC
poppr 1.0.5
===========
NOTABLE CHANGE
* The default shuffling algorithm for calculating the index of association has changed from multilocus-style sampling to permutation of alleles. All of the 4 methods are available, but new assignments are as follows: Method 1: permute alleles, Method 2: parametric bootstrap, Method 3: non-parametric bootstrap, Method 4: Multilocus-style sampling. Previously, Multilocus was 1 and the rest followed in the same order. There should be no compatability issues with this change. Functions affected: `ia`, `poppr` `shufflepop`
* The default shuffling algorithm for calculating the index of association has changed from multilocus-style sampling to permutation of alleles. All of the 4 methods are available, but new assignments are as follows: Method 1: permute alleles, Method 2: parametric bootstrap, Method 3: non-parametric bootstrap, Method 4: Multilocus-style sampling. Previously, Multilocus was 1 and the rest followed in the same order. There should be no compatibility issues with this change. Functions affected: `ia`, `poppr` `shufflepop`

BUG FIX
* Bootstrapping algorithm for `bruvo.boot` function was not shuffling the repeat lengths for each locus resulting in potentially erroneous bootstrap support values. This has been fixed by implementing an internal S4 class that will allow direct bootstrapping of the data and repeat lengths together.
Expand All @@ -33,7 +86,7 @@ poppr 1.0.4
===========
BUG FIX
* A previous error where bootstrap values greater than 100 were reported from `bruvo.boot` on UPGMA trees has been fixed.
* Fixed correction of negative branch lenghts using Kuhner and Felsenstein (1994) normalization for NJ trees.
* Fixed correction of negative branch lengths using Kuhner and Felsenstein (1994) normalization for NJ trees.

MISC
* github repository for poppr has changed from github.com/poppr/poppr to github.com/grunwaldlab/poppr
Expand Down
1 change: 1 addition & 0 deletions R/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
sandbox.r~
Loading

0 comments on commit 0fce5f3

Please sign in to comment.