This is a test version of Biostars. For the public version, visit https://www.biostars.org.
Biopython Ncbixml: Retrieve Used Word_Size

I know I can retrieve the expect value, window_size etc that was used submitting the query from the Blast recordclass, but I don't seem to find the wordsize as well. Is there any way to retrieve the set wordsize from the xml file?

biopython blast

1 answer

I found Word size object neither in Biopython NBCIXML class specification, nor in XML blast results, nor in blast txt results.

You should know the word size from you query. If you didn't change the default value, I think it's 3 for blastp and 11 for blastn.

Thanks. Strange that blast logs the settings for expect, but not for word_size. I don't always know the settings, as these blast-actions are usually performed by other people. So I guess I have to log their settings somewhere when they submit their query.

Log in to answer this question.