Skip to content

Commit

Permalink
passes check(), with 2 NOTES. citation() still not parsing inst/CITATION
Browse files Browse the repository at this point in the history
  • Loading branch information
Casey Dunn committed Jun 3, 2015
1 parent e1697d5 commit ad99044
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 9 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Version: 0.0.0.9000
Authors@R: person("Casey", "Dunn", email = "[email protected]", role = c("aut", "cre"))
Description: A collection of tools for phylogenetic tree manipulation. It is named after the Indonesian word for forest.
Depends: R (>= 3.1.0)
License: GPLv3 (https://www.gnu.org/copyleft/gpl.html)
License: MIT + file LICENSE
LazyData: true
Collate:
'utility_functions.R'
Expand Down
2 changes: 2 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
YEAR: 2015
COPYRIGHT HOLDER: Casey Dunn
7 changes: 5 additions & 2 deletions R/utility_functions.R
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,14 @@
#' @param phy_resolved A fully resolved phylogeny stored as a phylo object, e.g. an ML
#' tree.
#' @param phy_constraint A partially resolved constraint tree.
#' @param epsilon
#' @param epsilon The value to replace the branch length with
#' @return A phylo object containing a tree that is the same as phy_resolved, except that
#' the length of edges that are incompatible with phy_constraint are replaced with epsilon.
#' @examples
#' zc <- zero_constrained( ml, constraint )
#' data( siphonophore_ml )
#' data( siphonophore_constraint )
#' zc <- zero_constrained( siphonophore_ml, siphonophore_constraint )

zero_constrained <- function ( phy_resolved, phy_constraint, epsilon=0.000001 ){
phy_resolved$edge.length[ ! compatible_edges( phy_resolved, phy_constraint ) ] <- epsilon
return( phy_resolved )
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ and running some combination of the following:
load_all()
test()
document()
check() # A wrapper for R CMD check

To regenerate the pdf manual, run the following shell command in the package directory:

Expand Down
Binary file modified hutan_manual.pdf
Binary file not shown.
5 changes: 1 addition & 4 deletions inst/CITATION
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,4 @@ citEntry(entry = "Article",
"Automation and Evaluation of the SOWH Test of Phylogenetic Topologies with SOWHAT.",
"bioRxiv",
"URL http://dx.doi.org/10.1101/005264.")
)


Church, SH, JF Ryan, CW Dunn (preprint) Automation and Evaluation of the SOWH Test of Phylogenetic Topologies with SOWHAT. bioRxiv. doi:10.1101/005264.
)
6 changes: 4 additions & 2 deletions man/zero_constrained.Rd
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ tree.}

\item{phy_constraint}{A partially resolved constraint tree.}

\item{epsilon}{}
\item{epsilon}{The value to replace the branch length with}
}
\value{
A phylo object containing a tree that is the same as phy_resolved, except that
Expand All @@ -24,6 +24,8 @@ Generates the "zero-constrained" tree described by Susko 2014
(http://dx.doi.org/10.1093/molbev/msu039)
}
\examples{
zc <- zero_constrained( ml, constraint )
data( siphonophore_ml )
data( siphonophore_constraint )
zc <- zero_constrained( siphonophore_ml, siphonophore_constraint )
}

0 comments on commit ad99044

Please sign in to comment.