[Biopython] Biopython local blastn query

Peter Cock p.j.a.cock at googlemail.com
Tue Jul 30 15:36:06 UTC 2013


On Tue, Jul 30, 2013 at 4:32 PM, Ara Kooser <ghashsnaga at gmail.com> wrote:
> Ivan,
>
>  Thanks! I found the blastn documentation!! This looks like what I want.
>
> I am running blast 2.2.26. I am getting an error with those parameters.
>
> I entered the parameters as:
> max_hsps_per_subject=1, num_alignments=1 in the NcbiblastnCommandline line
>
>
> Error:
> Aras-MacBook-Air:CEM Genus arakooser$ python meta_data_local.py
>   File "meta_data_local.py", line 30
>     -out="temp.xml", max_hsps_per_subject=1, num_alignments=1)
> SyntaxError: keyword can't be an expression
>
> I think this means I am not using the correct keyword.
>
> ara

Python function argument names can't have minus signs in them,
check the -out bit which should probably just be out.

Peter



More information about the Biopython mailing list