MatNet | R Documentation |
The MatNet function can use one of three different methods to construct correlation network based on the input data matrix. The output correlation network can be used as an input of NetSAM function to identify hierarchical modules.
MatNet(inputMat, collapse_mode="maxSD", naPer=0.7, meanPer=0.8, varPer=0.8, corrType="spearman", matNetMethod="rank", valueThr=0.5, rankBest=0.003, networkType="signed", netFDRMethod="BH", netFDRThr=0.05, idNumThr=(-1),nThreads=3)
inputMat |
|
collapse_mode |
If the input matrix data contains the duplicate ids, the function will collapse duplicate ids based on the |
naPer |
To remove ids with missing values in most of samples, the function calculates the percentage of missing values in all samples for each id and removes ids with over |
meanPer |
To remove ids with low values, the function calculates the mean of values for each id in all samples and remains top |
varPer |
Based on the remained ids filtered by |
corrType |
The method to calculate correlation coefficient for each pair of ids. The function supports "spearman" (default) or "pearson" method. |
matNetMethod |
MatNet function supports three methods to construct correlation network: "value", "rank" and "directed". 1. "value" method: the correlation network only remains id pairs with correlations over cutoff threshold |
valueThr |
Correlation cutoff threshold for "value" method. The default is 0.5. |
rankBest |
The percentage of ids that are most similar to one id for "rank" method. The default is 0.003 which means the "rank" method will select top 30 most similar ids for each id if the number of ids in the matrix is 10,000. |
networkType |
If |
netFDRMethod |
p value adjustment methods for "rank" and "directed" methods. The default is "BH". |
netFDRThr |
fdr threshold for identifying significant pairs for "rank" and "directed" methods. The default is 0.05 |
idNumThr |
If the matrix contains too many ids, it will take a long time and use a lot of memory to identify the modules. Thus, the function provides the option to set the threshold of number of ids for further analysis. After filtering by meanPer and varPer, if the number of ids is still larger than |
nThreads |
MatNet function supports parallel computing based on multiple cores. The default is 3. |
For data with missing values, the function will take longer time to calculate correlation between each pair of ids than data without missing value.
Jing Wang
inputMatDir <- system.file("extdata","exampleExpressionData.cct",package="NetSAM")
matNetwork <- MatNet(inputMat=inputMatDir, collapse_mode="maxSD", naPer=0.7, meanPer=0.8, varPer=0.8, corrType="spearman", matNetMethod="rank", valueThr=0.6, rankBest=0.003, networkType="signed", netFDRMethod="BH", netFDRThr=0.05, idNumThr=(-1),nThreads=3)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.