View source: R/data_refinement.R
create_interaction_table | R Documentation |
Performs the actual process of making the table.
create_interaction_table( data, taxonomy = NULL, threshold.type = "q", threshold.value = 0.05, removeDuplicates = TRUE, score_attributes = NULL )
data |
The results from ccrepe |
taxonomy |
Named character, with the names being those of the OTUs and the values their taxonomy collapased into a single string (for each OTU) |
threshold.type |
The type of threshold to be used |
threshold.value |
The critical significance value for including an interaction |
removeDuplicates |
If |
score_attributes |
An object of class sim.measure.attributes belonging to the similarity measure being used |
An interaction_table
, being a data.frame
with the following columns
(given that they are available in the input):
OTU_1
, OTU_2
The IDs of the two interacting OTUs
sim.score
The similarity measure score for the interaction
z.stat
The z-value of the interaction
p.value
The p-value of the interaction (based only on the interaction itself)
q.value
The q-value of the interaction (corrected for multiple testing)
taxonomy_1
, taxonomy_2
The taxonomy of the two interacting OTUs, collapsed into a single string.
In addition, the information from the given similarity scores are also provided
collapse_taxonomy sim.measure.attributes
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.