Learn R Programming

corTools (version 1.0)

edgecutoff: Identifies Hubs

Description

Provides a list of traits with the most edges, identified as traits whose values are one standard deviation greater than the mean. If outliers exist, the function uses the interquartile range and median instead. Built with Cytoscape in mind, so returns the list of nodes with the most edges.

Usage

edgecutoff(dat, col)

Arguments

dat
Dataset name
col
Column name in the dataset that contains the edgecounts. Edgecounts can be generated by running the edgecount function first, and providing the edgecount function's output as input into edgecutoff.

Value

Details

This function helps to determine which traits or genes could potentially be hubs in an interaction network.

Run edgecount first to generate the edge counts. This function uses boxplot to check for outliers and will generate a boxplot of edgecount data.

References

http://www.cytoscape.org/ Krouk G, Mirowski P, LeCun Y, Shasha DE, Coruzzi GM (2010) Predictive network modeling of the high-resolution dynamic plant transcriptome in response to nitrate. Genome Biol 11(12):R123.

Examples

Run this code
# Create some sample data
traits <- c("Trait1", "Trait2", "Trait3", "Trait4", "Trait5")
edgecount <- c(5, 6, 7, 4, 23)
example <- cbind(traits, edgecount)

edgecutoff(example, edgecount)
# example denotes the data
# edgecount denotes the column of the data that you want to cutoff at
# returns Trait5   23 and a boxplot of the data into the graphics window

Run the code above in your browser using DataLab