-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Append and created a testthat unit test of the fix (#34)
* append and created a testthat unit test of the fix * Append and created a testthat unit test of the fix * made all the changes requested in the previous pull request * fixed the documentation and deleted the r.data and r.history files * updated the documentation and deleted rdata * fixed the comments on documentation * Remove documentation of assay as it is inherited by @inheritParam * Fix unit tests that only occur on en_US.UTF-8 --------- Co-authored-by: Levi Waldron <[email protected]>
- Loading branch information
Showing
7 changed files
with
59 additions
and
24 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,3 +2,5 @@ | |
lefser.Rproj | ||
docs | ||
vignettes/lefser_cache/ | ||
.Rdata | ||
.Rhistory |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,19 @@ | ||
library(testthat) | ||
library(lefser) | ||
|
||
|
||
|
||
test_check("lefser") | ||
|
||
data(zeller14) | ||
|
||
zeller14sub <- zeller14[, zeller14$study_condition != "adenoma"] | ||
|
||
zeller14ra <- lefser::relativeAb(zeller14sub) | ||
|
||
|
||
expect_warning(lefser(zeller14sub, groupCol = "study_condition"), regexp = "^Convert counts.+") | ||
expect_equal(assayNames(zeller14ra), c("rel_abs", "exprs")) | ||
expect_equal(colSums(assay(zeller14ra, "rel_abs")), rep(1e6, ncol(zeller14ra)), check.attributes = FALSE) | ||
set.seed(1) | ||
expect_no_warning(x <- lefser(zeller14ra, groupCol = "study_condition")) |
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