Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Errors with BasicGroupCountDescriptor #23

Closed
egonw opened this issue May 12, 2014 · 4 comments
Closed

Errors with BasicGroupCountDescriptor #23

egonw opened this issue May 12, 2014 · 4 comments

Comments

@egonw
Copy link
Contributor

egonw commented May 12, 2014

Source: https://www.biostars.org/p/100384/

Reproducible with rcdk 3.2.3.2 with:

#! /usr/bin/Rscript
require(rcdk)
drug.mols <- load.molecules(molfiles="./CID_175540.sdf")
descNames <- unique(unlist(sapply(get.desc.categories(), get.desc.names)))
drug.descs <- eval.desc(drug.mols, descNames, verbose=T)

The error you get:

Processing  BasicGroupCountDescriptor 
Error in if (is.na(dval)) return(NA) : argument is of length zero
In addition: Warning message:
In is.na(dval) : is.na() applied to non-(list or vector) of type 'NULL'
@rajarshi
Copy link
Collaborator

Can you include the SD file

@egonw
Copy link
Contributor Author

egonw commented May 12, 2014

Sorry, forgot to include that; it was in the original. It's this one (but I think any SD file will do it...):

http://pubchem.ncbi.nlm.nih.gov/summary/summary.cgi?cid=175540&disopt=SaveSDF

@rajarshi
Copy link
Collaborator

Fixed in github (3.2.7). Note you'll need to install rcdk and rcdklibs from github (haven't pushed to cran yet)

@egonw
Copy link
Contributor Author

egonw commented May 12, 2014

Can you please comment here too? https://www.biostars.org/p/100384/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants