-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
Package: mia | ||
Type: Package | ||
Version: 1.11.3 | ||
Version: 1.11.4 | ||
Authors@R: | ||
c(person(given = "Felix G.M.", family = "Ernst", role = c("aut"), | ||
email = "[email protected]", | ||
|
@@ -84,5 +84,5 @@ Suggests: | |
URL: https://github.com/microbiome/mia | ||
BugReports: https://github.com/microbiome/mia/issues | ||
Roxygen: list(markdown = TRUE) | ||
RoxygenNote: 7.3.0 | ||
RoxygenNote: 7.3.1 | ||
VignetteBuilder: knitr |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
#' These functions will be deprecated. Please use other functions instead. | ||
#' | ||
#' @param x a \code{\link{SummarizedExperiment}} object - | ||
#' | ||
#' @param ... - | ||
#' | ||
#' @name deprecate | ||
NULL | ||
|
||
#' @rdname deprecate | ||
setGeneric("addTaxonomyTree", | ||
signature = "x", | ||
function(x, ...) | ||
standardGeneric("addTaxonomyTree")) | ||
|
||
#' @rdname deprecate | ||
#' @export | ||
setMethod("addTaxonomyTree", signature = c(x = "SummarizedExperiment"), | ||
function(x){ | ||
.Deprecated(msg = paste0("'addTaxonomyTree' is deprecated.\n", | ||
"Use 'addTree' instead.")) | ||
addTree(x) | ||
} | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
thpralas
Author
Collaborator
|
||
) | ||
|
||
#' @rdname deprecate | ||
setGeneric("taxonomyTree", | ||
signature = "x", | ||
function(x, ...) | ||
standardGeneric("taxonomyTree")) | ||
|
||
#' @rdname deprecate | ||
#' @export | ||
setMethod("taxonomyTree", signature = c(x = "SummarizedExperiment"), | ||
function(x){ | ||
.Deprecated(msg = paste0("'taxonomyTree' is deprecated.\n", | ||
"Use 'getHierarchyTree' instead.")) | ||
getHierarchyTree(x) | ||
} | ||
) |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -290,10 +290,10 @@ setMethod("splitOn", signature = c(x = "TreeSummarizedExperiment"), | |
if( update_rowTree ){ | ||
# If the returned value is a list, go through all of them | ||
if( class(x) == "SimpleList" ){ | ||
x <- SimpleList(lapply(x, addTaxonomyTree)) | ||
x <- SimpleList(lapply(x, addTree)) | ||
This comment has been minimized.
Sorry, something went wrong.
TuomasBorman
Contributor
|
||
} else { | ||
# Otherwise, the returned value is TreeSE | ||
x <- addTaxonomyTree(x) | ||
x <- addTree(x) | ||
} | ||
} | ||
x | ||
|
@@ -386,7 +386,7 @@ setGeneric("unsplitOn", | |
if( class_x == "TreeSummarizedExperiment" ){ | ||
# Update or add old tree from the first element of list | ||
if( update_rowTree ){ | ||
ans <- addTaxonomyTree(ans) | ||
ans <- addTree(ans) | ||
} else{ | ||
rowTree(ans) <- rowTree(ses[[1L]]) | ||
} | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
The idea is correct. However, the names seems to be inccorrect,
addTaxonomyTree: addHierarchyTree