countInteractions: countInteractions

View source: R/OTU_stats.R

countInteractionsR Documentation

countInteractions

Description

Counts the number of interactions for each OTU

Usage

countInteractions(IDs, interactions_table)

Arguments

IDs

Character vector, the name name of each OTU

interactions_table

An interaction_table

Value

A named numeric vector showing the number of interactions for each OTU in the IDs argument

#' @examples library(micInt) data("seawater") sim.scores <- similarity_measures(subset= c("spearman","pearson")) res <- runAnalysis(OTU_table = seawater,sim.scores = sim.scores,parallel = FALSE) int_table <- create_interaction_table(res[[1]]$ccrepe_res) countInteractons(c("OTU_1","OTU_2","OTU_18"),int_table)


AlmaasLab/micInt documentation built on April 1, 2022, 10:37 a.m.