Skip to contents

Convert a bio3d PCA or NMA object to a character vector for NGLVieweR input

Usage

pca2string(pc, ...)

Arguments

pc

the results of principal component analysis or normal mode analysis as obtained with pca() or nma() and friends.

...

Extra arguments passed to mktrj().

Value

a character vector of structure data.

Author

Barry Grant, bjgrant@ucsd.edu

Examples

 #pdb <- bio3d::read.pdb("6s36")
 #n <- bio3d::nma(pdb)
 #NGLVieweR::NGLVieweR( pca2string(n), format="pdb") |>
 #   NGLVieweR::addRepresentation("cartoon")

 # Or more simpley...
 # view.pdb(n) # Does not work yet!!!
 # view.pdb(n, colorScheme = "residueindex")