mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-10-25 10:24:38 +08:00
fix for parsing blastdb.loc for the megablast wrapper tool
This commit is contained in:
@@ -30,7 +30,7 @@ def __main__():
|
||||
#Parse Command Line
|
||||
options, args = doc_optparse.parse( __doc__ )
|
||||
|
||||
db_build = options.db_build.split( ' ' )[0]
|
||||
db_build = options.db_build
|
||||
query_filename = options.input.strip()
|
||||
output_filename = options.output.strip()
|
||||
mega_word_size = options.word_size # -W
|
||||
@@ -62,8 +62,7 @@ def __main__():
|
||||
if not line or line.startswith( '#' ):
|
||||
continue
|
||||
fields = line.split( '\t' )
|
||||
if len( fields ) == 2:
|
||||
db[ fields[0].split( ' ' )[0] ] = fields[1]
|
||||
db[ fields[0] ] = fields[1]
|
||||
|
||||
if not db.has_key( db_build ):
|
||||
stop_err( 'Cannot locate the target database. Please check your location file.' )
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
<description> compare short reads against htgs, nt, and wgs databases</description>
|
||||
<command interpreter="python">
|
||||
megablast_wrapper.py
|
||||
--db_build=$source_select
|
||||
--db_build="$source_select"
|
||||
--input=$input_query
|
||||
--word_size=$word_size
|
||||
--identity_cutoff=$iden_cutoff
|
||||
|
||||
Reference in New Issue
Block a user