setSuperpose | R Documentation |
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
)
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 |
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
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.