Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add getAlpha #669

Merged
merged 16 commits into from
Jan 19, 2025
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: mia
Type: Package
Version: 1.15.15
Version: 1.15.16
Authors@R:
c(person(given = "Tuomas", family = "Borman", role = c("aut", "cre"),
email = "[email protected]",
Expand Down
3 changes: 2 additions & 1 deletion NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ export(estimateRichness)
export(full_join)
export(getAbundanceClass)
export(getAbundant)
export(getAlpha)
export(getBestDMNFit)
export(getCCA)
export(getConditionallyLowAbundant)
Expand Down Expand Up @@ -210,6 +211,7 @@ exportMethods(estimateRichness)
exportMethods(full_join)
exportMethods(getAbundanceClass)
exportMethods(getAbundant)
exportMethods(getAlpha)
exportMethods(getBestDMNFit)
exportMethods(getCCA)
exportMethods(getConditionallyLowAbundant)
Expand Down Expand Up @@ -319,7 +321,6 @@ importFrom(DelayedArray,rowSums)
importFrom(DelayedArray,rowsum)
importFrom(DelayedArray,setAutoBPPARAM)
importFrom(DelayedArray,type)
importFrom(DelayedMatrixStats,colMeans2)
importFrom(DelayedMatrixStats,colQuantiles)
importFrom(DelayedMatrixStats,colSums2)
importFrom(DelayedMatrixStats,rowMaxs)
Expand Down
22 changes: 7 additions & 15 deletions R/AllGenerics.R
Original file line number Diff line number Diff line change
Expand Up @@ -3,23 +3,15 @@
#' @rdname addAlpha
#' @export
setGeneric(
"addAlpha", signature = c("x"),
function(
x, assay.type = "counts",
index = c(
"coverage_diversity", "fisher_diversity", "faith_diversity",
"gini_simpson_diversity", "inverse_simpson_diversity",
"log_modulo_skewness_diversity", "shannon_diversity",
"absolute_dominance", "dbp_dominance",
"core_abundance_dominance", "gini_dominance",
"dmn_dominance", "relative_dominance",
"simpson_lambda_dominance", "camargo_evenness",
"pielou_evenness", "simpson_evenness",
"evar_evenness", "bulla_evenness", "ace_richness",
"chao1_richness", "hill_richness", "observed_richness"),
name = index, niter = NULL, ...)
"addAlpha", signature = c("x"), function(x, ...)
standardGeneric("addAlpha"))

#' @rdname addAlpha
#' @export
setGeneric(
"getAlpha", signature = c("x"), function(x, ...)
standardGeneric("getAlpha"))

#' @rdname getDissimilarity
#' @export
setGeneric(
Expand Down
Loading
Loading