pdb.annotate when structureId is not in annoterms

Issue #91 resolved
Lars Skjærven created an issue

from Hongyang Li:

Hi Lars, I find a bug when I use the pdb.annotate() with the new argument "unique". e.g. If I use pdb.annotate("4q21", anno.terms=c("source"), unique=FALSE), it returns NA. I look into the "unique" part of the code and the following line requires "structureId" to filter raw results : inds <- c(inds, which(out$structureId %in% substr(basename(ids),1,4)[i])) It seems that the "anno.terms" has to contain "structureId" to work normally. But actually "anno.terms" could be any terms without "structureId". Do you have a way to fix this bug? Thanks!

Comments (1)

  1. Log in to comment