MS_removeNode: Remove undesired nodes from the network

Description Usage Arguments Value Examples

View source: R/Find_support_functions.R

Description

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

Usage

1
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

1
2
3
4
5
6
data(MetaboSignal_table)

# Remove glucose nodes

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

MetaboSignal documentation built on Nov. 8, 2020, 6 p.m.