BLAST Score vs E-value in BioPython
1
0
Entering edit mode
9.0 years ago
dlawre14 ▴ 30

When I use the following in BioPython

result.alignments[0].hsps[0].score

What value is this? Is it the alignment score based on gap and mismatch penalties or the e-value? When using the above, is a larger number or a smaller number better?

biopython blast • 3.5k views
ADD COMMENT
0
Entering edit mode

"better" implies you're trying to do something with the values.

The values are defined by the BLAST method, and are not specific to BioPython. Research what BLAST does and you'll see what each value means.

ADD REPLY
0
Entering edit mode

I know from the blast side the difference between BLAST score and e-value, I was unclear on my call which value BioPython is calling hsps.score, is that equivalent to BLAST score? I am doing a machine learning project on protein function prediction and one of my methods is to align the subject against a database of proteins and then return predicted functionality as the function of the closest aligned protein in the database.

ADD REPLY
2
Entering edit mode
9.0 years ago
DG 7.3k

The documentation for BioPython has this information well defined. For HSPs: http://biopython.org/DIST/docs/api/Bio.Blast.Record.HSP-class.html hsp.score is the score, hsp.expect is the expect value.

As karl.stamm pointed out in his comments, deciding which to use and how to interpret it depends on what you are trying to do and these are well defined by BLAST as to what they mean.

ADD COMMENT
0
Entering edit mode

Ah thank you. I read the documentation and must have missed the hsp.expect choice for hsp records. Boy do I feel dumb.

ADD REPLY

Login before adding your answer.

Traffic: 1527 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6