Blast Params : Word Size, Gap Existence, Extension Penalties
1
1
Entering edit mode
13.5 years ago
Adi ▴ 10

I have just started Biopython and require some assitance. Using 'NCBIWWW.qblast' function (or any other); how can I set the word size and gap existence,extension penalties for BLASTp? Thanx in advance.

biopython python blast • 4.8k views
ADD COMMENT
5
Entering edit mode
13.5 years ago
brentp 24k

Have a look at the function signature. kwargs are:

word_size gapcosts (for gap open, extend in spaced format: http://www.ncbi.nlm.nih.gov/BLAST/Doc/node28.html)

so example invocation is:

>>> from Bio.Blast import NCBIWWW
>>> NCBIWWW.qblast('blastp', 'nr', open('seqs.fa').read(), word_size=10, gapcosts="10 3")
ADD COMMENT

Login before adding your answer.

Traffic: 2023 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