This function applies for a selected subnetwork a binomial test using the frequency of appearance of an edge feature and the total number of edge features. The probability corresponds to 1/n_df, where n_df corresponds to the total number of edge features in the network. The selected subnetwork corresponds to the second level neighborhood of a specific node. The test is applied to all possible second level neighborhoods in the network.
ResultsCoNI: The output of CoNI (after p-adjustment)
network: Network created with the function generate_network
padjust: logical. Filter output based on adjusted p values
Returns
Returns a data.frame with the results of the binomial tests. Significant results correspond to local controlling features
Examples
#Load color nodes tabledata(MetColorTable)#Assign colors according to "Class" columnMetColorTable<-assign_colorsAnnotation(MetColorTable)#Load CoNI resultsdata(CoNIResultsHFDToy)#Generate Network#Note: Colors not visible when ploting in IgraphHFDNetwork<-generate_network(ResultsCoNI = CoNIResultsHFDToy, colorVertexNetwork =TRUE, colorVertexTable = MetColorTable, Class = MetColorTable, outputDir ="./", outputFileName ="HFD", saveFiles =FALSE)#Note: For this tiny example nothing is significantLCG_BinomialTestTableHFD<- find_localControllingFeatures(ResultsCoNI = CoNIResultsHFDToy, network = HFDNetwork )LCGenes_HFD<-as.character(unique(LCG_BinomialTestTableHFD$edgeFeatures))