View source: R/featureAssociation.R
featureAssociation | R Documentation |
The featureAssociation function will calculate the associations between the sample features in the input annotation data and the modules identified by NetSAM or MatSAM function.
featureAssociation(inputMat, sampleAnn, NetSAMOutput, outputHtmlFile, CONMethod="spearman", CATMethod="kruskal", BINMethod="ranktest", fdrmethod="BH",pth=0.05,collapse_mode="maxSD")
inputMat |
|
sampleAnn |
|
NetSAMOutput |
The list object outputted from NetSAM or MatSAM. |
outputHtmlFile |
The output directory of the HTML file. |
CONMethod |
The method to calculate the associations between modules and continuous features. The function provides two methods: "spearman" and "pearson" and the default is "spearman". |
CATMethod |
The method to calculate the associations between modules and category features. The function provides two methods: "anova" and "kruskal" and the default is "kruskal". |
BINMethod |
The method to calculate the associations between modules and binary features. The function provides two methods: "test" and "rankest" and the default is "rankest". |
fdrmethod |
The FDR method for identifying the significantly associated GO terms. The default is "BH". |
pth |
The threshold of the p values to identify the significant associations. |
collapse_mode |
The method to collapse duplicate ids. "mean", "median", "maxSD", "maxIQR", "max" and "min" represent the mean, median, max standard deviation, max interquartile range, maximum and minimum of values for ids in each sample. The default is "maxSD". |
The function will output a data.frame object and a HTML file to show the significant associations.
Jing Wang
MatSAM
NetSAM
inputMatDir <- system.file("extdata","exampleExpressionData.cct",package="NetSAM")
sampleAnnDir <- system.file("extdata","sampleAnnotation.tsi",package="NetSAM")
data(NetSAMOutput_Example)
outputHtmlFile <- paste(getwd(),"/featureAsso_HTML",sep="")
featureAsso <- featureAssociation(inputMat= inputMatDir, sampleAnn=sampleAnnDir, NetSAMOutput=netsam_output, outputHtmlFile=outputHtmlFile, CONMethod="spearman", CATMethod="kruskal", BINMethod="ranktest", fdrmethod="BH",pth=0.05,collapse_mode="maxSD")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.