Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Credit @zkamvar & @pitakakariki for their contribs
Closes #3
- Loading branch information
Showing
8 changed files
with
14 additions
and
181 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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}} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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}} | ||
} | ||
|
1c542b9
There was a problem hiding this comment.
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 :-)
1c542b9
There was a problem hiding this comment.
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 😄
1c542b9
There was a problem hiding this comment.
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 :-)