AllExperts > Encyclopedia 
Search      
Find out about volunteering to AllExperts

BALL: Encyclopedia BETA


Free Encyclopedia
 Home · Index · Browse A-Z  · Questions and Answers ·
Encyclopedia

Browse A-Z
ABCDEFGHIJKLMNOPQRSTUVWXYZNum


License
Disclaimer

 
 
 
 
Free Online Courses
12 Weeks to Weight Loss
Take Charge of Stress
Learn How to Bake
Budgeting 101
Deeper Faith
DIY Fashion Makeover

       MORE E-COURSES
 
   

A B C D E F G H I J K L M N O P Q R S T U V W X Y Z  Misc

BALL


BALL (Biochemical Algorithms Library) is a C++ library containing common algorithms used in biochemistry and bioinformatics. The library also has Python bindings. Among the supported systems are Linux, Solaris, Microsoft Windows. The library can be used for command-line utilities, but it also supports display with Qt and OpenGL.

A structure viewer BALLView that allows viewing PDB, HIN and other formats.

BALL is available under LGPL and GPL licences.

It is developed and maintained by Hans-Peter Lenhof, Oliver Kohlbacher, Andreas Hildebrandt and Andreas Moll.

Example

This small program reads PDB file and outputs names and positions of all atoms in human-readable format.

#include
 using namespace std;
using namespace BALL;

 int main() {
// System is a basic data structure representing all molecules
System sys;

   // Read a molecule from PDB file and add it to the system
PDBFile pdb_file("input.pdb");
pdb_file >> sys;
   pdb_file.close();

   // Iterate over all atoms in the system
AtomIterator ai;
for(ai = sys.beginAtom(); !ai.isEnd(); ++ai) {
// Get atom's position
Vector3 v = ai->getPosition();
       // Print atom's name and atom's position
cout << "Atom " << ai->getFullName() << " is located at position <" << v.x << ", " << v.y << ", " << v.z << ">" << endl;
   }

   return 0;
}

External links

* Project home page
* Tutorial (PDF)



  Rate this Article
   Was this article helpful?
Not at allDefinitely              
   12345  

Email this page
About Us | Advertise on This Site | User Agreement | Privacy Policy | Kids' Privacy Policy | Help
About and About.com are registered trademarks of About, Inc. The About logo is a trademark of About, Inc. All rights reserved.
This is the "GNU Free Documentation License" reference article from the English Wikipedia. All text is available under the terms of the GNU Free Documentation License. See also our Disclaimer.