problem in atom.select

Issue #353 resolved
Former user created an issue

Hi sir, i am just a beginner. I tried the following and got the error.

> pdb <- "nw_4TNR_All.pdb"
> sel1<- atom.select(pdb, resno =c(137,142,145,119,117), chain = "D",elety ="CA")

Error in UseMethod("atom.select") : no applicable method for 'atom.select' applied to an object of class "character"

i know its something silly, but i couldn't find the reason

regards

Comments (3)

  1. Xinqiu Yao

    You need to use a pdb object instead of pdb file name.

    pdb <- read.pdb('nw_4TNR_All.pdb')
    sel1<- atom.select(pdb, resno =c(137,142,145,119,117), chain = "D",elety ="CA")
    
  2. Log in to comment