Description Usage Arguments Value Author(s) Examples
Run correlation between two variables in a batch mode and support group by a variable
1 2 3 4 5 6 7 8 9 10 11 12 13 |
data |
a 'data.frame' containing variables |
var1 |
a 'character', the first variable in correlation |
var2 |
a 'vector' containing variables in a batch mode |
split |
whether perform correlation grouped by a variable, default is 'FALSE' |
split_var |
a 'character', the group variable |
cor_method |
method="pearson" is the default value. The alternatives to be passed to cor are "spearman" and "kendall" |
adjust_method |
What adjustment for multiple tests should be used? ("holm", "hochberg", "hommel", "bonferroni", "BH", "BY", "fdr", "none") |
use |
use="pairwise" will do pairwise deletion of cases. use="complete" will select just complete cases |
sig_label |
whether add symbal of significance. P < 0.001,"***"; P < 0.01,"\**"; P < 0.05,"*"; P >=0.05,"" |
parallel |
if 'TRUE', do parallel computation by **furrr** package. |
verbose |
if 'TRUE', print extra info. If 'parallel' is 'TRUE', set 'verbose' to 'FALSE' may speed up. |
a 'data.frame'
Yi Xiong, Shixiang Wang
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | data("exprSet", package = "ezcor", envir = environment())
target_variable = colnames(exprSet)[3]
genelist <- colnames(exprSet)
genelist <- setdiff(genelist,c("patient","tissue",target_variable))
res <- ezcor::ezcor_batch(data = exprSet,
var1 = target_variable,
var2 = genelist,
split = TRUE,
split_var = "tissue",
cor_method = "pearson",
adjust_method = "none",
use = "complete",
sig_label = TRUE,
parallel = FALSE,
verbose = TRUE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.