bp2.get.instances.of: Filter particular class from list of objects

Description Usage Arguments Value Author(s) See Also Examples

Description

Returns instances of only one class from a list of objects of many different classes

Usage

1
bp2.get.instances.of(objs, desired.class.names)

Arguments

objs

List of objects or object ids

desired.class.names

Vector of character strings containing the names of classes to select

Value

Sublist of objs containg objects or object ids of particular class. The type of return value is the same than type of objs argument.

Author(s)

Ossi Koivistoinen

See Also

bp2.model, bp2.create.model

Examples

1
2
my.bp2 <- bp2.create.model(...)
proteins <- bp2.get.instances.of(my.bp2@all.objects, "bp2.protein")

microbiome/biopax2 documentation built on May 22, 2019, 9:56 p.m.