layoutCopycat: Copy a layout from one network to another

Description Usage Arguments Details Value Examples

View source: R/Layouts.R

Description

Sets the coordinates for each node in the target network to the coordinates of a matching node in the source network.

Usage

1
2
3
4
5
6
7
8
9
layoutCopycat(
  sourceNetwork,
  targetNetwork,
  sourceColumn = "name",
  targetColumn = "name",
  gridUnmapped = TRUE,
  selectUnmapped = TRUE,
  base.url = .defaultBaseUrl
)

Arguments

sourceNetwork

(character) The name of network to get node coordinates from

targetNetwork

(character) The name of the network to apply coordinates to

sourceColumn

(optional character) The name of column in the sourceNetwork node table used to match nodes; default is 'name'

targetColumn

(optional character) The name of column in the targetNetwork node table used to match nodes; default is 'name'

gridUnmapped

(optional character) If this is set to true, any nodes in the target network that could not be matched to a node in the source network will be laid out in a grid; default is TRUE

selectUnmapped

optional character) If this is set to true, any nodes in the target network that could not be matched to a node in the source network will be selected in the target network; default is TRUE

base.url

(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3.

Details

Optional parameters such as gridUnmapped and selectUnmapped determine the behavior of target network nodes that could not be matched.

Value

None

Examples

1
layoutCopycat('network1','network2')

RCy3 documentation built on Nov. 21, 2020, 2 a.m.