GWC Score
gwc.RdCalculate the gwc score between two vectors, using either a weighted spearman or pearson correlation
Usage
gwc(
x1,
p1,
x2,
p2,
method.cor = c("pearson", "spearman"),
nperm = 10000,
truncate.p = 1e-16,
...
)Arguments
- x1
numericvector of effect sizes (e.g., fold change or t statitsics) for the first experiment- p1
numericvector of p-values for each corresponding effect size for the first experiment- x2
numericeffect size (e.g., fold change or t statitsics) for the second experiment- p2
numericvector of p-values for each corresponding effect size for the second experiment- method.cor
characterstring identifying if apearsonorspearmancorrelation should be used- nperm
numerichow many permutations should be done to determine- truncate.p
numericTruncation value for extremely low p-values- ...
Other passed down to internal functions
Examples
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)
#> rho p
#> 0.87717962 0.01980198