Launch ShinyCAT: Cnet Adjustment Tool
Arguments
- g
igraphobject, or can be NULL if the variable 'g' is defined in 'envir'.- envir
environmentassigned to the R-shiny function space, which may be useful when capturing theigraphobject after manipulation via the R-shiny app.- ...
additional arguments are ignored.
- options
listwith additional settings, for example:host:
characterstring with hostname or IP address to permit incoming connections. Use '0.0.0.0' to accept all incoming host names.port:
numericalport to listen for incoming connections.quiet:
logicalwhether tolaunch.browser:
logicalwhether to launch a web browser, default TRUE for interactive sessions.display.mode:
characterstring with display mode: 'normal' is recommended; 'showcase' displays the code beside the app.
Value
environment invisibly, containing
'g' the input
igraph'adj_cnet' the output
igraphafter manipulation in the R-shiny app. It also contains two attributes for reference:'nodeset_adj':
data.frameused to adjust nodesets.'node_adj':
data.frameused to adjust nodes.
Details
This function launches the R-shiny app 'ShinyCat' to manipulate
a Cnet igraph object, which is expected to contain node (vertex)
attribute 'nodeType' with values 'Gene' and 'Set'.
There are two ways to retain the resulting igraph object:
Capture the output of this function, an
environmentdescribed below.Click "Adjustments" then "Save RData", which stores the 'igraph` object as 'adj_cnet'.
The function returns an environment inside which are two objects:
'g': the
igraphdata input'adj_cnet': the adjusted Cnet
igraphoutput
Additionally, the 'adj_cnet' object contains two attributes:
'nodeset_adj', 'node_adj':
data.frameobjects used bybulk_cnet_adjustments()to convert 'g' into 'adj_cnet'.
See also
Other jam igraph utilities:
color_edges_by_nodegroups(),
color_edges_by_nodes(),
color_nodes_by_nodegroups(),
get_cnet_nodeset(),
jam_igraph(),
subgraph_jam()
Other jam cnet utilities:
adjust_cnet_nodeset(),
adjust_cnet_set_relayout_gene(),
apply_nodeset_spacing(),
bulk_cnet_adjustments(),
get_cnet_nodeset(),
make_cnet_test()
Other jam shiny functions:
shinycat_server(),
shinycat_ui()
Examples
# create Cnet test data
g <- make_cnet_test();
cnetenv <- new.env();
# you must catch the output to use the resulting igraph object
# output_envir <- launch_shinycat();