bp2.find.followers: Construct follower lists for bp2.model objects

Description Usage Arguments Value Author(s) See Also Examples

Description

List slot values of bp2 model objects. Returns value is a follower list for objs that can be processed further with different graph packages

Usage

1
bp2.find.followers(objs, include.slots=NA, exclude.slots=NA)

Arguments

objs

List of bp2 model objects or vector of model object ids in the active model.

include.slots

If value other than NA is specified get only valued of names slots. Otherwise use all slots.

exclude.slots

Don't read the values of these slots.

Value

Returns list that contains one entry for each object id provided as an argument. Each list entry is a vector of integers that are IDs of other objects that are connected to the object.

Author(s)

Ossi Koivistoinen

See Also

bp2.minimum.spanning.tree, bp2.create.model

Examples

1
2
3
4
5
6
7
8
# Create follower list for all objects using all possible connections
my.bp2 <- bp2.create.model(...)
follower.list <- bp2.find.followers(my.bp2@all.objects) 

# See how many different control types there are
controls <- bp2.get.instances.of(my.bp2@all.objects, "bp2.control")
control.types <- bp2.find.followers(controls, include.slots=''controlType'')
table(control.types)

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