forked from microbiome/mia
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Deprecate taxonomyTree and addTaxonomyTree (microbiome#496)
Co-authored-by: Tuomas Borman <[email protected]> Co-authored-by: TuomasBorman <[email protected]> Co-authored-by: Leo Lahti <[email protected]>
- Loading branch information
1 parent
1269d9c
commit 45544f3
Showing
9 changed files
with
288 additions
and
148 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 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 |
---|---|---|
@@ -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.", | ||
"Use 'addHierarchyTree' instead.")) | ||
addHierarchyTree(x) | ||
} | ||
) | ||
|
||
#' @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.", | ||
"Use 'getHierarchyTree' instead.")) | ||
getHierarchyTree(x) | ||
} | ||
) |
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
Oops, something went wrong.