[BioPython] Blast parser error

Leighton Pritchard lpritc at scri.sari.ac.uk
Tue Mar 16 07:00:25 EST 2004


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Maqbool, Nauman wrote:
| Hi everyone
|
| I have another (beginner's) question. Is there a way the query title in
| the header of the Blast report can be returned? By Query title I mean
| the title of the sequence used as the query for the Blast search.
|
| I notice that other objects e.g. from title, length and info about hsps
| can be returned very easily but returning objects from header,
| databasereport or parameters is not that straight forward, or is it?
|
| Regards
|
| Nauman

Hi Nauman,

If the record object being returned from the parser is b_record, then
the title of the query sequence in the search producing the record is
b_record.query

(for orientation, alignments are in b_record.alignments, hsps in
b_record.alignments[0].hsps and so on).

Try dir(b_record) for a list of the attributes of your record.

Best,

- --
Dr Leighton Pritchard AMRSC
D104, PPI, Scottish Crop Research Institute
Invergowrie, Dundee, DD2 5DA, Scotland, UK
E: lpritc at scri.sari.ac.uk	W: http://bioinf.scri.sari.ac.uk/index.shtml
T: +44 (0)1382 568579		F: +44 (0)1382 568578
PGP key FEFC205C: GPG key E58BA41B: http://www.keyserver.net
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFAVuxYL1gZ+OWLpBsRAu8+AJwN6vd2wU/YvLMz/yVKUHMkU2Um2QCfQJNG
VS+VEgE3Nd4wuKyk4xig4+0=
=ZqmN
-----END PGP SIGNATURE-----



More information about the BioPython mailing list