Description Usage Arguments Value Examples
Calculate the gwc score between two vectors, using either a weighted spearman or pearson correlation
1 2 |
x1 |
|
p1 |
|
x2 |
|
p2 |
|
method.cor |
|
nperm |
|
truncate.p |
|
... |
Other passed down to internal functions |
numeric
a vector of two values, the correlation and associated p-value.
1 2 3 4 5 6 7 8 | data(Cleveland_small)
x <- molecularProfiles(Cleveland_small,"rna")[,1]
y <- molecularProfiles(Cleveland_small,"rna")[,2]
x_p <- rep(0.05, times=length(x))
y_p <- rep(0.05, times=length(y))
names(x_p) <- names(x)
names(y_p) <- names(y)
gwc(x,x_p,y,y_p, nperm=100)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.