Last active
August 29, 2015 14:27
-
-
Save pepijn-devries/b46434bb62ff04599596 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# required packages | |
require(rcdk) | |
require(rgl) | |
# download 3D structure of acetylcholine from Pubchem: | |
download.file("https://pubchem.ncbi.nlm.nih.gov/rest/pug/compound/cid/187/record/SDF/?record_type=3d&response_type=save&response_basename=Structure3D_CID_187", | |
"acetylcholine.sdf", mode = "wb") | |
# load the downloaded file: | |
molfile <- load.molecules("acetylcholine.sdf")[[1]] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment