BUG: no generic function mktrj() found

Issue #61 resolved
Xinqiu Yao created an issue
example(mktrj.nma)

mktrj.> ## Fetch stucture
mktrj.> pdb <- read.pdb("1hel")
  Note: Accessing online PDB file
  HEADER    HYDROLASE(O-GLYCOSYL)                   10-JAN-92   1HEL            

mktrj.> ## Calculate (vibrational) normal modes
mktrj.> modes <- nma(pdb)
 Building Hessian...            Done in 0.077 seconds.
 Diagonalizing Hessian...       Done in 0.133 seconds.

mktrj.> ## Visualize modes
mktrj.> m7 <- mktrj(modes, mode=7, file="mode_7.pdb")
Error in eval(expr, envir, enclos) : could not find function "mktrj"

Comments (2)

  1. Xinqiu Yao reporter

    Maybe simply write a generic function like

    mktrj <- function(x, ...) UseMethod("mktrj") ?

  2. Log in to comment