text: user2862: I have thousands of PDB files and I need to extract the following information from each of them: an ID or the name of the small molecule (ligand) present in the complex.
  Is there a way to do that with BioPython or similar tools? Taking this PDB entry as an example, the tools should return 7FM.
  
  user2862: I found out that the package PyPDB has the function get_ligands that does exactly what I'm looking for.
  
original_text: 2862: <p>I have thousands of PDB files and I need to extract the following information from each of them: an ID or the name of the small molecule (ligand) present in the complex.</p>
  
  <p>Is there a way to do that with BioPython or similar tools? Taking <a href="http://www.rcsb.org/structure/5TO8" rel="nofollow noreferrer">this</a> PDB entry as an example, the tools should return 7FM.</p>
   2862: <p>I found out that the package <a href="https://github.com/williamgilpin/pypdb" rel="nofollow noreferrer">PyPDB</a> has the function <code>get_ligands</code> that does exactly what I'm looking for.</p>
  