Description Usage Arguments Value Author(s) Examples
FastPearson help get cor from expression matrix.
1 2 3 4 5 6 7 |
data |
a expression matrix |
transposition |
Whether transpose the matrix.IF you input a gene expression matrix with rownames gene,you should set transposition = T |
control.markers |
If NULL,use all pairs strategy,else use one pair strategy.Only one control marker is supported |
target.markers |
when control.marker is not a NULL value,it specified the target variates you want.Default is NULL,which means you wan correlation between control.markers to other variates |
method |
One of "pearson","kendall" and "spearman".Default is "pearson" |
order |
whether order the cormatrix with corrplot::corrMatOrder |
parallel |
whether use parallel strategy |
a list of long data frame and a cormatrix
Weibin Huang<654751191@qq.com>
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 | library(lucky)
data=state.x77;colnames(data)
## All pairs
l1 <- FastPearson(data = state.x77,
transposition = F,
control.markers=NULL,
target.markers=NULL,
method = "pearson",
order = F,
parallel = F)
View(l1$longdata)
View(l1$cormatrix)
## One pair with no specified target
l2 <- FastPearson(data = state.x77,
transposition = F,
control.markers="Income",
target.markers=NULL,
method = "pearson",
order = F,
parallel = F)
View(l2$longdata)
## One pair with specified target
l3 <- FastPearson(data = state.x77,
transposition = F,
control.markers="Income",
target.markers=c("Illiteracy","Life Exp"),
method = "pearson",
order = F,
parallel = F)
View(l3$longdata)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.