Studio offers two tools that you can use in discussions of molecules:
The following image shows the molecule viewer tool in a course:
To create a molecule viewer tool, you must have permission to upload files to a third-party file hosting site such as Amazon Web Services Simple Storage Service (AWS S3). When you create the molecule viewer, you’ll upload a folder that contains a large number of files to the file hosting site.
Creating a molecule viewer tool has several steps:
Create or download a .mol file for the molecule that you want to show. You can download a variety of .mol files from the BioTopics website. Save the file in a place where you can easily find it.
Download the MoleculeViewerFiles.zip file from edX.
Unzip the MoleculeViewerFiles.zip file that you’ve downloaded.
When you unzip the file, you’ll see a MoleculeViewerFiles folder that contains the following folders and files:
- data (folder)
- j2s (folder)
- js (folder)
- MoleculeViewer.html (file)
Move the .mol file that you downloaded from BioTopics into the data folder that you downloaded from edX.
Edit the MoleculeViewer.html file:
In a text editor, open the MoleculeViewer.html file.
In line 19 of the MoleculeViewer.html file, change Example.mol to the name of your .mol file. For example, if you downloaded the Glucose.mol file, line 19 in your file will look like the following:
script: "set antialiasDisplay; background black; load data/Glucose.mol;"
Upload the entire MoleculeViewerFiles folder to your file hosting site.
Because this folder contains many files, uploading the folder may take several minutes, even over a fast connection.
In Studio, open the unit where you want to add the molecule viewer.
Under Add New Component, click HTML, and then click IFrame.
In the component editor that opens, replace the existing content with your own text.
In the toolbar, click HTML.
In the HTML Source Code box, enter the following line in the place where you want the molecule viewer to appear:
<p><iframe name="moleculeiframe" src="https://path_to_folder/MoleculeViewerFiles/MoleculeViewer.html" width="500" height="500"></iframe></p>
path_to_file with the URL of your file hosting site. For example, the line may look like the following:
<p><iframe name="moleculeiframe" src="https://myfiles.example.com/MoleculeViewerFiles/MoleculeViewer.html" width="500" height="500"></iframe></p>
Click OK to close the HTML Source Code box, and then click Save to save the component.
Click Preview to see your component as a student would see it.