Example Source

Description

The Molecular Biology Toolkit (MBT) provides a wide variety of example programs to help get you started creating your own custom programs using the toolkit. Each example is meant to demonsrate some specific feature of the toolkit. Though these examples provide enough detail to get you started on your way to writing a complete application using MBT, you may also want to refer to the more complete Applications as a guide for more complex and full-featured programs.

Example Programs

FileDescription
BondSearch.javaAn example program which demonsrates how to obtain derived bond pairs.
Elements.javaAn example program which demonstrates the use of theElement and PeriodicTable utility classes.
Explorer.javaImplements an application which incorporates a more complete set ofMBT GUI layer components such as a menubar, TreeViewer, etc...
Filters.javaAn example program which demonstrates StructureComponent Filters.
Fragments.javaAn example program which walks chains-fragments-residues-atoms in orderto simulate the procesing of the secondary structure map.
Info.javaAn example program which demonstrates how to access StructureInfo data.
InfoUtil.javaPrints the genetic code mapping with long amino acid name for allknown mRNA codons. Demonstrates some of the functionality of theNucleicAcidInfo, AminoAcidInfo, and CodonInfo utility classes.4 mRNA nucleic acids --> 64 mRNA Codons --> 20 Amino Acids--> 16000+ proteins
Ligands.javaAn example program which demonstrates the use of the ligandclassification and traversal capabilities of the StructureMap class.
PrintDetails.javaAn example program which demonstrates how to load data andprint out the detailed contents.
PrintDynamic.javaAn example program which demonstrates how to load any structure usingthe StructureFactory class and then dynamically process all data typesavailable in that structure using the StructureComponentRegistry class.
PrintFasta.javaAn example program which demonstrates how to directly instantiate anduse a StructureLoader class to read and print data.
RangeMapTest.javaAn example program which exersises the RangeMap class.
Relations.javaAn example program which demonstrates how to accessrelated structure components. In this example, we walk throughall of the Conformation objects and print each of theirrelated Atom objects.
RenderImage.javaThis class is the main RenderImage application class.It is a command-line tool which loads a structure, optionally displaysa thumbnail using a StructureViewer, then saves the rendered image at arequested width and height to the specified image file.
SimpleViewer.javaThis class is the main SimpleViewer application class.It provides a frame with a menubar and a StructureViewer.
Stats.javaAn example program which gathers statistics about a structure.
StructureMapping.javaAn example program which demonstrates the use of the StructureMap class.
Styles.javaAn example program which demonstrates the use of theStructureStyles and related "viewables" classes.