Skip to content

Commit

Permalink
Add getAlpha (#669)
Browse files Browse the repository at this point in the history
  • Loading branch information
TuomasBorman authored Jan 19, 2025
1 parent 2bfddc2 commit 45b1d3e
Show file tree
Hide file tree
Showing 15 changed files with 387 additions and 1,166 deletions.
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

0 comments on commit 45b1d3e

Please sign in to comment.