Skip to content

Commit

Permalink
Credit @zkamvar & @pitakakariki for their contribs
Browse files Browse the repository at this point in the history
Closes #3
  • Loading branch information
dwinter committed Jun 29, 2015
1 parent 1834722 commit 1c542b9
Show file tree
Hide file tree
Showing 8 changed files with 14 additions and 181 deletions.
6 changes: 5 additions & 1 deletion DESCRIPTION
Expand Up @@ -2,7 +2,11 @@ Package: mmod
Version: 1.3.0
Date: 2015-05-01
Title: Modern Measures of Population Differentiation
Author: David Winter
Authors@R: c(
person("David", "Winter", email = "david.winter@gmail.com", role = c("aut", "cre")),
person("Peter", "Green", email = "pitakakariki@gmail.com", role = "ctb"),
person("Zhian", "Kamvar", email = "kamvarz@science.oregonstate.edu", role = "ctb")
)
Maintainer: David Winter <david.winter@gmail.com>
Depends:
R (>= 2.6.0),
Expand Down
91 changes: 0 additions & 91 deletions R/pairwise_D.R

This file was deleted.

2 changes: 1 addition & 1 deletion man/D_Jost.Rd
Expand Up @@ -40,7 +40,7 @@ D_Jost(nancycats, hsht_mean= "arithmetic")
Jost, L. (2008), GST and its relatives do not measure differentiation. Molecular Ecology, 17: 4015-4026.
}
\seealso{
Other D: \code{\link{pairwise_D}}, \code{\link{pairwise_D}}
Other D: \code{\link{pairwise_D}}
Other diffstat: \code{\link{Gst_Hedrick}};
\code{\link{Gst_Nei}}; \code{\link{Phi_st_Meirmans}};
Expand Down
3 changes: 1 addition & 2 deletions man/Gst_Hedrick.Rd
Expand Up @@ -40,7 +40,6 @@ Other diffstat: \code{\link{D_Jost}};
\code{\link{Gst_Nei}}; \code{\link{Phi_st_Meirmans}};
\code{\link{diff_stats}}
Other Hedrick: \code{\link{pairwise_Gst_Hedrick}},
\code{\link{pairwise_Gst_Hedrick}}
Other Hedrick: \code{\link{pairwise_Gst_Hedrick}}
}
3 changes: 1 addition & 2 deletions man/Gst_Nei.Rd
Expand Up @@ -32,7 +32,6 @@ Other diffstat: \code{\link{D_Jost}};
\code{\link{Gst_Hedrick}}; \code{\link{Phi_st_Meirmans}};
\code{\link{diff_stats}}
Other Nei: \code{\link{pairwise_Gst_Nei}},
\code{\link{pairwise_Gst_Nei}}
Other Nei: \code{\link{pairwise_Gst_Nei}}
}
32 changes: 2 additions & 30 deletions man/pairwise_D.Rd
@@ -1,11 +1,9 @@
% Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/pairwise.R, R/pairwise_D.R
% Please edit documentation in R/pairwise.R
\name{pairwise_D}
\alias{pairwise_D}
\title{Calculates pairwise values of Jost's D}
\usage{
pairwise_D(x, linearized = FALSE, hsht_mean = "arithmetic")
pairwise_D(x, linearized = FALSE, hsht_mean = "arithmetic")
}
\arguments{
Expand All @@ -15,52 +13,26 @@ pairwise_D(x, linearized = FALSE, hsht_mean = "arithmetic")
\item{hsht_mean}{type of mean to use for the global estimates of Hs and Ht
default it "arithmetic", can also be set to "harmonic".}
\item{hsht_mean}{type of mean to use for the global estimates of Hs and Ht
default it "arithmetic", can also be set to "harmonic".}
\item{x}{genind object (from package adegenet)}
\item{linearized}{logical, if TRUE will turned linearized D (1/1-D)}
}
\value{
A distance matrix with between-population values of D
A distance matrix with between-population values of D
}
\description{
This function calculates Jost's D, a measure of genetic
differentiation, between all combinations of populaitons
in a genind object.

This function calculates Jost's D, a measure of genetic
differentiation, between all combinations of populaitons
in a genind object.
}
\examples{
data(nancycats)
pairwise_D(nancycats[1:26,])
data(nancycats)
pairwise_D(nancycats[1:26,])
}
\references{
Jost, L. (2008), GST and its relatives do not measure differentiation. Molecular Ecology, 17: 4015-4026.
Jost, L. (2008), GST and its relatives do not measure differentiation. Molecular Ecology, 17: 4015-4026.
}
\seealso{
Other D: \code{\link{D_Jost}}

Other D: \code{\link{D_Jost}}
Other pairwise: \code{\link{pairwise_Gst_Hedrick}},
\code{\link{pairwise_Gst_Hedrick}};
\code{\link{pairwise_Gst_Nei}},
\code{\link{pairwise_Gst_Nei}}
Other pairwise: \code{\link{pairwise_Gst_Hedrick}},
\code{\link{pairwise_Gst_Hedrick}};
\code{\link{pairwise_Gst_Nei}},
Other pairwise: \code{\link{pairwise_Gst_Hedrick}};
\code{\link{pairwise_Gst_Nei}}
}

27 changes: 2 additions & 25 deletions man/pairwise_Gst_Hedrick.Rd
@@ -1,58 +1,35 @@
% Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/pairwise.R, R/pairwise_D.R
% Please edit documentation in R/pairwise.R
\name{pairwise_Gst_Hedrick}
\alias{pairwise_Gst_Hedrick}
\title{Calculates pairwise values of Hedrick's G'st}
\usage{
pairwise_Gst_Hedrick(x, linearized = FALSE)

pairwise_Gst_Hedrick(x, linearized = FALSE)
}
\arguments{
\item{x}{genind object (from package adegenet)}

\item{linearized}{logical, if TRUE will turned linearized G'st (1/()1-G'st))}

\item{x}{genind object (from package adegenet)}

\item{linearized}{logical, if TRUE will turned linearized G'st (1/()1-G'st))}
}
\value{
A distance matrix with between-population values of G''st

A distance matrix with between-population values of G''st
}
\description{
This function calculates Hedrick's G'st, a measure of genetic
differentiation, between all combinations of populaitons
in a genind object.

This function calculates Hedrick's G'st, a measure of genetic
differentiation, between all combinations of populaitons
in a genind object.
}
\examples{
data(nancycats)
pairwise_Gst_Hedrick(nancycats[1:26,])
data(nancycats)
pairwise_Gst_Hedrick(nancycats[1:26,])
}
\references{
Hedrick, PW. (2005), A Standardized Genetic Differentiation Measure. Evolution 59: 1633-1638.

Hedrick, PW. (2005), A Standardized Genetic Differentiation Measure. Evolution 59: 1633-1638.
}
\seealso{
Other Hedrick: \code{\link{Gst_Hedrick}}

Other Hedrick: \code{\link{Gst_Hedrick}}

Other pairwise: \code{\link{pairwise_D}},
\code{\link{pairwise_D}}; \code{\link{pairwise_Gst_Nei}},
\code{\link{pairwise_Gst_Nei}}

Other pairwise: \code{\link{pairwise_D}},
\code{\link{pairwise_D}}; \code{\link{pairwise_Gst_Nei}},
Other pairwise: \code{\link{pairwise_D}};
\code{\link{pairwise_Gst_Nei}}
}

31 changes: 2 additions & 29 deletions man/pairwise_Gst_Nei.Rd
@@ -1,64 +1,37 @@
% Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/pairwise.R, R/pairwise_D.R
% Please edit documentation in R/pairwise.R
\name{pairwise_Gst_Nei}
\alias{pairwise_Gst_Nei}
\title{Calculates pairwise values of Nei's Gst}
\usage{
pairwise_Gst_Nei(x, linearized = FALSE)
pairwise_Gst_Nei(x, linearized = FALSE)
}
\arguments{
\item{x}{genind object (from package adegenet)}
\item{linearized}{logical, if TRUE will turned linearized Gst (1/(1-Gst))}
\item{x}{genind object (from package adegenet)}
\item{linearized}{logical, if TRUE will turned linearized Gst (1/(1-Gst))}
}
\value{
dist A distance matrix with between-population values of Gst
dist A distance matrix with between-population values of Gst
}
\description{
This function calculates Nei's Gst, a measure of genetic
differentiation, between all combinations of populaitons
in a genind object.

This function calculates Nei's Gst, a measure of genetic
differentiation, between all combinations of populaitons
in a genind object.
}
\examples{
data(nancycats)
pairwise_Gst_Nei(nancycats[1:26,])
data(nancycats)
pairwise_Gst_Nei(nancycats[1:26,])
}
\references{
Nei M. (1973) Analysis of gene diversity in subdivided populations. PNAS: 3321-3323.

Nei M, Chesser RK. (1983). Estimation of fixation indices and gene diversities. Annals of Human Genetics. 47: 253-259.
Nei M. (1973) Analysis of gene diversity in subdivided populations. PNAS: 3321-3323.
Nei M, Chesser RK. (1983). Estimation of fixation indices and gene diversities. Annals of Human Genetics. 47: 253-259.
}
\seealso{
Other Nei: \code{\link{Gst_Nei}}

Other Nei: \code{\link{Gst_Nei}}
Other pairwise: \code{\link{pairwise_D}},
\code{\link{pairwise_D}};
\code{\link{pairwise_Gst_Hedrick}},
\code{\link{pairwise_Gst_Hedrick}}
Other pairwise: \code{\link{pairwise_D}},
\code{\link{pairwise_D}};
\code{\link{pairwise_Gst_Hedrick}},
Other pairwise: \code{\link{pairwise_D}};
\code{\link{pairwise_Gst_Hedrick}}
}

3 comments on commit 1c542b9

@pitakakariki
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure I need contributor credit for proofreading a little bit of LaTeX :-)

@dwinter
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You did stuff that ended up in the package -- that's a contribution 😄

@pitakakariki
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As long as no one starts asking me how the package works :-)

Please sign in to comment.