Posted on Sat 17 Sep 2011 under Bioinformatics
I needed to have a simple FASTA file parser without using Biopython. There are just cases when you need to use some functions in Biopython but you can't install the whole package. In my case, I wanted to handle and process sequences in FASTA format within a Google App Engine web app where it is not possible to install Python packages that have C extensions. Some of you may have other use cases, like when you want just the SeqIO.index() function to parse FASTA files. This is exactly what this short script tries to mimic. It has most of the methods and attributes of an indexed FASTA file using Bio.SeqIO in Biopython.