outputAttractors: Output a table for attractors in the dataset

Description Usage Arguments Details Value Author(s) References See Also Examples

View source: R/outputAttractors.R

Description

Create a human-readable table list the top genes for every attractor in the dataset and write to file.

Usage

1
outputAttractors(x, min.basins=2, strength.pos=10, outputGeneNumber=100, write2File=FALSE, fileName="attractors.txt")

Arguments

x

A numerical matrix created by the attractorScanning function.

min.basins

Minimal number of basins (attractees) for an attractor to be considered meaningful.

strength.pos

The rank position of the gene list to be considered as the strength of the attractor..

outputGeneNumber

Number of genes in each attractor to be output.

write2File

Whether write the output matrix to a file.

fileName

The file name if write to file.

Details

The function output every attractor found by the attractorScanning function, excluding any attractor that have less than min.basin basin genes (or as we call, 'attractees'). Each attractor is represented by the top outputGeneNumber genes, ranked by the gene's mutual information with the converged metagene.

Value

A character matrix in which each attractor is represented by two columns: first the top genes, followed by each gene's mutual information with the converged metagene.

Author(s)

Wei-Yi Cheng

References

Wei-Yi Cheng, Tai-Hsien Ou Yang and Dimitris Anastassiou, Biomolecular events in cancer revealed by attractor metagenes, PLoS Computational Biology, Vol. 9, Issue 2, February 2013.

See Also

attractorScanning

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## Not run: 
# Load the toy dataset extracted from TCGA OV data
data(ov)

# find all attractors in the dataset
as.ov <- attractorScanning(ov)

mat <- outputAttractors(as.ov, outputGeneNumber=20)

## End(Not run)

weiyi-bitw/cafr documentation built on May 4, 2019, 4:18 a.m.