AlphaFoldMolstar shiny element
AlphaFoldMolstar.Rd
AlphaFoldMolstar shiny element
Usage
AlphaFoldMolstar(
class = NULL,
uniProtId = NULL,
dimensions = NULL,
useInterface = FALSE,
showControls = FALSE,
showAxes = FALSE,
useCif = FALSE,
...
)
Arguments
- class
character string for the class name to apply to the outer parent element.
- uniProtId
a character string containing a UniProt id that is in the AlphaFold database.
- dimensions
an integer vector indicating the dimensions of the visualization in pixels (
c(width, height)
). By default the molstar plugin will take up the full screen.- useInterface
a logical value indicating if the full Molstar interface will be used around the core canvas.
- showControls
a logical value indicating if the controls will be shown around the sides of the interface. It needs the
useInterface
parameter to be alsoTRUE
. Only recommended for large sizes.- showAxes
a logical value indicating if axes will appear in the bottom left corner.
- useCif
a logical value indicating if the CIF file should be used instead of the PDB (both are retrieved from Alpha Fold's database).
- ...
Component other props and children.
Examples
AlphaFoldMolstar(uniProtId = "A0A1U8FD60", dimensions = c(300, 300))
#> <div class="react-container" data-react-id="hrtfztbnsrafhqmlsyef">
#> <script class="react-data" type="application/json">{"type":"element","module":"@/shiny.molstar","name":"AlphaFoldMolstar","props":{"type":"raw","value":{"className":null,"uniProtId":"A0A1U8FD60","dimensions":[300,300],"useInterface":false,"showControls":false,"showAxes":false}}}</script>
#> <script>jsmodule['@/shiny.react'].findAndRenderReactData('hrtfztbnsrafhqmlsyef')</script>
#> </div>
AlphaFoldMolstar(uniProtId = "A0A1U8FD60", useInterface = TRUE)
#> <div class="react-container" data-react-id="rmqrctuzzklienmufsbj">
#> <script class="react-data" type="application/json">{"type":"element","module":"@/shiny.molstar","name":"AlphaFoldMolstar","props":{"type":"raw","value":{"className":null,"uniProtId":"A0A1U8FD60","dimensions":null,"useInterface":true,"showControls":false,"showAxes":false}}}</script>
#> <script>jsmodule['@/shiny.react'].findAndRenderReactData('rmqrctuzzklienmufsbj')</script>
#> </div>