[BioPython] Why _num_letters_in_database XMLBLAST parser?

Peter biopython at maubp.freeserve.co.uk
Mon Mar 31 11:23:05 UTC 2008


On Mon, Mar 31, 2008 at 2:28 AM, Sebastian Bassi <sbassi at gmail.com> wrote:
> Hello,
>
>  I am working at the xml formater (to format BLAST xml to html).
>  I found that the num_letters_in_database data is stored as a "private"
>  attribute.
>
>  When I want to retrieve the num_letters_in_database I have to do:
>
>  >>> fr=NCBIXML.parse(open(f_in)).next()
>  >>> fr._num_letters_in_database    # SEE THE _ before num_letter_in_database
>  4662239

That looks like a bug to me.  The old text parser in
Bio.Blast.NCBIStandalone and the Bio.Blast.Record both use
num_letters_in_database with no leading underscore.

If there are no objections, I'm happy to make that change.

Peter



More information about the Biopython mailing list