Pages

Tuesday, 2 December 2014

Converting PDB files to FASTA format with python

This is a simple script to convert PDB files (which contain information about protein structure) into FASTA format, which is just a list of the amino acids. This code handles one PDB file at a time, to do multiple ones put it in a loop e.g. for bash:

for i in `ls *.pdb`; do python pdb2fasta.py $i > $i.fasta; done

In operation, it just looks for lines with 'ATOM', then looks at the residue number to see if has changed. When the residue numbers change it outputs the current amino acid label. Feel free to use/modify this code for any purpose.

9 comments:

  1. Excellent admin, I have learned to convert PDB files to FASTA format with python. Share more like this.
    Python Training Institute in Chennai | Best Python Training in Chennai

    ReplyDelete
  2. Your blog is nice. I believe this will surely help the readers who are really in need of this vital piece of information. Thanks for sharing and kindly keep updating.

    IELTS Coaching in Adyar
    IELTS Class in Thiruvanmiyur
    IELTS Class in Triplicane
    IELTS Coaching in Anna Nagar
    IELTS Coaching Centre in Koyambedu
    IELTS Coaching Centres in Chennai Mogappair
    IELTS Classes near me

    ReplyDelete
  3. Your post is really awesome. Your blog is really helpful for me to develop my skills in a right way. Thanks for sharing this unique information with us.
    - Learn Digital Academy

    ReplyDelete
  4. GlassWire Crack is a new application or service accessing the Internet for the first time? GlassWire Elite Crack politely alerts GlassWire Crack

    ReplyDelete
  5. Mega Downloader crack offers user measured scrambled cloud stowing planetary and dialogue as of side to adjacent regular network browsers. Mega Downloader Pc

    ReplyDelete

  6. There is a plethora of apps available here. This is really a top-notch online resource.
    https://crackguru.net/diffchecker-crack-keygen-download/

    ReplyDelete