🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: bionet.software
Article #2626

Re: blast command - one hit is sufficient

#2626
From: darked
Date: Tue, 01 Apr 2008 20:20
41 lines
3391 bytes
On 31 Mar, 16:49, martin.burk...@gmail.com wrote:
> Hello NG,
>
> i'm using command line blast for searching multiple nucleotide queries
> against a protein database. For each query I get a detailed output
> with hits on the database surviving my cutoff value. There can be a
> lot of hits for one single query.
>
> For my task it would be sufficient to know if there is any hit (below
> the cutoff) in the database for my query at all. Once the blast search
> was able to determine a hit which e-value is lower than my cutoff
> value it could print this hit to the output, stop searching and
> continue with the next query.
>
> Is some one out there, who can provide me with a simple solution using
> custom command line parameters for my blastall binary?
>
> That's my command until now:
>
> /blastall -p blastx -d /path/to/swissprot -e 1e-10 -i input.fas -m 9 >
> output.bla
>
> (using blastall 2.2.15)
>
> Thank you :-)
> Martin

I do not think that you can change the default behavior of blast (==
look for all matches) without digging into C-code of the program.
There is no program switch to do so. You may restrict the output
with   '-v  1'  switch:
Number of database sequences to show one-line descriptions for (V)
[Integer]

If you badly need to run it a bit faster you may chek the alternative
blast implementations:

http://openwetware.org/wiki/Wikiomics:BLAST_tutorial#BLAST_implementations

darked
http://openwetware.org/wiki/Wikiomics:Bioinfo_tutorial
Technical Details
Message-ID: <mailman.13.1207101793.19248.bio-soft@net.bio.net>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!news.cse.ohio-state.edu!usenet01.sei.cmu.edu!elk.ncren.net!news.purdue.edu!s19g2000prg.googlegroups.com!not-for-mail
References: <mailman.1272.1206986667.2451.bio-soft@net.bio.net>

Show Full Headers
Complete Article Headers
X-Google-Thread: fa6b6,ad7f5f5afb40b269
X-Google-Attributes: gidfa6b6,domainid0,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!news.cse.ohio-state.edu!usenet01.sei.cmu.edu!elk.ncren.net!news.purdue.edu!s19g2000prg.googlegroups.com!not-for-mail
From: darked <darek.kedra@gmail.com>
Newsgroups: bionet.software
Subject: Re: blast command - one hit is sufficient
Date: Tue, 1 Apr 2008 13:20:28 -0700 (PDT)
Organization: http://groups.google.com
Lines: 43
Approved: BIOSCI Approval Key <biosci-approval-key@net.bio.net>
Message-ID: <mailman.13.1207101793.19248.bio-soft@net.bio.net>
References: <mailman.1272.1206986667.2451.bio-soft@net.bio.net>
NNTP-Posting-Host: kalo.bio.indiana.edu
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
X-Trace: mailhub227.itcs.purdue.edu 1207101828 30855 129.79.224.26 (2 Apr 2008 02:03:48 GMT)
X-Complaints-To: news@purdue.edu
NNTP-Posting-Date: Wed, 2 Apr 2008 02:03:48 +0000 (UTC)
To: bionet-software@moderators.isc.org
X-Envelope-From: news@google.com
Complaints-To: groups-abuse@google.com
Injection-Info: s19g2000prg.googlegroups.com; posting-host=155.198.233.119; 
 posting-account=qfPWjQkAAAA6hERiY88HenwmS1bYZo7_
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686; en-Alpha-Centauri; 
 rv:1.8.1.13) Gecko/20080325 LISP Machine/3.14159 (Turing II)
 Firefox/2.0.0.13,gzip(gfe),gzip(gfe)
X-Mailman-Approved-At: Tue, 01 Apr 2008 21:02:40 -0500
X-BeenThere: bio-soft@net.bio.net
X-Mailman-Version: 2.1.4
Precedence: list
X-Auth: PGPMoose V1.1 PGP bionet.software
 iQCVAwUBR/LpYqCIqsWvyF5FAQEZpwP+POPc31LI3uU6rfZK5V3jfmVH623jeukG
 xENHZYeBTvbneWGydANUWH/rI54UQhc82/Ub6PhotqoVfJ7iX5R2hy1ZSFVgRo2A
 YOXL8hyk995BZlnrlW7g77mhgxWRA699XayTcR0L5eptMLmaTI5GskcjDqdLb01i
 J7WiKvrpD8M= =MO0N