MS_removeNode {MetaboSignal}R Documentation

Remove undesired nodes from the network

Description

This function allows removing undesired nodes from the network-table.

Usage

MS_removeNode(nodes, network_table)

Arguments

nodes

character vector containing the node IDs to be removed.

network_table

three-column matrix where each row represents and edge between two nodes. See function "MS_keegNetwork( )".

Value

A three-column matrix corresponding to the input network-table without the undesired nodes.

Examples

data(MetaboSignal_table)

# Remove glucose nodes

glucoseRemoved <- MS_removeNode(nodes = c("cpd:C00267", "cpd:C00221", "cpd:C00031"),
                                MetaboSignal_table)

[Package MetaboSignal version 1.22.0 Index]