Learn R Programming

mirIntegrator (version 1.2.0)

smallest_pathway: Get the smallest pathway

Description

Find the pathway with the fewer number of nodes among a list of pathways. This simple function is an example of how to navigate the genes on a list of pathways.

Usage

smallest_pathway(pathways)

Arguments

pathways
A list of graph::graphNEL objects.

Value

The index of the pathway with fewer number of nodes.

Examples

Run this code
data(augmented_pathways)
smallest_pathway(augmented_pathways)
smallest_pathway

Run the code above in your browser using DataLab