[Biopython-dev] Wrong comment, perhaps?

Jeffrey Chang jchang at jeffchang.com
Wed Oct 22 18:03:20 EDT 2003


Yes, you're right.  It should be a list, because there can be multiple 
databases.  I've updated the code in CVS.  Thanks!

jeff


On Wednesday, October 22, 2003, at 05:24  PM, Ying Li wrote:

> Hi,
>
> I'm sorry to bother everyone over such a minor technicality, but in the
> docs and comments in Bio.Blast.Record.Blast, in the class
> DatabaseReport, it says that the attribute num_sequences_in_database is
> the number of sequences in the database, which is an int.
>
> However:
>
> Python 2.3.2 (#2, Oct  6 2003, 08:02:06)
> [GCC 3.3.2 20030908 (Debian prerelease)] on linux2
> Type "help", "copyright", "credits" or "license" for more information.
>>>> from Bio.Blast.NCBIStandalone import BlastParser
>>>> rec = BlastParser().parse(open("blastOutput01.txt"))
>>>> rec.num_sequences_in_database
> [1]
>
> Just wondering if the docs are wrong and it's really supposed to be a
> list (since the database names is also a list) or if the code is wrong
> and it's supposed to just be a number.
>
> (this is not the CVS version, but the tarballed release 1.23 for linux)
>
> Thanks!
> -Ying
>
>
> _______________________________________________
> Biopython-dev mailing list
> Biopython-dev at biopython.org
> http://biopython.org/mailman/listinfo/biopython-dev




More information about the Biopython-dev mailing list