visunet: VisuNet: an interactive tool for network visualization of...

Description Usage Arguments Value References Examples

View source: R/visunet.R

Description

VisuNet is an interactive tool for network visualization of complex rule-based classifiers. See the documentation.

Usage

1
2
3
4
5
6
7
8
visunet(
  ruleSet,
  type = "RDF",
  NodeColorType = "DL",
  NodeSize = "DC",
  CustObjectNodes = list(),
  CustObjectEdges = list()
)

Arguments

ruleSet

the appropriately formatted set of rules:

  • R.ROSETTA data frame - the rules data frame that is the output of R.ROSETTA can be directly imported in VisuNet. See rosetta for details.

  • "Line by line" file format - input data should be in a data frame format that contains the following columns:

    • features - the left-hand side of the rule corresponding to comma-separated attributes and their values, of type, type "factor"

    • decision - the right-hand side of the rule corresponding to the decision value, of type "factor"

    • accuracyRHS - the rule accuracy, of type "numeric"

    • supportRHS - the rule support, of type "numeric"

    • decisionCoverage or coverageRHS - the fraction of correcly classfied objects, of type "numeric"

type

a character string specifying the type of the input data:

  • "RDF" - the R.ROSETTA output (see rosetta)

  • "L" - the "Line by line" file format (see saveLineByLine)

NodeColorType

a character string specifying the color of nodes:

  • "DL" - feature discretization levels, option is available for data discretized into three levels: 1, 2 and 3. In the case of gene expression, data discretization levels correspond to: 1 - under-expressed gene, 2 - no change gene expression and 3 - over-expressed gene.

  • "A" - color of nodes defined by the mean accuracy value for the node.

The default is "DL".

NodeSize

a character string specifying the size of nodes:

  • "DC" - the mean decision coverage for the feature

  • "S" - the mean support for the feature

If the decision coverage value is unavailable, the support is taken by default.

CustObjectNodes

a list that contains the customized VisuNet output for nodes. The list needs to contain two variables:

  • nodes - a customized VisuNet output for nodes

  • CustCol - the names of variables added/changed in the VisuNet output for nodes. See visNodes for details.

CustObjectEdges

a list that contains customized VisuNet output for edges. The list needs to contain two variables:

  • edges - a customized VisuNet output for edges

  • CustCol - the names of variables added/changed in the VisuNet output for edges. See visEdges for details.

Value

Rule Network Object - a collection of lists corresponding to decision variables and an additional list for the combined decision ‘all’. The lists contain information required to reproduce the rule network, i.e. data frames for nodes, edges and RulesSetPerNode - a list that shows rules for each node.

Structure of the data frame for nodes:


Structure of the data frame for edges:

References

See the documentation for more details and examples.

Examples

1
2
3
4
5
6
7
8
9
#The R.ROSETTA output format
#the rule-based model construction using R.ROSETTA
resultsRos <- rosetta(autcon)
vis_out <- visunet(resultsRos$main, type = "RDF")
------------

#"Line by line" file format
rules <- autcon_ruleset
vis_out <- visunet(rules, type = "L")

komorowskilab/VisuNet documentation built on Feb. 18, 2022, 8:16 p.m.