get_net_dist: Get network distances between 2 compounds

View source: R/misc_helper_functions.R

get_net_distR Documentation

Get network distances between 2 compounds

Description

Get network distances between 2 compounds

Usage

get_net_dist(c1, c2, allnet, max_dist = 20)

Arguments

c1

first compound

c2

second compound

allnet

edge list output of generate_genomic_network

max_dist

distance at which the function will stop looking and assume the two compounds are not connected

Value

integer representing the number of reaction steps between the two compounds, or max_dist if they are not connected

Examples

get_net_dist("C00001", "C00002", allnet)

borenstein-lab/mimosa2 documentation built on Dec. 19, 2024, 12:44 a.m.