16.01.2015 Views

Package 'WGCNA' - Laboratory Web Sites - UCLA

Package 'WGCNA' - Laboratory Web Sites - UCLA

Package 'WGCNA' - Laboratory Web Sites - UCLA

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

12 bicor<br />

}<br />

sep = ".")<br />

NS1 = networkScreening(y = y, datME = datME, datExpr = datExpr)<br />

ES = data.frame(cor(y, datME, use = "p"))<br />

rr = max(abs(ES), na.rm = T)<br />

AAcriterion = sqrt(length(y) - 2) * rr/sqrt(1 - rr^2)<br />

ESy = (1 + max(abs(ES), na.rm = T))/2<br />

ES = data.frame(ES, ESy = ESy)<br />

ES.999 = as.numeric(as.vector(ES))<br />

ES.999[!is.na(ES) & ES > 0.9999] = 0.9999<br />

ES.pvalue = FisherTransformP(r = abs(ES.999), n = sum(!is.na(y)))<br />

ES.pvalue[length(ES.999)] = 0<br />

EigengeneSignificance.pvalue = data.frame(matrix(ES.pvalue,<br />

nrow = 1))<br />

names(EigengeneSignificance.pvalue) = names(ES)<br />

datME = data.frame(datME, y = y)<br />

names(ES) = paste("ES", substr(names(ES), 3, 100), sep = "")<br />

print(signif(ES, 2))<br />

output = list(networkScreening = data.frame(NS1, MMdata,<br />

MMdataPvalue), datME = data.frame(datME), eigengeneSignificance = data.frame(ES),<br />

eigengeneSignificance.pvalue = EigengeneSignificance.pvalue,<br />

AAcriterion = AAcriterion)<br />

output<br />

bicor<br />

Biweight Midcorrelation<br />

Description<br />

Calculate biweight midcorrelation efficiently for matrices.<br />

Usage<br />

bicor(x, y = NULL, robustX = TRUE, robustY = TRUE, use = "all.obs", verbose = 0,<br />

Arguments<br />

x<br />

y<br />

a vector or matrix-like numeric object<br />

a vector or matrix-like numeric object<br />

robustX use robust calculation for x<br />

robustY use robust calculation for y<br />

use<br />

verbose<br />

indent<br />

specifies handling of NAs. One of (unique abbreviations of) "all.obs", "pairwise.complete.obs".<br />

if non-zero, the underlying C function will print some diagnostics.<br />

indentation for diagnostic messages. Zero means no indentation, each unit adds<br />

two spaces.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!