2008-03-07

A fully working use case with recording


Much hard work has finally paid off and now there is some cool recording features in bioclipse 2. Since I know how you all would love to try it out I am now gonna explain how you can do that. The plugins needed for this example is net.bioclipse.biojava.ui and all it's dependencies. First of all we need a sequence file containing a couple of sequences. I called my file "a.fasta". Something looking like this would suffice:

>a
ACT

>b
ACG

You can create such a file in Bioclipse by right clicking in a project and creating a new file.

Now for the interesting part. This sequence file contains two sequences. If we want to translate one of them we can open the children of the sequence file by clicking on the arrow in the left of it in the bioclipse explorer. Right clicking any of the sequences brings up a context menu where biojava.ui has contributed a few actions. We can for example translate our sequence to a protein sequence. After having done that, bring up the Action History view. It is under the Scripting category in the show view dialog.

The actions history view shows a view of the recording that has been taken place while we have clicked around in the gui. Select the actions you are intrested in, right click and choose Generate JavaScript. The JsScriptGenerator will now do it's best to build a javascript out how the selected actions. That isn't always so easy but I hope it performs quite good and I know that it succeeds with the sequence translation example I have described here. Try it out and please report any problems that you might find.


No comments:

Post a Comment