[BioPython] Parsing BLAST

Sebastian Bassi sbassi at gmail.com
Wed Aug 27 17:33:52 UTC 2008


On Wed, Aug 27, 2008 at 2:12 PM, Alex Garbino <agarbino at gmail.com> wrote:
> for x in blast_record.alignments:
>    print alignment.title
>
> Traceback (most recent call last):
>  File "<input>", line 2, in <module>
> NameError: name 'alignment' is not defined

You should do:
print x.title

Instead of:
print alignment.title



More information about the Biopython mailing list