Enable or disable superposition of multiple structures, with options to specify the reference structure and selection strings for alignment.
setSuperpose(
NGLVieweR,
reference = 1,
sele_reference,
sele_target,
superpose = TRUE
)A NGLVieweR object.
The index of the reference structure to align other structures to. Defaults to 1 (the first loaded structure). The reference keeps its coordinates; every other structure is moved onto it.
Selection string for the reference structure, specifying which parts to align. Mandatory.
Selection string for each target structure, specifying which parts to align. Mandatory.
Logical; if TRUE (default), enable superposition of
multiple structures. Set to FALSE to disable.
Sets the superpose list in the NGLVieweR htmlwidgets
object.
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
)