mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
backout -r 10808
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import os
|
||||
import galaxy.tools
|
||||
import re
|
||||
|
||||
from galaxy.exceptions import ObjectInvalid
|
||||
from galaxy.model import LibraryDatasetDatasetAssociation
|
||||
@@ -191,14 +192,20 @@ class DefaultToolAction( object ):
|
||||
data = data.to_history_dataset_association( None )
|
||||
inp_data[name] = data
|
||||
|
||||
else: # HDA
|
||||
if data.hid:
|
||||
input_names.append( 'data %s' % data.hid )
|
||||
# else: # HDA
|
||||
# if data.hid:
|
||||
# input_names.append( 'data %s' % data.hid )
|
||||
input_ext = data.ext
|
||||
|
||||
if data.dbkey not in [None, '?']:
|
||||
input_dbkey = data.dbkey
|
||||
|
||||
data_name_sane = re.sub('[^a-zA-Z0-9_]+', '', data.name)
|
||||
if trans.app.config.use_data_id_on_string:
|
||||
# we want names in our on_strings not numbers
|
||||
input_names.append(data_name_sane)
|
||||
else:
|
||||
if data.hid:
|
||||
input_names.append('data %s' % data.hid)
|
||||
# Collect chromInfo dataset and add as parameters to incoming
|
||||
db_datasets = {}
|
||||
db_dataset = trans.db_dataset_for( input_dbkey )
|
||||
@@ -232,11 +239,14 @@ class DefaultToolAction( object ):
|
||||
if len( input_names ) == 1:
|
||||
on_text = input_names[0]
|
||||
elif len( input_names ) == 2:
|
||||
on_text = '%s and %s' % tuple(input_names[0:2])
|
||||
#on_text = '%s and %s' % tuple(input_names[0:2])
|
||||
on_text = '%s_%s' % tuple(input_names[0:2])
|
||||
elif len( input_names ) == 3:
|
||||
on_text = '%s, %s, and %s' % tuple(input_names[0:3])
|
||||
#on_text = '%s, %s, and %s' % tuple(input_names[0:3])
|
||||
on_text = '%s_%s_%s' % tuple(input_names[0:3])
|
||||
elif len( input_names ) > 3:
|
||||
on_text = '%s, %s, and others' % tuple(input_names[0:2])
|
||||
#on_text = '%s, %s, and others' % tuple(input_names[0:2])
|
||||
on_text = '%s_%s_and_others' % tuple(input_names[0:2])
|
||||
else:
|
||||
on_text = ""
|
||||
# Add the dbkey to the incoming parameters
|
||||
|
||||
@@ -454,5 +454,4 @@ def main():
|
||||
return 1
|
||||
|
||||
if __name__ == "__main__":
|
||||
print '\n\n\n\n#### SGE_ROOT=', os.environ.get('SGE_ROOT','##### no SGE_ROOT!'),'\n\n\n'
|
||||
sys.exit( main() )
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
<?xml version="1.0"?>
|
||||
<toolbox>
|
||||
<section name="Get Data" id="getext">
|
||||
<tool file="rlGAT/rlGAT.xml"/>
|
||||
<tool file="data_source/upload.xml"/>
|
||||
<tool file="data_source/ucsc_tablebrowser.xml" />
|
||||
<tool file="data_source/ucsc_tablebrowser_test.xml" />
|
||||
|
||||
Reference in New Issue
Block a user