repDiversity(.data, .method = c("chao1", "gini.simp", "inv.simp", "gini",
"div", "entropy"), .quant = c("read.count", "umi.count", "read.prop",
"umi.prop"), .q = 5, .norm = F, .do.norm = NA, .laplace = 0)Parameter .method can have one of the following value each corresponding to the specific method:
- "div" for the true diversity, or the effective number of types (basic function diversity).
- "inv.simp" for the inverse Simpson index (basic function inverse.simpson).
- "gini" for the Gini coefficient (basic function gini).
- "gini.simp" for the Gini-Simpson index (basic function gini.simpson).
- "chao1" for the Chao1 estimator (basic function chao1).
- "entropy" for the Shannon entropy measure (basic function entropy).
data(twb)
twb.div <- repDiversity(twb, "chao1", "read.count")Run the code above in your browser using DataLab