BALL

BALL project

BALLView
Developer(s) BALL project team
Stable release 1.4.2 / 28 January 2013 (2013-01-28)
Preview release 1.4.79 / 7 August 2014 (2014-08-07)
Written in C++, Python
Operating system Linux/Unix, Windows, OS X
Type library or framework and 3D molecular modelling application
License Lesser GNU Public License (LGPL)
Website www.ball-project.org

BALL is computer software consisting of the versatile C++ class framework BALL (Biochemical Algorithms Library), a library of algorithms and data structures for molecular modelling and computational structural bioinformatics, a Python interface to this library and an open source graphical interface to BALL, the molecule viewer BALLView.

BALL has evolved from a commercial product into free-of-charge open-source software licensed under the GNU Lesser General Public License (LGPL). BALLView is licensed under the GNU General Public License (GPL) license.

BALL and BALLView have been ported to the operating systems Linux, OS X, Solaris, and Windows.

The molecule viewer BALLView, also developed by the BALL project team, is a C++ application of BALL using Qt, and OpenGL with the real-time ray tracer RTFact as render back ends. For both, BALLView offers three-dimensional and stereoscopic visualizing in several different modes, and applying directly the algorithms of the BALL library via its graphical user interface.

The BALL project is developed and maintained by groups at Saarland University, Mainz University, and University of Tübingen. Both the library and the viewer are heavily used for education and research. BALL packages have been made available in the Debian project in April 2010.

Key features

(*) Experimental functionality of the next version

(+) functionality of BALLView

BALL library

The Biochemical Algorithms Library BALL is a comprehensive rapid application development framework for structural bioinformatics. BALL has been carefully designed to address programming experts as well as novices. Users can take advantage of BALL's rich functionality while being offered an extensive framework of C++ data structures and algorithms. A variety of standard structural bioinformatics algorithms are offered and new algorithms can be easily added.

Using BALL as a programming toolbox allows greatly reducing application development times and helps ensure stability and correctness by avoiding often error-prone reimplementation of complex algorithms and replacing them with calls into a library that has been well-tested by many developers.

File import-export

BALL supports a rich variety of molecular file formats like PDB, MOL2, MOL, HIN, XYZ, KCF, SD, AC as well as secondary data sources like DCD, DSN6, GAMESS, JCAMP, SCWRL, and TRR. Molecules can also be created using BALL’s peptide builder or based on SMILES expressions.

General structure analysis

Further preparation and structure validation is enabled by, e.g., Kekuliser-, Aromaticity-, Bondorder-, HBond-, and Secondary Structure processors. A Fragment Library automatically infers missing information, e.g., a protein’s hydrogens or bonds. A Rotamer Library allows determining, assigning, and switching between a protein’s most likely side chain conformations. BALL’s Transformation processors guide generation of valid 3D structures. Its selection mechanism enables to specify parts of a molecule by simple expressions (SMILES, SMARTS, element types). This selection can be used by all modeling classes like the processors or force fields.

Molecular mechanics

Fast and stable implementations of the popular force fields CHARMM, Amber, and MMFF94 can be combined with BALL’s minimizer and simulation classes (steepest descent, conjugate gradient, L-BFGS, and shifted L-VMM).

A variety of standard structural bioinformatics algorithms are offered and new algorithms can be easily added.

Example

The following program reads a PDB file, adds missing information like bonds and hydrogens, optimizes the hydrogen positions using the AMBER force field, and writes the resulting molecule into a second pdb file.

 using namespace std;
 using namespace BALL;
 
 int main() 
 {
   // read a PDB file
   PDBFile file("test.pdb");
   System S;
   file >> S;
   file.close();
 
   // add missing information
   // e.g. hydrogens and bonds
   FragmentDB fragment_db("");
   S.apply(fragment_db.normalize_names);
   S.apply(fragment_db.add_hydrogens);
   S.apply(fragment_db.build_bonds);
 
   // check for charges, bond lengths,
   // and missing atoms
   ResidueChecker checker(fragment_db);
   S.apply(checker);
 
   // create an AMBER force field
   AmberFF FF;
   S.deselect();
   FF.setup(S);
   Selector selector("element(H)");
   S.apply(selector);
 
   // optimize the hydrogen's positions
   ConjugateGradientMinimizer minimizer;
   minimizer.setup(FF);
   minimizer.setEnergyOutputFrequency(1);
   minimizer.minimize(50);
 
   // write a PDB File
   file.open("test_out.pdb", ios::out);
   file << S;
   file.close();
 }

Python interface

SIP is used to automatically create Python classes for all relevant C++ classes in the BALL library to allow for the same class interfaces. The Python classes have the same name as the C++ classes, so porting code that uses BALL from C++ to Python, and vice-versa, is usually a trivial task.

For instance, the above C++ code translates to:

# Example
file = PDBFile("test.pdb")
system = System()
file.read(system)
file.close()
 
# add missing information
# e.g. hydrogens and bonds
fragment_db = FragmentDB("")
system.apply(fragment_db.normalize_names)
system.apply(fragment_db.add_hydrogens)
system.apply(fragment_db.build_bonds)
 
# check for charges, bond lengths,
# and missing atoms
checker = ResidueChecker(fragment_db)
system.apply(checker)
 
# create an AMBER force field
FF = AmberFF()
system.deselect()
FF.setup(system)
selector = Selector("element(H)")
system.apply(selector)
 
# optimize the hydrogen's positions
minimizer = ConjugateGradientMinimizer()
minimizer.setup(FF)
minimizer.setEnergyOutputFrequency(1)
minimizer.minimize(50)
 
# write a PDB File
outfile = PDBFile("test_out.pdb", File.MODE_OUT)
outfile.write(system)
outfile.close()

The Python interface is fully integrated into the viewer application BALLView and thus allows for direct visualization of results computed by python scripts. Also, BALLView can be operated from the scripting interface and recurring tasks can be automated.

BALLView

BALLView is BALL’s standalone molecule modeling and visualization application. It is also a framework to develop molecular visualization functions.

BALLView offers standard visualization models for atoms, bonds, surfaces, and grid based visualization of e.g., electrostatic potentials. BALLView allows loading several molecules at the same time and all representations can be hidden or shown at will. A large part of the functionality of the library BALL can be applied directly to the loaded molecule in BALLView.

BALLView supports several modern visualization and input methods like, for example, different stereo modes, space navigator, and VRPN-supported Input devices.

At CEBIT 2009, BALLView was prominently presented as the first complete integration of real-time ray tracing technology into a molecular viewer and modeling tool.[1]

See also

References

Further reading

External links

This article is issued from Wikipedia - version of the Friday, February 12, 2016. The text is available under the Creative Commons Attribution/Share Alike but additional terms may apply for the media files.