network_plot: Subject-level network diagram: Server

Description Usage Arguments Value See Also Examples

View source: R/mod_network_plot.R

Description

Subject-level network diagram: Server

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
network_plot(
  input,
  output,
  session,
  network_data,
  highlighted_codes,
  snp_filter,
  viz_type = "free",
  update_freq = 15,
  action_object
)

Arguments

input, output, session

Auto-filled by callModule | ignore

network_data

Reactive object containing individual network data as generated by meToolkit::setup_network_data.

highlighted_codes

Reactive object containing list with type: ({'pattern', 'code'}) and codes: array of code names that comprise connection pattern to highlight in patients.

snp_filter

Reactive object containing boolean containing info on if we've filtered by snp or not.

viz_type

Character string containing info on which type of network we want to draw. "bipartite" for a plot that puts one node type on either size, or free for a traditional force directed layout. Defaults to 'free'.

update_freq

How many iterations of the layout simulation are run between redrawing the viz. Set to lower value for a smoother animation, higher for better performance. Default is 15 frames.

action_object

A reactiveVal that will be updated by the module upon isolation, deletion, or snp_filtering.

Value

Server component of interactive network plot. Returns type-payload list with the type "isolation, deletion, snp_filtering" to the passed action_object for updating app state.

See Also

network_plot_UI

Examples

1
callModule(info_panel, 'info_panel', snp_name, individual_data, subset_maf)

tbilab/meToolkit documentation built on June 23, 2020, 9:55 a.m.