biopython/biopython

Deprecate record.database_letters, record.query_letters

Open

#1,000 opened on 2016年11月16日

GitHub で見る
 (12 comments) (0 reactions) (0 assignees)Python (3,452 stars) (1,580 forks)batch import
From Redminegood first issue

説明

From redmine XML Blast parser: miscellaneous bug fixes and cleanup Most of the cleanup, bug fixes were done. The last comment was:

We could perhaps deprecate record.database_letters immediately, and at a later point, record.query_letters

There is a TODO in the code regarding this.

@peterjc last comment

I've updated CVS as per comment 12 to also use record.query_length, and comment 13 to also use record.database_length.

Before:

from Bio.Blast import NCBIXML for record in NCBIXML.parse(open("xbt007.xml")) :

... print record.query_id ... print record.query_letters, record.query_length ... print record.num_letters_in_database, record.database_letters, record.database_length ... gi|585505|sp|Q08386|MOPB_RHOCA 270 None 13958303 None None gi|129628|sp|P07175.1|PARA_AGRTU 222 None 13958303 None None

Now, with Bio/Blast/NCBIXML.py CVS revision 1.20 or 1.21,

from Bio.Blast import NCBIXML for record in NCBIXML.parse(open("xbt007.xml")) :

... print record.query_id ... print record.query_letters, record.query_length ... print record.num_letters_in_database, record.database_letters, record.database_length ... gi|585505|sp|Q08386|MOPB_RHOCA 270 270 13958303 None 13958303 gi|129628|sp|P07175.1|PARA_AGRTU 222 222 13958303 None 13958303

We could perhaps deprecate record.database_letters immediately, and at a later point, record.query_letters

コントリビューターガイド