On Jun 5, 2013, at 10:41 PM, Nat Echols wrote:

> On Thu, Jun 6, 2013 at 2:37 PM, GRANT MILLS <[email protected]> 
> wrote:
> My script seems to miscount the columns and read the two as one column, does 
> anyone know how to avoid this? (PS, I've googled this like crazy but I either 
> don't understand or the link is irrelevant)
> 
> You should resist the temptation to write your own PDB parser; that way lies 
> pain and suffering.  There are multiple free libraries for Python that can be 
> used for this task - I recommend either CCTBX or BioPython (probably the 
> latter if you don't need to do very much with the models).
> 
> -Nat


"Resist the urge to duplicate the work of others" should be the first rule of 
programming if its not already (although it's the hardest rule to follow).

I wrote a PDB tutorial for cctbx, which has probably the most powerful python 
PDB parsing library:

http://cctbxwiki.bravais.net/CCTBX_Wiki#CCTBX_Basics


James

Reply via email to