Calculate 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