net.neighbors: Get network neighbors of a node

Description Usage Arguments Value Author(s) References Examples

Description

For each class, returns the names of the nodes connected to a given node.

Usage

1
net.neighbors(theta, index)

Arguments

theta

A list of pXp matrices, each an estimated sparse inverse covariance matrix. (For example, the result of FGL or GGL.)

index

The row number of the node to be investigated.

Value

neighbors, a list of length K, each element of which is a vector of the row names of the nodes neighboring the node of interest.

Author(s)

Patrick Danaher

References

Patrick Danaher, Pei Wang and Daniela Witten (2011). The joint graphical lasso for inverse covariance estimation across multiple classes. http://arxiv.org/abs/1111.0324

Examples

1
2
3
4
5
6
7
## load an example dataset with K=two classes, p=200 features, and n=100 samples per class:
data(example.data)
str(example.data)
## run fgl:
fgl.results = JGL(Y=example.data,penalty="fused",lambda1=.25,lambda2=.1,return.whole.theta=TRUE)
## get neighbors of gene 195:
net.neighbors(fgl.results$theta,index=195)

JGL documentation built on May 2, 2019, 12:40 p.m.