[Biopython-dev] [Biopython - Bug #3363] (New) Blast NCBIXML parser sets HSP gaps varyingly as int or tuple
redmine at redmine.open-bio.org
redmine at redmine.open-bio.org
Sun Jun 10 17:16:37 UTC 2012
Issue #3363 has been reported by Eric Talevich.
----------------------------------------
Bug #3363: Blast NCBIXML parser sets HSP gaps varyingly as int or tuple
https://redmine.open-bio.org/issues/3363
Author: Eric Talevich
Status: New
Priority: Normal
Assignee:
Category:
Target version:
URL:
As described in Bio.Blast.Record, the (obsolete) plain-text Blast parser sets the hsp.gaps attribute as a tuple of (gaps, total aligned), while the NCBIXML parser sets the same attribute as the integer number of gaps when the Hsp_gaps element is parsed. However, the Blast XML report omits this element if there are no gaps in a hit, and so the value of hsps.gaps remains the surprising default value (None, None) instead of an integer.
To avoid breaking the plain-text parser, I would guess the best approach is to set the value of hsp.gaps to 0 initially in the NCBIXML parser.
----------------------------------------
You have received this notification because this email was added to the New Issue Alert plugin
--
You have received this notification because you have either subscribed to it, or are involved in it.
To change your notification preferences, please click here and login: http://redmine.open-bio.org
More information about the Biopython-dev
mailing list