Teaching Organic Chemisty

Teaching Organic Chemisty

by James Lovatt -
Number of replies: 19

Is it possoble to integrate chime molecules in moodle. I want to teach organic chemistry and since visualations is essential i wanted to incorporate chime and jmol files into my moodle course for my students to be able to rotate the molecules and see them in 3d, Is it possoble?

If anyone has any other suggestions of using moodle for teaching organic chemistry i would be grateful

Regards

Average of ratings: -
In reply to James Lovatt

Re: Teaching Organic Chemisty

by Samuel Cochran -
I imagine it should be quite easy. Currently you could simply add them as file resources and instruct your students to download the plugin independantly to view the files. However, as a more tightly-integrated method, it would be quite easy to create a resource handler which allows in-page viewing of chime/Jmol files.

Jmol would be the preffered path: it's open source (like Moodle), supports chime files, requires only Java on the client-side, and looks fairly easy to implement.

Chime (the application/plugin) on the other hand is a little trickier as it requires the user to install a plugin from the website. It's a proprietry product, so hosting it on your own server would involve (paid) licensing.

So to answer your question, yes it is possible. If you are interested in proceeding I would be happy to implement something for you. I am currently learning about the Moodle code base and need a few experimental projects.
In reply to Samuel Cochran

Re: Teaching Organic Chemisty

by James Lovatt -
Hi Samuel,
That could be great, to be honest I'm not the most computer literate when it comes to moodle code base but learning. I think I'd have to go the Jmol direction, one of my big issues is that I don't want to have students downloading loads of plugins to run the applications, if it's possible to have a stand alone system that only requires java, that would be fantastic...Also, where I'm working we're in a stage of promoting open source so Jmol would be great

If you want to take this on as your experimental project by all means work away and I will give any assistance I can...

Cheers

James
In reply to Samuel Cochran

Re: Teaching Organic Chemisty

by James Lovatt -
Btw,

Just checked your profile, Spent 6 months in Perth, loved the place, where are you at Uni? Curtain, UWA?
In reply to James Lovatt

Re: Teaching Organic Chemisty

by Samuel Cochran -
I am curently at UWA. With any luck I'll be joining Martin working on the commercial side of Moodle in Australia (http://www.moodle.com.au). That's one of the reasons I'm trying to get to know it now.
In reply to James Lovatt

Re: Teaching Organic Chemisty

by kathy hooper -
Yes, it is very simple. Create a folder outside of moodle to store the models in. Embed them in a label like thus

<embed src="http://www.dogscience.com/trial/NaCl.mol" width="100" height="100" />

view it here
http://www.dogscience.com/aggsci/course/view.php?id=39

In reply to kathy hooper

Re: Teaching Organic Chemisty

by James Lovatt -
Hi Kathy,

Thanks for that, I went to the site you have listed but I didn't know where on the site there was an example? Can you help me with this?

In reply to kathy hooper

Re: Teaching Organic Chemisty

by Samuel Cochran -
That looks like you'd need a plugin which understands ".mol" files, and a server which responds with the correct MIME types. It seems to me that Jmol would be more friendly, cross-compatible solution.

I had a look and it can easily be integrated into the "Resources" mod just like flash and mp3 files are now. You upload it just like another resource, adding title, summary, etc, and it becomes available for independant viewing or embedding.

Sounds good to me! :D
In reply to Samuel Cochran

Re: Teaching Organic Chemisty

by James Lovatt -
Hey Samuel,

I have to go the jmol route as explained above, if you could find of way of incorporating it into moodle as a resource it would be great. I'd love to know how! When I can get jmol files uploaded and working, I would also like to be able to use them in the questioning option, if you know anyway of doing this I would be delighted, I guess once moodle can recognise the file system it can be just embedded (linked to a file in the site itself) My big issue is this all has to be standalone within moodle...

Cheers
In reply to James Lovatt

Re: Teaching Organic Chemisty

by Samuel Cochran -
Hmmm... embedding in quizzes makes things harder.

The easiest way to do is to use HTML in your Quiz questions manually. I'll give you the steps with all file references to your moodle root directory.

Download the jmol library from http://jmol.sf.net/ and put it in your Moodle directory somewhere (I put it in lib/jmol/).

Next, open javascript.php and find the lines that look like this:
<script src="<?php
echo $CFG->httpswwwroot ?>/lib/cookies.js" type="text/javascript" language="JavaScript"></script>
After them, add another line referencing your jmol like so:
<script src="<?php
echo $CFG->httpswwwroot ?>/lib/jmol/Jmol.js" type="text/javascript" language="JavaScript"></script>
Make sure you get the capitolization of your files right!

Now you can upload a mol file (or similar) to your course resource files. Make a note of the URL cause we'll need that in a sec.

Make your quiz and when you've finished editing a question make sure you're in HTML mode (ie click the [<>] button on the wysiwyg editor, if you use it) and, where you want the simulation to appear, enter code along the following lines:
<script type="text/javascript">
jmolApplet(300, "load http://URL/to/file.mol");
script>
Replacing 300 with the (square) size you want it to be (in pixels) and http://URL/to/file.mol to the URL you noted earlier pointing to your file.

I'm not sure if the Moodle filters will let you put a script in there, so if it doesn't let me know and we'll figure out and alternative (which may involve some serious hacking).
In reply to kathy hooper

Re: Teaching Organic Chemisty

by kathy hooper -
you need to download the chime plugin first and set it up on your browser. Here are the instructions I give to my students. You can use our login if you wish.


Download chime - login name = aggsgirl password = PCnbAQ 
Once downloaded, click on it to install. Be patient as this is a very slow site

good luck
kathy
In reply to kathy hooper

Re: Teaching Organic Chemisty

by kathy hooper -
I have just noticed that the first example does not work in firefox for some reason. The second does, however and it is a pdb file.  Internet explorer displays both.
I have used jmol as well. It does have advantages in that students do not need to download a plugin - however it takes a lot longer to display.
kathy
In reply to kathy hooper

Re: Teaching Organic Chemisty

by James Lovatt -
Thanks for that Kathy, Yep I've done that and it works great smile
Unfortunately for my teaching (University) where students use campus and off campus computers i need a method where they don't have to download plugins, thus I can't go the chime route. I'm going to go the Jmol route that stands independent!

Thank you! smile
In reply to James Lovatt

Re: Teaching Organic Chemisty

by Maik Riecken -
Hi,

I am using marvin ( http://www.chemaxon.com ) for this task. This requires only a JavaVM installed on your computer und looks quite fine.  It gives you the ability to design molecules online and save locally.

Maik
In reply to Maik Riecken

Re: Teaching Organic Chemisty

by James Lovatt -
Thanks for that!

Are the files your using 3D or 2D? Can students manipulate the files when in moodle?
In reply to James Lovatt

Re: Teaching Organic Chemisty

by Maik Riecken -
Hi James,

You can choose if you want 2D- or 3D-molecules. Students can choose various parameters, but of course there is no way to change e.g. atom groups and save it to moodle again. But you can build a new module allowing this task. Most molucule files are simple textfiles which can easily touched via PHP... This would be a hard job...

Maik  
In reply to Maik Riecken

Re: Teaching Organic Chemisty

by James Lovatt -
Thats great,

just one quick questoins regarding marvin, when you save files locally, what format do you save them in before putting them on moodle? I wasn't sure which one to use!

Thanks
In reply to James Lovatt

Re: Teaching Organic Chemisty

by Maik Riecken -
I am not sure,

it was a long time ago since I used it. I think *.mol would be a good choice...

Maik