BioPython Workshop Gershon Celniker Tel Aviv University
Introduction The Biopython Project is an international association of developers of freely available Python ( tools for computational molecular biology. Python is an object oriented, interpreted, exible language that is becoming increasingly popular for scientific computing. Python is easy to learn, has a very clear syntax and can easily be extended with modules. The Biopython web site ( provides an online resource for modules, scripts, and web links for developers of Python-based software for bioinformatics use and research. Basically, the goal of Biopython is to make it as easy as possible to use Python for bioinformatics by creating high-quality, reusable modules and classes. Biopython features include parsers for various Bioinformatics file formats(BLAST, Clustalw, FASTA, Genbank,...), access to online services (NCBI, Expasy, Clustalw, DSSP, MSMS...) Basically, we just like to program in Python and want to make it as easy as possible to use Python for bioinformatics by creating high-quality, reusable modules and scripts. mples
Introduction The full tutorial located here: Example files are located here:
BioPython, Lets try it!
FASTA format FASTA is pronounced "fast A", and stands for "FAST-All", because it works with any alphabet, an extension of "FAST-P" (protein) and "FAST-N" (nucleotide) alignment.
Lets write our first parsing script Parsing sequence File formatsCypripedioideae (this is the subfamily of lady slipper orchids). This search gave me only 94 hits, which I saved as a FASTA - ls orchid.fasta >gi| |emb|Z |CIZ78533 C.irapeanum 5.8S rRNA gene and ITS1 and ITS2 DNACGTAACAAGGTTTCCGTAGGTGAACCTGCGGAAGGATCATTGATGAGACCGTGGAATAAACG ATCGAGTGAATCCGGAGGACCGGTGTACTCAGCTCACCGGGGGCATTGCTCCCGTGGTGACCCTG ATTTGTTGTTGGG Notice that the FASTA format does not specify the alphabet, so Bio.SeqIO has defaulted to the rathergeneric SingleLetterAlphabet() rather than something DNA specic.
Lets write our first parsing script Output: gi| |emb|Z |CIZ78533 Seq('CGTAACAAGGTTTCCGTAGGTGAACCTGCGGAAGGATCATTGATGAGACCGTGG...CGC', SingleLetterAlphabet()) gi| |emb|Z |PBZ78439 Seq('CATTGTTGAGATCACATAATAATTGATCGAGTTAATCTGGAGGATCTGTTTACT...GCC', SingleLetterAlphabet()) 592
Sequence slicing Output: gi| |emb|Z |CIZ78533
GC content exercise Output: My seq legnth: 32 G: 9
Transcription Output:
Translation
Translation tables
Translation – continued
Retrieving data from the net Output: O23729 CHS3_BROFI RecName: Full=Chalcone synthase 3; EC= ; AltName: Full=Naringenin-chalcone synthase 3; Seq('MAPAMEEIRQAQRAEGPAAVLAIGTSTPPNALYQADYPDYYFRITKSEHLTELK...GAE', ProteinAlphabet()) Length 394 ['Acyltransferase', 'Flavonoid biosynthesis', 'Transferase']
Parsing data from fasta – part B
Alignment
Blast
Plots
Plots - result
Going 3D: The PDB module Bio.
Going 3D: The PDB module Bio.