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

Could you teach me how to install the package named "Zr" in R? #3

Open
liyuan-bioinfo opened this issue May 20, 2020 · 3 comments
Open

Comments

@liyuan-bioinfo
Copy link

liyuan-bioinfo commented May 20, 2020

Dear author,
It may difficult for me to use the R script named 1_zinc_to_chembl.R, because I don't know how to install the package named "Zr" after trying the method such as install.packages("Zr”), and I also don't understand what's the meaning of this codes source("~/work/sea/scripts/zinc_tools.R"). I want to get the information about zinc_id and drug info , I have tried to read your docoment named README, but I can't find any methods help me solve this. Could you help me to deal with this problem?

Your sincerely!
Li-Yuan

@momeara
Copy link
Owner

momeara commented May 20, 2020

Dear Li-Yuan,
Thanks for your interest in the BioChemPantry package!

Zr is another package of mine used to access the ZINC15 webserver. You can find it here: https://github.com/momeara/Zr

source("~/work/sea/scripts/zinc_tools.R") Is a reference to a local file not in the package. I see that it appears in the chembl21 and chembl22 set vignettes. I would recommend using the most recent chembl vignette (chembl25) to get the most recent version of chembl loaded.

@liyuan-bioinfo
Copy link
Author

liyuan-bioinfo commented May 21, 2020

Dear auther:
Thanks for your reply! I have installed Zr successful and it worked. but I want to know why not to use chembl vignette (chembl26) ? I guess ZINC only can download the most recent version of chembl25 by web service.
And when I try to run the codes:

 Zr::catalog_items(
  catalog_short_name="chembl25",
  count='all',
  verbose=T)

the R console shows some ERROR messages when send POST to ZINC web service:
ERROR: url='http://zinc15.docking.org/catalogs/chembl25/items.csv?output_fields=zinc_id%20supplier_code%20substance.preferred_name%20substance.smiles%20substance.purchasable%20substance.purchasability%20substance.gene_names%20substance.rb%20substance.reactive%20substance.features&count=all'
status_code='503'

I guess I should restart my network service or try to download it in another way.

@momeara
Copy link
Owner

momeara commented May 21, 2020 via email

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