[BioPython] More objects on BLAST parser

Sebastian Bassi sbassi at asalup.org
Mon Jun 7 23:54:23 EDT 2004


Hello,

I am working with this code:

from Bio.Blast import NCBIStandalone
b_parser = NCBIStandalone.BlastParser()
bl=open("C:\\bioinfo-adv\\primervsclones\\MS1248-For","r")
b_record= b_parser.parse(bl)
for alignment in b_record.alignments:
     for hsp in alignment.hsps:
         print alignment.title
         print alignment.length
         print hsp.expect
bl.close()

Works great. Now I need to know what other objects could I retrieve with 
this parser. For example I'd like to retrieve:
The lenght of the input/query sequence.
The lenght of the hit sequence.
The identities (like 20/21).
The name of the query sequence.

Another question: Is there a way (looking at the source code) to know 
all the available objects?


-- 
Best regards,

//=\ Sebastian Bassi - Diplomado en Ciencia y Tecnologia, UNQ   //=\
\=// IT Manager Advanta Seeds - Balcarce Research Center -      \=//
//=\ Pro secretario ASALUP - www.asalup.org - PGP key available //=\
\=// E-mail: sbassi at genesdigitales.com - ICQ UIN: 3356556 -     \=//

                 http://Bioinformatica.info



More information about the BioPython mailing list