Bug: pdb.annotate()
Issue #50
resolved
pdbs.anno <- pdb.annotate("2XNS")
#trying URL 'http://www.rcsb.org/pdb/rest/customReport?pdbids=2XNS&customReportColumns=structureId,experimentalTechnique,resolution,chainId,ligandId,ligandName,source,scopDomain,classification,compound,title,citationAuthor,journalName,publicationYear&ssa=n&primaryOnly=1'
#Content type 'text/xml;charset=ISO-8859-1' length 6716 bytes
#opened URL
#==================================================
#downloaded 6716 bytes
#Error in tmp3[pdb.ids %in% unq.ids, ] : incorrect number of dimensions
Comments (2)
-
-
reporter - changed status to resolved
- The reason is that some PDB IDS have empty (character(0)) value
in some of the default terms, which causes the failure of converting
a list to a matrix
- Fixed by replacing character(0) with ""
- Log in to comment
Maybe a case for using "drop=FALSE" option somewhere in tmp3 Hongyang...