title: Split a database of mol2 molecules into N smaller sets
body: <p>I got a big set of molecules from the zinc database (<a href="http://zinc.docking.org/" rel="nofollow noreferrer">http://zinc.docking.org/</a>), in mol2 (<a href="http://tripos.com/index.php?family=modules,SimplePage,,,&amp;page=sup_mol2&amp;s=0" rel="nofollow noreferrer">http://tripos.com/index.php?family=modules,SimplePage,,,&amp;page=sup_mol2&amp;s=0</a>) format. I would like to be able to split this database into an arbitrary set of N smaller databases. What is the best scripting approach in either python, bash or perl for this? I read about openbabel, but it can only generate sets of individual molecules.</p>
  
  <p>If not, I can also convert mol2 to another more convenient format</p>
  
  <p>Thaks</p>