subvert: Vertices with an attribute

View source: R/utils.R

subvertR Documentation

Vertices with an attribute

Description

Returns the nodes matching some condition.

Usage

subvert(net, attr, values, affirmative = TRUE)

Arguments

net

An igraph network.

attr

An attribute of the vertices.

values

Possible values of attr

affirmative

Logical. States if a condition must be its affirmation (e.g. all nodes with gene name "X"), or its negation (all nodes not with gene name "X").

Value

The vertices with attribute equal to any of the values in values.

Examples

gi <- get_GI_network(minigwas, snpMapping = minisnpMapping, ppi = minippi)
martini:::subvert(gi, "gene", "A")
martini:::subvert(gi, "name", c("1A1", "1A3"))

hclimente/martini documentation built on Feb. 26, 2024, 6:23 p.m.