Skip to content

Commit

Permalink
fixed tests
Browse files Browse the repository at this point in the history
git-svn-id: file:///home/git/hedgehog.fhcrc.org/bioconductor/trunk/madman/Rpacks/destiny@131272 bc3139a8-67e5-0310-9ffc-ced21a209358
  • Loading branch information
Philipp Angerer committed Jul 17, 2017
1 parent f1e4b83 commit f846c54
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: destiny
Type: Package
Title: Creates diffusion maps
Version: 2.5.4
Version: 2.5.5
Date: 2014-12-19
Authors@R: c(
person('Philipp', 'Angerer', NULL, '[email protected]', c('cre', 'aut')),
Expand Down
2 changes: 1 addition & 1 deletion man/Gene-Relevance-plotting.Rd

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

4 changes: 4 additions & 0 deletions tests/testthat/test_basic.r
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
test_that('DiffusionMap works', {
data(guo_norm)
DiffusionMap(guo_norm)
})
2 changes: 1 addition & 1 deletion tests/testthat/test_distances.r
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ full_t_p_local <- function(dat, sigma, dists) {
S1 <- sigma %*% t(sigma)
S2 <- outer(sigma ^ 2, sigma ^ 2, '+')

rv <- sqrt(2 * S1 / S2) * exp(-d2 / S2 / 2)
rv <- sqrt(2 * S1 / S2) * exp(-d2 / S2)
rv[d2 == 0] <- 0
rv
}
Expand Down

0 comments on commit f846c54

Please sign in to comment.