Description Usage Arguments Details Value Author(s) Examples
This function calculates correlations for use in network analysis.
1 2 | network_calc(omicsData, type = "spearman", group = FALSE,
group_var = NULL, fdr_method = "fndr", missing_val = 0)
|
omicsData |
an object of the class 'seqData' reated by |
type |
Character, which correlation metric to use. Must be one of 'pearson' or 'spearman'. Default is 'spearman'. |
group |
Logical, should correlation analysis be performed on sub-groups of the data. Default is FALSE, will use all of the samples in the data. |
group_var |
Character, if group==TRUE, which variable to use as the grouping variable. |
fdr_method |
a character vector stating which cutoff method to use, one of 'fndr', 'pct0', or 'locfdr'. Default is 'fndr'. |
missing_val |
Use 0 or NA for any 'missing' values? Default is 0. |
Correlation is calculated between every pair of features.
An object of class corrRes (also a data.frame) containing the correlation values.
Allison Thompson
1 2 3 4 5 6 7 | ## Not run:
library(mintJansson)
data(rRNA_data)
mynetwork <- network_calc(omicsData = rRNA_data)
head(mynetwork)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.