Reads an SDF file and extracts the 3D molecule model
read_sdf(filename)
Filename to the sdf file.
List giving the atom locations and the connections between atoms.
#This assumes a hypothetical SDF file in your working directory:
if(file.exists("molecule.sdf")) {
read_pdb("molecule.sdf") %>%
generate_full_scene() %>%
render_model()
}