In this section:
This section discusses the BioJava open source project 59. The Java section discussed the Java programming in general with some bioinformatics examples and the section Web Programming with Java discussed web development with the Java 2 Enterprise Edition using an example from the BioJava API.
The BioJava really stands out as an open source bioinformatics project. The BioJava API's have capabilities for manipulating biological sequences, parsing common file formats, accessing to BioSQL and Ensembl databases, performing statistical analysis, and other tasks. The documentation of the BioJava API's on the project wiki includes a getting started section and is excellent.
Here is an example Java program that uses the BioJava libraries to translate DNA into an amino acid sequence. The source code is also in file TranslateDNA.java.
You will notice is that everything is object oriented. The Java language helps steer you in this direction but the BioJava team has done a nice job of designing a clean and powerful API. Firstly, the program imports the several BioJava classes. Class DNATools provides some useful capabilities for processing DNA sequences. The class RNATools is used to transcribe the given DNA sequence to RNA. Following that RNATools is used again to translate the RNA sequence into an amino acid sequence.
To compile the code enter the command line (for Windows; similar for
UNIX, repacing '\' with '/' and ';' with ':'):
which assumes that the source file is in directory 'src' and places the compiled class file in the directory 'classes'. The compiled class is also in TranslateDNA.class. To run the program enter this at a command prompt:
There are no user comments.
Please send ideas and opinions by email at alexamies@gmail.com.