addGqueryAttractors: Add target attractors to a Griffin query.

Description Usage Arguments Value Examples

View source: R/createQueryAttractors.R

Description

Add a dataframe with attractors to a Griffin query. The function takes a dataframe with the attractors where the first column corresponds to the attractor number and the second to the state, so that cyclic attractors can have multiple rows. the rest of the columns corresponds to the nodes of the network The valid values are: 1: active 0: inactive *: non-determined

Usage

1
addGqueryAttractors(j.query, df.attr)

Arguments

j.query

Griffin query

df.attr

dataframe with attractors

Value

query java query to run Griffin

Examples

1
2
3
4
5
6
7
8
data("cellcycle")
topology <- getNetTopology(cellcycle)
cc.attr <- getAttractors(cellcycle)
cc.attr <- attractorToDataframe(cc.attr)

q <- createGqueryGraph(topology, cellcycle$genes)
q <- addGqueryAttractors(q, cc.attr)
print(q)

mar-esther23/rgriffin documentation built on May 29, 2021, 10:03 p.m.