setSuperpose {NGLVieweR} | R Documentation |
Set superpose
Description
Enable or disable superposition of multiple structures, with options to specify the reference structure and selection strings for alignment.
Usage
setSuperpose(
NGLVieweR,
reference = 1,
sele_reference,
sele_target,
superpose = TRUE
)
Arguments
NGLVieweR |
A NGLVieweR object. |
reference |
The index of the reference structure to align other structures to. Defaults to 1 (the first loaded structure). |
sele_reference |
Selection string for the reference structure, specifying which parts to align. Mandatory. |
sele_target |
Selection string for each target structure, specifying which parts to align. Mandatory. |
superpose |
Logical; if |
Value
Sets the superpose
list in the NGLVieweR
htmlwidgets
object.
Examples
NGLVieweR("1GZM") %>%
addRepresentation("cartoon", param = list(color = "blue")) %>%
addStructure("1U19") %>%
addRepresentation("cartoon", param = list(color = "orange")) %>%
setSuperpose(
reference = 1,
sele_reference = ":A",
sele_target = ":A",
superpose = TRUE
)
[Package NGLVieweR version 1.4.0 Index]