gwc | R Documentation |
Calculate the gwc score between two vectors, using either a weighted spearman or pearson correlation
gwc(
x1,
p1,
x2,
p2,
method.cor = c("pearson", "spearman"),
nperm = 10000,
truncate.p = 1e-16,
...
)
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.
data(clevelandSmall_cSet)
x <- molecularProfiles(clevelandSmall_cSet,'rna')[,1]
y <- molecularProfiles(clevelandSmall_cSet,'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.