diff --git a/lib/galaxy/security/__init__.py b/lib/galaxy/security/__init__.py
index 730b2147f31..fa0a6650bdc 100644
--- a/lib/galaxy/security/__init__.py
+++ b/lib/galaxy/security/__init__.py
@@ -1005,8 +1005,7 @@ class HostAgent( RBACAgent ):
ucsc_main = ( 'hgw1.cse.ucsc.edu', 'hgw2.cse.ucsc.edu', 'hgw3.cse.ucsc.edu', 'hgw4.cse.ucsc.edu',
'hgw5.cse.ucsc.edu', 'hgw6.cse.ucsc.edu', 'hgw7.cse.ucsc.edu', 'hgw8.cse.ucsc.edu' ),
ucsc_test = ( 'hgwdev.cse.ucsc.edu', ),
- ucsc_archaea = ( 'lowepub.cse.ucsc.edu', ),
- ucsc_bhri = ('ucsc.omics.bhri.internal','galaxy.omics.bhri.internal'),
+ ucsc_archaea = ( 'lowepub.cse.ucsc.edu', )
)
def __init__( self, model, permitted_actions=None ):
self.model = model
@@ -1037,7 +1036,7 @@ class HostAgent( RBACAgent ):
# We're going to search in order, but if the remote site is load
# balancing their connections (as UCSC does), this is okay.
try:
- if socket.gethostbyname( server ) == addr or server == '127.0.0.1' or server == '172.16.0.38':
+ if socket.gethostbyname( server ) == addr:
break # remote host is in the server list
except ( socket.error, socket.gaierror ):
pass # can't resolve, try next
diff --git a/lib/galaxy/tools/__init__.py b/lib/galaxy/tools/__init__.py
index ebbdbed9fcf..c45019061a1 100755
--- a/lib/galaxy/tools/__init__.py
+++ b/lib/galaxy/tools/__init__.py
@@ -922,8 +922,6 @@ class Tool:
if not self.check_values:
return
for input in self.inputs.itervalues():
- if input.name not in value:
- value[input.name] = input.get_initial_value( None, value )
if isinstance( input, ToolParameter ):
callback( "", input, value[input.name] )
else:
diff --git a/lib/galaxy/tools/parameters/basic.py b/lib/galaxy/tools/parameters/basic.py
index 7927d9b9e65..4fef3efafe0 100644
--- a/lib/galaxy/tools/parameters/basic.py
+++ b/lib/galaxy/tools/parameters/basic.py
@@ -748,6 +748,9 @@ class SelectToolParameter( ToolParameter ):
# Dependency on a value that does not yet exist
if isinstance( dep_value, RuntimeValue ):
return True
+ #dataset not ready yet
+ if hasattr( self, 'ref_input' ) and isinstance( dep_value, self.tool.app.model.HistoryDatasetAssociation ) and ( dep_value.is_pending or not isinstance( dep_value.datatype, self.ref_input.formats ) ):
+ return True
# Dynamic, but all dependenceis are known and have values
return False
def get_initial_value( self, trans, context ):
@@ -878,6 +881,7 @@ class ColumnListParameter( SelectToolParameter ):
self.force_select = string_as_bool( elem.get( "force_select", True ))
self.accept_default = string_as_bool( elem.get( "accept_default", False ))
self.data_ref = elem.get( "data_ref", None )
+ self.ref_input = None
self.default_value = elem.get( "default_value", None )
self.is_dynamic = True
def from_html( self, value, trans=None, context={} ):
@@ -973,7 +977,7 @@ class ColumnListParameter( SelectToolParameter ):
if not dataset.metadata.columns:
# Only allow late validation if the dataset is not yet ready
# (since we have reason to expect the metadata to be ready eventually)
- if dataset.is_pending:
+ if dataset.is_pending or not isinstance( dataset.datatype, self.ref_input.formats ):
return True
# No late validation
return False
@@ -1353,7 +1357,7 @@ class DataToolParameter( ToolParameter ):
selected = ( value and ( hda in value ) )
field.add_option( "%s: %s" % ( hid, hda_name ), hda.id, selected )
else:
- target_ext, converted_dataset = hda.find_conversion_destination( self.formats, converter_safe = self.converter_safe( other_values, trans ) )
+ target_ext, converted_dataset = hda.find_conversion_destination( self.formats )
if target_ext:
if converted_dataset:
hda = converted_dataset
@@ -1402,13 +1406,22 @@ class DataToolParameter( ToolParameter ):
pass #no valid options
def dataset_collector( datasets ):
def is_convertable( dataset ):
- target_ext, converted_dataset = dataset.find_conversion_destination( self.formats, converter_safe = self.converter_safe( context, trans ) )
+ target_ext, converted_dataset = dataset.find_conversion_destination( self.formats )
if target_ext is not None:
return True
return False
for i, data in enumerate( datasets ):
- if data.visible and not data.deleted and data.state not in [data.states.ERROR, data.states.DISCARDED] and ( isinstance( data.datatype, self.formats) or is_convertable( data ) ):
- if self.options and self._options_filter_attribute( data ) != filter_value:
+ if data.visible and not data.deleted and data.state not in [data.states.ERROR, data.states.DISCARDED]:
+ is_valid = False
+ if isinstance( data.datatype, self.formats ):
+ is_valid = True
+ else:
+ target_ext, converted_dataset = data.find_conversion_destination( self.formats )
+ if target_ext:
+ is_valid = True
+ if converted_dataset:
+ data = converted_dataset
+ if not is_valid or ( self.options and self._options_filter_attribute( data ) != filter_value ):
continue
most_recent_dataset[0] = data
# Also collect children via association object
diff --git a/lib/galaxy/web/framework/middleware/remoteuser.py b/lib/galaxy/web/framework/middleware/remoteuser.py
index 89fad1c0e67..ec56acb8119 100644
--- a/lib/galaxy/web/framework/middleware/remoteuser.py
+++ b/lib/galaxy/web/framework/middleware/remoteuser.py
@@ -36,7 +36,6 @@ errorpage = """
"""
UCSC_MAIN_SERVERS = (
- 'omics.bhri.internal',
'hgw1.cse.ucsc.edu',
'hgw2.cse.ucsc.edu',
'hgw3.cse.ucsc.edu',
@@ -50,7 +49,6 @@ UCSC_ARCHAEA_SERVERS = (
'lowepub.cse.ucsc.edu',
)
-
class RemoteUser( object ):
def __init__( self, app, maildomain=None, ucsc_display_sites=[], admin_users=[] ):
self.app = app
@@ -58,7 +56,7 @@ class RemoteUser( object ):
self.allow_ucsc_main = False
self.allow_ucsc_archaea = False
self.admin_users = admin_users
- if 'main' in ucsc_display_sites or 'test' in ucsc_display_sites or 'bhri' in ucsc_display_sites:
+ if 'main' in ucsc_display_sites or 'test' in ucsc_display_sites:
self.allow_ucsc_main = True
if 'archaea' in ucsc_display_sites:
self.allow_ucsc_archaea = True
diff --git a/scripts/cleanup_datasets/purge_libraries.sh b/scripts/cleanup_datasets/purge_libraries.sh
index 9166c341c99..d95c8b5cd4d 100644
--- a/scripts/cleanup_datasets/purge_libraries.sh
+++ b/scripts/cleanup_datasets/purge_libraries.sh
@@ -1,5 +1,4 @@
#!/bin/sh
cd `dirname $0`/../..
-#python ./scripts/cleanup_datasets/cleanup_datasets.py ./universe_wsgi.ini -d 10 -4 -r $@ >> ./scripts/cleanup_datasets/purge_libraries.log
-python ./scripts/cleanup_datasets/cleanup_datasets.py ./universe_wsgi.ini -d 2 -4 -r $@ >> ./scripts/cleanup_datasets/purge_libraries.log
+python ./scripts/cleanup_datasets/cleanup_datasets.py ./universe_wsgi.ini -d 10 -4 -r $@ >> ./scripts/cleanup_datasets/purge_libraries.log
diff --git a/templates/admin/dataset_security/group/grid.mako b/templates/admin/dataset_security/group/grid.mako
old mode 100755
new mode 100644
diff --git a/templates/admin/dataset_security/group/group.mako b/templates/admin/dataset_security/group/group.mako
old mode 100755
new mode 100644
diff --git a/templates/admin/dataset_security/group/group_create.mako b/templates/admin/dataset_security/group/group_create.mako
old mode 100755
new mode 100644
diff --git a/templates/admin/dataset_security/group/group_rename.mako b/templates/admin/dataset_security/group/group_rename.mako
old mode 100755
new mode 100644
diff --git a/templates/admin/dataset_security/role/grid.mako b/templates/admin/dataset_security/role/grid.mako
old mode 100755
new mode 100644
diff --git a/templates/admin/dataset_security/role/role.mako b/templates/admin/dataset_security/role/role.mako
old mode 100755
new mode 100644
diff --git a/templates/admin/dataset_security/role/role_create.mako b/templates/admin/dataset_security/role/role_create.mako
old mode 100755
new mode 100644
diff --git a/templates/admin/dataset_security/role/role_rename.mako b/templates/admin/dataset_security/role/role_rename.mako
old mode 100755
new mode 100644
diff --git a/templates/admin/external_service/common.mako b/templates/admin/external_service/common.mako
old mode 100755
new mode 100644
diff --git a/templates/admin/external_service/create_external_service.mako b/templates/admin/external_service/create_external_service.mako
old mode 100755
new mode 100644
diff --git a/templates/admin/external_service/edit_external_service.mako b/templates/admin/external_service/edit_external_service.mako
old mode 100755
new mode 100644
diff --git a/templates/admin/external_service/grid.mako b/templates/admin/external_service/grid.mako
old mode 100755
new mode 100644
diff --git a/templates/admin/external_service/reload_external_service_types.mako b/templates/admin/external_service/reload_external_service_types.mako
old mode 100755
new mode 100644
diff --git a/templates/admin/external_service/view_external_service.mako b/templates/admin/external_service/view_external_service.mako
old mode 100755
new mode 100644
diff --git a/templates/admin/forms/create_form.mako b/templates/admin/forms/create_form.mako
old mode 100755
new mode 100644
diff --git a/templates/admin/forms/edit_form_definition.mako b/templates/admin/forms/edit_form_definition.mako
old mode 100755
new mode 100644
diff --git a/templates/admin/forms/grid.mako b/templates/admin/forms/grid.mako
old mode 100755
new mode 100644
diff --git a/templates/admin/forms/view_form_definition.mako b/templates/admin/forms/view_form_definition.mako
old mode 100755
new mode 100644
diff --git a/templates/admin/jobs.mako b/templates/admin/jobs.mako
old mode 100755
new mode 100644
diff --git a/templates/admin/library/grid.mako b/templates/admin/library/grid.mako
old mode 100755
new mode 100644
diff --git a/templates/admin/library/new_library.mako b/templates/admin/library/new_library.mako
old mode 100755
new mode 100644
diff --git a/templates/admin/memdump.mako b/templates/admin/memdump.mako
old mode 100755
new mode 100644
diff --git a/templates/admin/reload_tool.mako b/templates/admin/reload_tool.mako
old mode 100755
new mode 100644
diff --git a/templates/admin/request_type/common.mako b/templates/admin/request_type/common.mako
old mode 100755
new mode 100644
diff --git a/templates/admin/request_type/create_request_type.mako b/templates/admin/request_type/create_request_type.mako
old mode 100755
new mode 100644
diff --git a/templates/admin/request_type/edit_request_type.mako b/templates/admin/request_type/edit_request_type.mako
old mode 100755
new mode 100644
diff --git a/templates/admin/request_type/grid.mako b/templates/admin/request_type/grid.mako
old mode 100755
new mode 100644
diff --git a/templates/admin/request_type/request_type_permissions.mako b/templates/admin/request_type/request_type_permissions.mako
old mode 100755
new mode 100644
diff --git a/templates/admin/request_type/view_request_type.mako b/templates/admin/request_type/view_request_type.mako
old mode 100755
new mode 100644
diff --git a/templates/admin/requests/grid.mako b/templates/admin/requests/grid.mako
old mode 100755
new mode 100644
diff --git a/templates/admin/requests/reject.mako b/templates/admin/requests/reject.mako
old mode 100755
new mode 100644
diff --git a/templates/admin/requests/rename_datasets.mako b/templates/admin/requests/rename_datasets.mako
old mode 100755
new mode 100644
diff --git a/templates/admin/requests/sample_datasets_grid.mako b/templates/admin/requests/sample_datasets_grid.mako
old mode 100755
new mode 100644
diff --git a/templates/admin/requests/select_datasets_to_transfer.mako b/templates/admin/requests/select_datasets_to_transfer.mako
old mode 100755
new mode 100644
diff --git a/templates/admin/requests/view_sample_dataset.mako b/templates/admin/requests/view_sample_dataset.mako
old mode 100755
new mode 100644
diff --git a/templates/admin/user/grid.mako b/templates/admin/user/grid.mako
old mode 100755
new mode 100644
diff --git a/templates/admin/user/reset_password.mako b/templates/admin/user/reset_password.mako
old mode 100755
new mode 100644
diff --git a/templates/admin/user/user.mako b/templates/admin/user/user.mako
old mode 100755
new mode 100644
diff --git a/templates/base.mako b/templates/base.mako
old mode 100755
new mode 100644
diff --git a/templates/base_panels.mako b/templates/base_panels.mako
old mode 100755
new mode 100644
diff --git a/templates/common/select_template.mako b/templates/common/select_template.mako
old mode 100755
new mode 100644
diff --git a/templates/common/template_common.mako b/templates/common/template_common.mako
old mode 100755
new mode 100644
diff --git a/templates/community_rating.mako b/templates/community_rating.mako
old mode 100755
new mode 100644
diff --git a/templates/dataset/copy_view.mako b/templates/dataset/copy_view.mako
old mode 100755
new mode 100644
diff --git a/templates/dataset/display.mako b/templates/dataset/display.mako
old mode 100755
new mode 100644
diff --git a/templates/dataset/display_application/display.mako b/templates/dataset/display_application/display.mako
old mode 100755
new mode 100644
diff --git a/templates/dataset/edit_attributes.mako b/templates/dataset/edit_attributes.mako
old mode 100755
new mode 100644
diff --git a/templates/dataset/embed.mako b/templates/dataset/embed.mako
old mode 100755
new mode 100644
diff --git a/templates/dataset/errors.mako b/templates/dataset/errors.mako
old mode 100755
new mode 100644
diff --git a/templates/dataset/grid.mako b/templates/dataset/grid.mako
old mode 100755
new mode 100644
diff --git a/templates/dataset/item_content.mako b/templates/dataset/item_content.mako
old mode 100755
new mode 100644
diff --git a/templates/dataset/large_file.mako b/templates/dataset/large_file.mako
old mode 100755
new mode 100644
diff --git a/templates/dataset/security_common.mako b/templates/dataset/security_common.mako
old mode 100755
new mode 100644
diff --git a/templates/display_base.mako b/templates/display_base.mako
old mode 100755
new mode 100644
diff --git a/templates/display_common.mako b/templates/display_common.mako
old mode 100755
new mode 100644
diff --git a/templates/embed_base.mako b/templates/embed_base.mako
old mode 100755
new mode 100644
diff --git a/templates/export_base.mako b/templates/export_base.mako
old mode 100755
new mode 100644
diff --git a/templates/external_services/generic_jquery_grid.mako b/templates/external_services/generic_jquery_grid.mako
old mode 100755
new mode 100644
diff --git a/templates/external_services/generic_json.mako b/templates/external_services/generic_json.mako
old mode 100755
new mode 100644
diff --git a/templates/external_services/json_common.mako b/templates/external_services/json_common.mako
old mode 100755
new mode 100644
diff --git a/templates/form.mako b/templates/form.mako
old mode 100755
new mode 100644
diff --git a/templates/genetrack/base.html b/templates/genetrack/base.html
old mode 100755
new mode 100644
diff --git a/templates/genetrack/index.html b/templates/genetrack/index.html
old mode 100755
new mode 100644
diff --git a/templates/genetrack/invalid.html b/templates/genetrack/invalid.html
old mode 100755
new mode 100644
diff --git a/templates/genetrack/search.html b/templates/genetrack/search.html
old mode 100755
new mode 100644
diff --git a/templates/grid_base.mako b/templates/grid_base.mako
old mode 100755
new mode 100644
diff --git a/templates/grid_base_async.mako b/templates/grid_base_async.mako
old mode 100755
new mode 100644
diff --git a/templates/grid_common.mako b/templates/grid_common.mako
old mode 100755
new mode 100644
diff --git a/templates/history/clone.mako b/templates/history/clone.mako
old mode 100755
new mode 100644
diff --git a/templates/history/display.mako b/templates/history/display.mako
old mode 100755
new mode 100644
diff --git a/templates/history/display_structured.mako b/templates/history/display_structured.mako
old mode 100755
new mode 100644
diff --git a/templates/history/embed.mako b/templates/history/embed.mako
old mode 100755
new mode 100644
diff --git a/templates/history/grid.mako b/templates/history/grid.mako
old mode 100755
new mode 100644
diff --git a/templates/history/item_content.mako b/templates/history/item_content.mako
old mode 100755
new mode 100644
diff --git a/templates/history/list_as_xml.mako b/templates/history/list_as_xml.mako
old mode 100755
new mode 100644
diff --git a/templates/history/list_published.mako b/templates/history/list_published.mako
old mode 100755
new mode 100644
diff --git a/templates/history/options.mako b/templates/history/options.mako
old mode 100755
new mode 100644
diff --git a/templates/history/permissions.mako b/templates/history/permissions.mako
old mode 100755
new mode 100644
diff --git a/templates/history/rename.mako b/templates/history/rename.mako
old mode 100755
new mode 100644
diff --git a/templates/history/share.mako b/templates/history/share.mako
old mode 100755
new mode 100644
diff --git a/templates/history/view.mako b/templates/history/view.mako
old mode 100755
new mode 100644
diff --git a/templates/ind_share_base.mako b/templates/ind_share_base.mako
old mode 100755
new mode 100644
diff --git a/templates/library/common/common.mako b/templates/library/common/common.mako
old mode 100755
new mode 100644
diff --git a/templates/library/common/folder_info.mako b/templates/library/common/folder_info.mako
old mode 100755
new mode 100644
diff --git a/templates/library/common/folder_permissions.mako b/templates/library/common/folder_permissions.mako
old mode 100755
new mode 100644
diff --git a/templates/library/common/import_datasets_to_histories.mako b/templates/library/common/import_datasets_to_histories.mako
old mode 100755
new mode 100644
diff --git a/templates/library/common/ldda_edit_info.mako b/templates/library/common/ldda_edit_info.mako
old mode 100755
new mode 100644
diff --git a/templates/library/common/ldda_info.mako b/templates/library/common/ldda_info.mako
old mode 100755
new mode 100644
diff --git a/templates/library/common/ldda_permissions.mako b/templates/library/common/ldda_permissions.mako
old mode 100755
new mode 100644
diff --git a/templates/library/common/library_dataset_info.mako b/templates/library/common/library_dataset_info.mako
old mode 100755
new mode 100644
diff --git a/templates/library/common/library_dataset_permissions.mako b/templates/library/common/library_dataset_permissions.mako
old mode 100755
new mode 100644
diff --git a/templates/library/common/library_dataset_search_results.mako b/templates/library/common/library_dataset_search_results.mako
old mode 100755
new mode 100644
diff --git a/templates/library/common/library_info.mako b/templates/library/common/library_info.mako
old mode 100755
new mode 100644
diff --git a/templates/library/common/library_item_info.mako b/templates/library/common/library_item_info.mako
old mode 100755
new mode 100644
diff --git a/templates/library/common/library_permissions.mako b/templates/library/common/library_permissions.mako
old mode 100755
new mode 100644
diff --git a/templates/library/common/new_folder.mako b/templates/library/common/new_folder.mako
old mode 100755
new mode 100644
diff --git a/templates/library/common/upload.mako b/templates/library/common/upload.mako
old mode 100755
new mode 100644
diff --git a/templates/library/grid.mako b/templates/library/grid.mako
old mode 100755
new mode 100644
diff --git a/templates/library/index.mako b/templates/library/index.mako
old mode 100755
new mode 100644
diff --git a/templates/message.mako b/templates/message.mako
old mode 100755
new mode 100644
diff --git a/templates/mobile/dataset/detail.mako b/templates/mobile/dataset/detail.mako
old mode 100755
new mode 100644
diff --git a/templates/mobile/dataset/peek.mako b/templates/mobile/dataset/peek.mako
old mode 100755
new mode 100644
diff --git a/templates/mobile/form.mako b/templates/mobile/form.mako
old mode 100755
new mode 100644
diff --git a/templates/mobile/history/detail.mako b/templates/mobile/history/detail.mako
old mode 100755
new mode 100644
diff --git a/templates/mobile/history/list.mako b/templates/mobile/history/list.mako
old mode 100755
new mode 100644
diff --git a/templates/mobile/index.mako b/templates/mobile/index.mako
old mode 100755
new mode 100644
diff --git a/templates/mobile/manage_library.mako b/templates/mobile/manage_library.mako
old mode 100755
new mode 100644
diff --git a/templates/mobile/settings.mako b/templates/mobile/settings.mako
old mode 100755
new mode 100644
diff --git a/templates/no_access.mako b/templates/no_access.mako
old mode 100755
new mode 100644
diff --git a/templates/page/create.mako b/templates/page/create.mako
old mode 100755
new mode 100644
diff --git a/templates/page/display.mako b/templates/page/display.mako
old mode 100755
new mode 100644
diff --git a/templates/page/editor.mako b/templates/page/editor.mako
old mode 100755
new mode 100644
diff --git a/templates/page/history_annotation_table.mako b/templates/page/history_annotation_table.mako
old mode 100755
new mode 100644
diff --git a/templates/page/index.mako b/templates/page/index.mako
old mode 100755
new mode 100644
diff --git a/templates/page/list_published.mako b/templates/page/list_published.mako
old mode 100755
new mode 100644
diff --git a/templates/page/select_items_grid.mako b/templates/page/select_items_grid.mako
old mode 100755
new mode 100644
diff --git a/templates/page/select_items_grid_async.mako b/templates/page/select_items_grid_async.mako
old mode 100755
new mode 100644
diff --git a/templates/page/wymiframe.mako b/templates/page/wymiframe.mako
old mode 100755
new mode 100644
diff --git a/templates/panels.mako b/templates/panels.mako
old mode 100755
new mode 100644
diff --git a/templates/requests/common/add_samples.mako b/templates/requests/common/add_samples.mako
old mode 100755
new mode 100644
diff --git a/templates/requests/common/common.mako b/templates/requests/common/common.mako
old mode 100755
new mode 100644
diff --git a/templates/requests/common/create_request.mako b/templates/requests/common/create_request.mako
old mode 100755
new mode 100644
diff --git a/templates/requests/common/edit_basic_request_info.mako b/templates/requests/common/edit_basic_request_info.mako
old mode 100755
new mode 100644
diff --git a/templates/requests/common/edit_samples.mako b/templates/requests/common/edit_samples.mako
old mode 100755
new mode 100644
diff --git a/templates/requests/common/find_samples.mako b/templates/requests/common/find_samples.mako
old mode 100755
new mode 100644
diff --git a/templates/requests/common/index.mako b/templates/requests/common/index.mako
old mode 100755
new mode 100644
diff --git a/templates/requests/common/sample_dataset_transfer_status.mako b/templates/requests/common/sample_dataset_transfer_status.mako
old mode 100755
new mode 100644
diff --git a/templates/requests/common/sample_datasets.mako b/templates/requests/common/sample_datasets.mako
old mode 100755
new mode 100644
diff --git a/templates/requests/common/sample_state.mako b/templates/requests/common/sample_state.mako
old mode 100755
new mode 100644
diff --git a/templates/requests/common/view_request.mako b/templates/requests/common/view_request.mako
old mode 100755
new mode 100644
diff --git a/templates/requests/common/view_request_history.mako b/templates/requests/common/view_request_history.mako
old mode 100755
new mode 100644
diff --git a/templates/requests/common/view_sample.mako b/templates/requests/common/view_sample.mako
old mode 100755
new mode 100644
diff --git a/templates/requests/common/view_sample_datasets.mako b/templates/requests/common/view_sample_datasets.mako
old mode 100755
new mode 100644
diff --git a/templates/requests/common/view_sample_history.mako b/templates/requests/common/view_sample_history.mako
old mode 100755
new mode 100644
diff --git a/templates/requests/find_samples_index.mako b/templates/requests/find_samples_index.mako
old mode 100755
new mode 100644
diff --git a/templates/requests/grid.mako b/templates/requests/grid.mako
old mode 100755
new mode 100644
diff --git a/templates/requests/index.mako b/templates/requests/index.mako
old mode 100755
new mode 100644
diff --git a/templates/root/history.mako b/templates/root/history.mako
old mode 100755
new mode 100644
diff --git a/templates/root/history_as_xml.mako b/templates/root/history_as_xml.mako
old mode 100755
new mode 100644
diff --git a/templates/root/history_common.mako b/templates/root/history_common.mako
old mode 100755
new mode 100644
diff --git a/templates/root/history_item.mako b/templates/root/history_item.mako
old mode 100755
new mode 100644
diff --git a/templates/root/index.mako b/templates/root/index.mako
old mode 100755
new mode 100644
diff --git a/templates/root/redirect.mako b/templates/root/redirect.mako
old mode 100755
new mode 100644
diff --git a/templates/root/tool_menu.mako b/templates/root/tool_menu.mako
old mode 100755
new mode 100644
diff --git a/templates/sharing_base.mako b/templates/sharing_base.mako
old mode 100755
new mode 100644
diff --git a/templates/show_params.mako b/templates/show_params.mako
old mode 100755
new mode 100644
diff --git a/templates/tagging_common.mako b/templates/tagging_common.mako
old mode 100755
new mode 100644
diff --git a/templates/tool_executed.mako b/templates/tool_executed.mako
old mode 100755
new mode 100644
diff --git a/templates/tool_form.mako b/templates/tool_form.mako
old mode 100755
new mode 100644
diff --git a/templates/tracks/add_to_viz.mako b/templates/tracks/add_to_viz.mako
old mode 100755
new mode 100644
diff --git a/templates/tracks/add_tracks.mako b/templates/tracks/add_tracks.mako
old mode 100755
new mode 100644
diff --git a/templates/tracks/browser.mako b/templates/tracks/browser.mako
old mode 100755
new mode 100644
diff --git a/templates/tracks/history_datasets_select_grid.mako b/templates/tracks/history_datasets_select_grid.mako
old mode 100755
new mode 100644
diff --git a/templates/tracks/history_select_grid.mako b/templates/tracks/history_select_grid.mako
old mode 100755
new mode 100644
diff --git a/templates/tracks/index.mako b/templates/tracks/index.mako
old mode 100755
new mode 100644
diff --git a/templates/tracks/new_browser.mako b/templates/tracks/new_browser.mako
old mode 100755
new mode 100644
diff --git a/templates/user/dbkeys.mako b/templates/user/dbkeys.mako
old mode 100755
new mode 100644
diff --git a/templates/user/edit_address.mako b/templates/user/edit_address.mako
old mode 100755
new mode 100644
diff --git a/templates/user/index.mako b/templates/user/index.mako
old mode 100755
new mode 100644
diff --git a/templates/user/info.mako b/templates/user/info.mako
old mode 100755
new mode 100644
diff --git a/templates/user/login.mako b/templates/user/login.mako
old mode 100755
new mode 100644
diff --git a/templates/user/logout.mako b/templates/user/logout.mako
old mode 100755
new mode 100644
diff --git a/templates/user/new_address.mako b/templates/user/new_address.mako
old mode 100755
new mode 100644
diff --git a/templates/user/openid_associate.mako b/templates/user/openid_associate.mako
old mode 100755
new mode 100644
diff --git a/templates/user/openid_manage.mako b/templates/user/openid_manage.mako
old mode 100755
new mode 100644
diff --git a/templates/user/permissions.mako b/templates/user/permissions.mako
old mode 100755
new mode 100644
diff --git a/templates/user/register.mako b/templates/user/register.mako
old mode 100755
new mode 100644
diff --git a/templates/user/reset_password.mako b/templates/user/reset_password.mako
old mode 100755
new mode 100644
diff --git a/templates/visualization/create.mako b/templates/visualization/create.mako
old mode 100755
new mode 100644
diff --git a/templates/visualization/display.mako b/templates/visualization/display.mako
old mode 100755
new mode 100644
diff --git a/templates/visualization/embed.mako b/templates/visualization/embed.mako
old mode 100755
new mode 100644
diff --git a/templates/visualization/item_content.mako b/templates/visualization/item_content.mako
old mode 100755
new mode 100644
diff --git a/templates/visualization/list.mako b/templates/visualization/list.mako
old mode 100755
new mode 100644
diff --git a/templates/visualization/list_published.mako b/templates/visualization/list_published.mako
old mode 100755
new mode 100644
diff --git a/templates/webapps/community/admin/center.mako b/templates/webapps/community/admin/center.mako
old mode 100755
new mode 100644
diff --git a/templates/webapps/community/admin/index.mako b/templates/webapps/community/admin/index.mako
old mode 100755
new mode 100644
diff --git a/templates/webapps/community/base_panels.mako b/templates/webapps/community/base_panels.mako
old mode 100755
new mode 100644
diff --git a/templates/webapps/community/category/create_category.mako b/templates/webapps/community/category/create_category.mako
old mode 100755
new mode 100644
diff --git a/templates/webapps/community/category/edit_category.mako b/templates/webapps/community/category/edit_category.mako
old mode 100755
new mode 100644
diff --git a/templates/webapps/community/category/grid.mako b/templates/webapps/community/category/grid.mako
old mode 100755
new mode 100644
diff --git a/templates/webapps/community/common/common.mako b/templates/webapps/community/common/common.mako
old mode 100755
new mode 100644
diff --git a/templates/webapps/community/index.mako b/templates/webapps/community/index.mako
old mode 100755
new mode 100644
diff --git a/templates/webapps/community/message.mako b/templates/webapps/community/message.mako
old mode 100755
new mode 100644
diff --git a/templates/webapps/community/user/info.mako b/templates/webapps/community/user/info.mako
old mode 100755
new mode 100644
diff --git a/templates/webapps/demo_sequencer/empty.mako b/templates/webapps/demo_sequencer/empty.mako
old mode 100755
new mode 100644
diff --git a/templates/webapps/demo_sequencer/index.mako b/templates/webapps/demo_sequencer/index.mako
old mode 100755
new mode 100644
diff --git a/templates/webapps/demo_sequencer/login.mako b/templates/webapps/demo_sequencer/login.mako
old mode 100755
new mode 100644
diff --git a/templates/webapps/demo_sequencer/redirect.mako b/templates/webapps/demo_sequencer/redirect.mako
old mode 100755
new mode 100644
diff --git a/templates/webapps/galaxy/admin/center.mako b/templates/webapps/galaxy/admin/center.mako
old mode 100755
new mode 100644
diff --git a/templates/webapps/galaxy/admin/index.mako b/templates/webapps/galaxy/admin/index.mako
old mode 100755
new mode 100644
diff --git a/templates/webapps/galaxy/base_panels.mako b/templates/webapps/galaxy/base_panels.mako
old mode 100755
new mode 100644
diff --git a/templates/webapps/galaxy/user/api_keys.mako b/templates/webapps/galaxy/user/api_keys.mako
old mode 100755
new mode 100644
diff --git a/templates/webapps/galaxy/user/info.mako b/templates/webapps/galaxy/user/info.mako
old mode 100755
new mode 100644
diff --git a/templates/webapps/reports/base_panels.mako b/templates/webapps/reports/base_panels.mako
old mode 100755
new mode 100644
diff --git a/templates/webapps/reports/dataset_info.mako b/templates/webapps/reports/dataset_info.mako
old mode 100755
new mode 100644
diff --git a/templates/webapps/reports/grid.mako b/templates/webapps/reports/grid.mako
old mode 100755
new mode 100644
diff --git a/templates/webapps/reports/index.mako b/templates/webapps/reports/index.mako
old mode 100755
new mode 100644
diff --git a/templates/webapps/reports/job_info.mako b/templates/webapps/reports/job_info.mako
old mode 100755
new mode 100644
diff --git a/templates/webapps/reports/jobs_per_domain.mako b/templates/webapps/reports/jobs_per_domain.mako
old mode 100755
new mode 100644
diff --git a/templates/webapps/reports/jobs_per_month_all.mako b/templates/webapps/reports/jobs_per_month_all.mako
old mode 100755
new mode 100644
diff --git a/templates/webapps/reports/jobs_per_month_in_error.mako b/templates/webapps/reports/jobs_per_month_in_error.mako
old mode 100755
new mode 100644
diff --git a/templates/webapps/reports/jobs_per_tool.mako b/templates/webapps/reports/jobs_per_tool.mako
old mode 100755
new mode 100644
diff --git a/templates/webapps/reports/jobs_per_user.mako b/templates/webapps/reports/jobs_per_user.mako
old mode 100755
new mode 100644
diff --git a/templates/webapps/reports/jobs_specified_month_all.mako b/templates/webapps/reports/jobs_specified_month_all.mako
old mode 100755
new mode 100644
diff --git a/templates/webapps/reports/jobs_specified_month_in_error.mako b/templates/webapps/reports/jobs_specified_month_in_error.mako
old mode 100755
new mode 100644
diff --git a/templates/webapps/reports/jobs_tool_per_month.mako b/templates/webapps/reports/jobs_tool_per_month.mako
old mode 100755
new mode 100644
diff --git a/templates/webapps/reports/jobs_user_per_month.mako b/templates/webapps/reports/jobs_user_per_month.mako
old mode 100755
new mode 100644
diff --git a/templates/webapps/reports/registered_users.mako b/templates/webapps/reports/registered_users.mako
old mode 100755
new mode 100644
diff --git a/templates/webapps/reports/registered_users_per_month.mako b/templates/webapps/reports/registered_users_per_month.mako
old mode 100755
new mode 100644
diff --git a/templates/webapps/reports/registered_users_specified_date.mako b/templates/webapps/reports/registered_users_specified_date.mako
old mode 100755
new mode 100644
diff --git a/templates/webapps/reports/registered_users_specified_month.mako b/templates/webapps/reports/registered_users_specified_month.mako
old mode 100755
new mode 100644
diff --git a/templates/webapps/reports/system.mako b/templates/webapps/reports/system.mako
old mode 100755
new mode 100644
diff --git a/templates/webapps/reports/users_last_access_date.mako b/templates/webapps/reports/users_last_access_date.mako
old mode 100755
new mode 100644
diff --git a/templates/workflow/build_from_current_history.mako b/templates/workflow/build_from_current_history.mako
old mode 100755
new mode 100644
diff --git a/templates/workflow/configure_menu.mako b/templates/workflow/configure_menu.mako
old mode 100755
new mode 100644
diff --git a/templates/workflow/display.mako b/templates/workflow/display.mako
old mode 100755
new mode 100644
diff --git a/templates/workflow/edit_attributes.mako b/templates/workflow/edit_attributes.mako
old mode 100755
new mode 100644
diff --git a/templates/workflow/editor.mako b/templates/workflow/editor.mako
old mode 100755
new mode 100644
diff --git a/templates/workflow/editor_generic_form.mako b/templates/workflow/editor_generic_form.mako
old mode 100755
new mode 100644
diff --git a/templates/workflow/editor_tool_form.mako b/templates/workflow/editor_tool_form.mako
old mode 100755
new mode 100644
diff --git a/templates/workflow/embed.mako b/templates/workflow/embed.mako
old mode 100755
new mode 100644
diff --git a/templates/workflow/export.mako b/templates/workflow/export.mako
old mode 100755
new mode 100644
diff --git a/templates/workflow/index.mako b/templates/workflow/index.mako
old mode 100755
new mode 100644
diff --git a/templates/workflow/item_content.mako b/templates/workflow/item_content.mako
old mode 100755
new mode 100644
diff --git a/templates/workflow/list.mako b/templates/workflow/list.mako
old mode 100755
new mode 100644
diff --git a/templates/workflow/list_for_run.mako b/templates/workflow/list_for_run.mako
old mode 100755
new mode 100644
diff --git a/templates/workflow/list_published.mako b/templates/workflow/list_published.mako
old mode 100755
new mode 100644
diff --git a/templates/workflow/myexp_export.mako b/templates/workflow/myexp_export.mako
old mode 100755
new mode 100644
diff --git a/templates/workflow/myexp_export_content.mako b/templates/workflow/myexp_export_content.mako
old mode 100755
new mode 100644
diff --git a/templates/workflow/rename.mako b/templates/workflow/rename.mako
old mode 100755
new mode 100644
diff --git a/templates/workflow/run.mako b/templates/workflow/run.mako
old mode 100755
new mode 100644
diff --git a/templates/workflow/run_complete.mako b/templates/workflow/run_complete.mako
old mode 100755
new mode 100644
diff --git a/templates/workflow/sharing.mako b/templates/workflow/sharing.mako
old mode 100755
new mode 100644
diff --git a/tool-data/shared/ucsc/ucsc_build_sites.txt b/tool-data/shared/ucsc/ucsc_build_sites.txt
index 1554e1a6c4e..7e4207fa286 100644
--- a/tool-data/shared/ucsc/ucsc_build_sites.txt
+++ b/tool-data/shared/ucsc/ucsc_build_sites.txt
@@ -1,6 +1,5 @@
#Harvested from http://genome.ucsc.edu/cgi-bin/das/dsn
main http://genome.ucsc.edu/cgi-bin/hgTracks? priPac1,danRer4,mm9,mm8,droAna1,mm5,caeRem2,mm7,mm6,panTro1,dm3,panTro2,anoCar1,ce4,galGal3,galGal2,ce1,rn3,rn2,droMoj1,droMoj2,rn4,droYak1,droYak2,dp3,dp2,dm1,canFam1,danRer5,canFam2,danRer3,danRer2,ornAna1,ci2,ci1,tetNig1,bosTau1,bosTau3,bosTau2,equCab1,oryLat1,droAna2,droEre1,ponAbe2,rheMac2,sacCer1,droPer1,droSim1,monDom1,cb1,dm2,droSec1,strPur1,droVir2,droVir1,strPur2,sc1,xenTro1,droGri1,xenTro2,cb3,gasAcu1,caePb1,anoGam1,fr2,fr1,hg15,hg16,hg17,hg18,felCat3,apiMel2,monDom4,apiMel1,ce2
-bhri http://ucsc.omics.bhri.internal/cgi-bin/hgTracks? hg18,hg19,mm8,mm9,rn4
#Harvested from http://archaea.ucsc.edu/cgi-bin/das/dsn
archaea http://archaea.ucsc.edu/cgi-bin/hgTracks? alkaEhrl_MLHE_1,shewW318,idioLoih_L2TR,sulSol1,erwiCaro_ATROSEPTICA,symbTher_IAM14863,moorTher_ATCC39073,therFusc_YX,methHung1,bradJapo,therElon,shewPutrCN32,pediPent_ATCC25745,mariMari_MCS10,nanEqu1,baciSubt,chlaTrac,magnMagn_AMB_1,chroViol,ralsSola,acidCryp_JF_5,erytLito_HTCC2594,desuVulg_HILDENBOROUG,pyrAer1,sulfToko1,shewANA3,paraSp_UWE25,geobKaus_HTA426,rhizEtli_CFN_42,uncuMeth_RCI,candBloc_FLORIDANUS,deinRadi,yersPest_CO92,saccEryt_NRRL_2338,rhodRHA1,candCars_RUDDII,burkMall_ATCC23344,eschColi_O157H7,burk383,psycIngr_37,rhodSpha_2_4_1,wolbEndo_OF_DROSOPHIL,burkViet_G4,propAcne_KPA171202,enteFaec_V583,campJeju_81_176,acidJS42,heliPylo_26695,pseuHalo_TAC125,chroSale_DSM3043,methVann1,archFulg1,neisMeni_Z2491_1,fusoNucl,vermEise_EF01_2,anabVari_ATCC29413,tropWhip_TW08_27,heliHepa,acinSp_ADP1,anapMarg_ST_MARIES,natrPhar1,haheChej_KCTC_2396,therPetr_RKU_1,neisGono_FA1090_1,colwPsyc_34H,desuPsyc_LSV54,hyphNept_ATCC15444,vibrChol1,deinGeot_DSM11300,strePyog_M1_GAS,franCcI3,salmTyph,metaSedu,lactSali_UCC118,trepPall,neisMeni_MC58_1,syntWolf_GOETTINGEN,flavJohn_UW101,methBoon1,haemSomn_129PT,shewLoihPV4,igniHosp1,haemInfl_KW20,haloHalo_SL1,ferrAcid1,sphiAlas_RB2256,candPela_UBIQUE_HTCC1,caldSacc_DSM8903,aerPer1,lactPlan,carbHydr_Z_2901,therTher_HB8,vibrVuln_YJ016_1,rhodPalu_CGA009,acidCell_11B,siliPome_DSS_3,therVolc1,haloWals1,rubrXyla_DSM9941,shewAmaz,nocaJS61,vibrVuln_CMCP6_1,sinoMeli,ureaUrea,baciHalo,bartHens_HOUSTON_1,nitrWino_NB_255,hypeButy1,methBurt2,polaJS66,mesoLoti,methMari_C7,caulCres,neisMeni_FAM18_1,acidBact_ELLIN345,caldMaqu1,salmEnte_PARATYPI_ATC,glucOxyd_621H,cytoHutc_ATCC33406,nitrEuro,therMari,coxiBurn,woliSucc,heliPylo_HPAG1,mesoFlor_L1,pyrHor1,methAeol1,procMari_CCMP1375,pyroArse1,oenoOeni_PSU_1,alcaBork_SK2,wiggBrev,actiPleu_L20,lactLact,methJann1,paraDeni_PD1222,borrBurg,pyroIsla1,orieTsut_BORYONG,shewMR4,methKand1,methCaps_BATH,onioYell_PHYTOPLASMA,bordBron,cenaSymb1,burkCeno_HI2424,franTula_TULARENSIS,pyrFur2,mariAqua_VT8,heliPylo_J99,psycArct_273_4,vibrChol_MO10_1,vibrPara1,rickBell_RML369_C,metAce1,buchSp,ehrlRumi_WELGEVONDEN,methLabrZ_1,chlaPneu_CWL029,thioCrun_XCL_2,pyroCali1,chloTepi_TLS,stapAure_MU50,novoArom_DSM12444,magnMC1,zymoMobi_ZM4,salmTyph_TY2,chloChlo_CAD3,azoaSp_EBN1,therTher_HB27,bifiLong,picrTorr1,listInno,bdelBact,gramFors_KT0803,sulfAcid1,geobTher_NG80_2,peloCarb,ralsEutr_JMP134,mannSucc_MBEL55E,syneSp_WH8102,methTherPT1,clavMich_NCPPB_382,therAcid1,syntAcid_SB,porpGing_W83,therNeut0,leifXyli_XYLI_CTCB0,shewFrig,photProf_SS9,thioDeni_ATCC25259,methMaze1,desuRedu_MI_1,burkThai_E264,campFetu_82_40,blocFlor,jannCCS1,nitrMult_ATCC25196,streCoel,soliUsit_ELLIN6076,pastMult,saliRube_DSM13855,methTher1,nostSp,shigFlex_2A,saccDegr_2_40,oceaIhey,dehaEthe_195,rhodRubr_ATCC11170,arthFB24,shewMR7,pireSp,anaeDeha_2CP_C,haloVolc1,dichNodo_VCS1703A,tricEryt_IMS101,mycoGeni,thioDeni_ATCC33889,methSmit1,geobUran_RF4,shewDeni,halMar1,desuHafn_Y51,methStad1,granBeth_CGDNIH1,therPend1,legiPneu_PHILADELPHIA,vibrChol_O395_1,nitrOcea_ATCC19707,campJeju_RM1221,methPetr_PM1,heliAcin_SHEEBA,eschColi_APEC_O1,peloTher_SI,haloHalo1,syntFuma_MPOB,xyleFast,gloeViol,leucMese_ATCC8293,bactThet_VPI_5482,xantCamp,sodaGlos_MORSITANS,geobSulf,roseDeni_OCH_114,coryEffi_YS_314,brucMeli,mycoTube_H37RV,vibrFisc_ES114_1,pyrAby1,burkXeno_LB400,polyQLWP,stapMari1,peloLute_DSM273,burkCeno_AU_1054,shewBalt,nocaFarc_IFM10152,ente638,mculMari1,saliTrop_CNB_440,neorSenn_MIYAYAMA,aquiAeol,dechArom_RCB,myxoXant_DK_1622,burkPseu_1106A,burkCepa_AMMD,methMari_C5_1,azorCaul2,methFlag_KT,leptInte,eschColi_K12,synePCC6,baumCica_HOMALODISCA,methBark1,pseuAeru,geobMeta_GS15,eschColi_CFT073,photLumi,metMar1,hermArse,campJeju,therKoda1,aeroHydr_ATCC7966,baciAnth_AMES,shewOnei,therTeng,lawsIntr_PHE_MN1_00
#Harvested from http://genome-test.cse.ucsc.edu/cgi-bin/das/dsn
diff --git a/tool_conf.xml.sample b/tool_conf.xml.sample
index 86d691352f4..f0352e4b419 100644
--- a/tool_conf.xml.sample
+++ b/tool_conf.xml.sample
@@ -368,7 +368,6 @@
diff --git a/tools/data_source/ucsc_tablebrowser.xml b/tools/data_source/ucsc_tablebrowser.xml
index 2d1644c693a..3a7154e23cc 100644
--- a/tools/data_source/ucsc_tablebrowser.xml
+++ b/tools/data_source/ucsc_tablebrowser.xml
@@ -5,27 +5,27 @@
initial response ( in addition to 'URL' ) will be encoded and appended to URL and a post will be performed.
-->
- table browser
- data_source.py $output $__app__.config.output_size_limit
-
- go to UCSC Table Browser $GALAXY_URL
-
-
-
-
-
-
-
+ table browser
+ data_source.py $output $__app__.config.output_size_limit
+
+ go to UCSC Table Browser $GALAXY_URL
+
+
+
+
+
+
+
-
-
-
+
+
+
-
-
+
+
@@ -33,10 +33,10 @@
-
-
-
-
-
-
+
+
+
+
+
+
diff --git a/tools/meme/meme.xml b/tools/meme/meme.xml
index 64b6ea21a6a..3d480794a0e 100644
--- a/tools/meme/meme.xml
+++ b/tools/meme/meme.xml
@@ -304,7 +304,7 @@
-
+
value == True
diff --git a/tools/peak_calling/macs_wrapper.py b/tools/peak_calling/macs_wrapper.py
index c25a56cd29b..0487239eff7 100644
--- a/tools/peak_calling/macs_wrapper.py
+++ b/tools/peak_calling/macs_wrapper.py
@@ -51,8 +51,7 @@ def main():
cmdline = "macs -t %s" % ",".join( options['input_chipseq'] )
if options['input_control']:
cmdline = "%s -c %s" % ( cmdline, ",".join( options['input_control'] ) )
- cmdline = "%s --format='%s' --name='%s' --gsize='%s' --tsize='%s' --bw='%s' --pvalue='%s' --mfold='%s' %s %s" %\
- ( cmdline, options['format'], experiment_name, options['gsize'], options['tsize'], options['bw'], options['pvalue'], options['mfold'], options['nolambda'], options['futurefdr'] )
+ cmdline = "%s --format='%s' --name='%s' --gsize='%s' --tsize='%s' --bw='%s' --pvalue='%s' --mfold='%s' %s --lambdaset='%s' %s" % ( cmdline, options['format'], experiment_name, options['gsize'], options['tsize'], options['bw'], options['pvalue'], options['mfold'], options['nolambda'], options['lambdaset'], options['futurefdr'] )
if 'wig' in options:
wigextend = int( options['wig']['wigextend'] )
if wigextend >= 0:
diff --git a/tools/peak_calling/macs_wrapper.xml b/tools/peak_calling/macs_wrapper.xml
index 5278e87d53f..0ec772e0d19 100644
--- a/tools/peak_calling/macs_wrapper.xml
+++ b/tools/peak_calling/macs_wrapper.xml
@@ -28,8 +28,7 @@
-
+
@@ -45,6 +44,7 @@
+
@@ -95,7 +95,7 @@
<%
import simplejson
%>
-#set $__options = { 'experiment_name':str( $experiment_name ), 'gsize':int( float( str( $gsize ) ) ), 'tsize':str( $tsize ), 'bw':str( $bw ), 'pvalue':str( $pvalue ), 'mfold':str( $mfold ), 'nolambda':str( $nolambda ), 'futurefdr':str( $futurefdr ) }
+#set $__options = { 'experiment_name':str( $experiment_name ), 'gsize':int( float( str( $gsize ) ) ), 'tsize':str( $tsize ), 'bw':str( $bw ), 'pvalue':str( $pvalue ), 'mfold':str( $mfold ), 'nolambda':str( $nolambda ), 'lambdaset': str( $lambdaset ), 'futurefdr':str( $futurefdr ) }
#if str( $xls_to_interval ) == 'create':
#set $__options['xls_to_interval'] = { 'peaks_file': str( $output_xls_to_interval_peaks_file ), 'negative_peaks_file': str( $output_xls_to_interval_negative_peaks_file ) }
#else:
@@ -145,13 +145,14 @@ ${ simplejson.dumps( __options ) }
-
+
+
@@ -170,13 +171,14 @@ ${ simplejson.dumps( __options ) }
-
+
+
@@ -193,7 +195,7 @@ ${ simplejson.dumps( __options ) }
-
+
@@ -202,6 +204,7 @@ ${ simplejson.dumps( __options ) }
+
diff --git a/tools/plotting/histogram.py b/tools/plotting/histogram.py
index 732960d271c..d4300be0032 100644
--- a/tools/plotting/histogram.py
+++ b/tools/plotting/histogram.py
@@ -73,8 +73,7 @@ def main():
if skipped_lines < i:
try:
- #a = array( matrix )
- a=matrix
+ a = r.array( matrix )
r.pdf( out_fname, 8, 8 )
histogram = r.hist( a, probability=not frequency, main=title, xlab=xlab, breaks=breaks )
if density:
diff --git a/tools/plotting/scatterplot.py b/tools/plotting/scatterplot.py
index db7a308416c..88e96b9463f 100644
--- a/tools/plotting/scatterplot.py
+++ b/tools/plotting/scatterplot.py
@@ -19,14 +19,8 @@ def main():
title = sys.argv[5]
xlab = sys.argv[6]
ylab = sys.argv[7]
- out_type = sys.argv[8]
- out_width = int(sys.argv[9])
- out_height = int(sys.argv[10])
- point_size = float(sys.argv[11])
-
- xvec=[]
- yvec=[]
+ matrix = []
skipped_lines = 0
first_invalid_line = 0
invalid_value = ''
@@ -34,19 +28,17 @@ def main():
i = 0
for i, line in enumerate( file( in_fname ) ):
valid = True
- vals = []
line = line.rstrip( '\r\n' )
if line and not line.startswith( '#' ):
row = []
fields = line.split( "\t" )
- for c,column in enumerate(columns):
+ for column in columns:
try:
val = fields[column]
if val.lower() == "na":
- v = float( "nan" )
+ row.append( float( "nan" ) )
else:
- v = float( fields[column] )
- vals.append(val)
+ row.append( float( fields[column] ) )
except:
valid = False
skipped_lines += 1
@@ -65,19 +57,12 @@ def main():
first_invalid_line = i+1
if valid:
- xvec.append(vals[0])
- yvec.append(vals[1])
+ matrix.append( row )
+
if skipped_lines < i:
try:
- if out_type == "jpg":
- r.jpeg(out_fname,width=out_width,height=out_height)
- elif out_type == "png":
- # type="cairo" needed to be set for headless servers
- r.png(out_fname,type="cairo",width=out_width,height=out_height)
- else:
- r.pdf(out_fname, out_width, out_height)
-
- r.plot(xvec,yvec, type="p", main=title, xlab=xlab, ylab=ylab, col="blue", pch=19,cex=point_size )
+ r.pdf( out_fname, 8, 8 )
+ r.plot( array( matrix ), type="p", main=title, xlab=xlab, ylab=ylab, col="blue", pch=19 )
r.dev_off()
except Exception, exc:
stop_err( "%s" %str( exc ) )
diff --git a/tools/plotting/scatterplot.xml b/tools/plotting/scatterplot.xml
index 25c6234dbe5..6f7ad98c615 100644
--- a/tools/plotting/scatterplot.xml
+++ b/tools/plotting/scatterplot.xml
@@ -1,6 +1,6 @@
of two numeric columns
- scatterplot.py $input $out_file1 $col1 $col2 "$title" "$xlab" "$ylab" $output_format $out_width $out_height $point_size
+ scatterplot.py $input $out_file1 $col1 $col2 "$title" "$xlab" "$ylab"
@@ -8,26 +8,15 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
rpy
+
diff --git a/tools/samtools/bam_to_sam.py b/tools/samtools/bam_to_sam.py
index d2089e20f9e..310d4b70a6e 100644
--- a/tools/samtools/bam_to_sam.py
+++ b/tools/samtools/bam_to_sam.py
@@ -21,6 +21,7 @@ def __main__():
parser = optparse.OptionParser()
parser.add_option( '', '--input1', dest='input1', help='The input SAM dataset' )
parser.add_option( '', '--output1', dest='output1', help='The output BAM dataset' )
+ parser.add_option( '', '--header', dest='header', action='store_true', default=False, help='Write SAM Header' )
( options, args ) = parser.parse_args()
# output version # of tool
@@ -87,7 +88,11 @@ def __main__():
try:
# Extract all alignments from the input BAM file to SAM format ( since no region is specified, all the alignments will be extracted ).
- command = 'samtools view -o -h %s %s' % ( options.output1, tmp_sorted_aligns_file_name )
+ if options.header:
+ view_options = "-h"
+ else:
+ view_options = ""
+ command = 'samtools view %s -o %s %s' % ( view_options, options.output1, tmp_sorted_aligns_file_name )
tmp = tempfile.NamedTemporaryFile( dir=tmp_dir ).name
tmp_stderr = open( tmp, 'wb' )
proc = subprocess.Popen( args=command, shell=True, cwd=tmp_dir, stderr=tmp_stderr.fileno() )
diff --git a/tools/samtools/sam_bitwise_flag_filter.py b/tools/samtools/sam_bitwise_flag_filter.py
index bc8e57d1e26..ba6b35b34a1 100755
--- a/tools/samtools/sam_bitwise_flag_filter.py
+++ b/tools/samtools/sam_bitwise_flag_filter.py
@@ -1,6 +1,6 @@
#!/usr/bin/env python
# Refactored on 11/13/2010 by Kanwei Li
-# Added drop_header option - default is now keep headers for downstream sanity by ross lazarus
+
import sys
import optparse
@@ -14,11 +14,7 @@ def main():
options (listed below) default to 'None' if omitted
"""
parser = optparse.OptionParser(usage=usage)
- parser.add_option('--drop_header',
- action = 'store_true',
- dest='drop_header',
- help="Remove sam header - you probably NEVER want this for fussy downstream tools")
-
+
parser.add_option(
'--0x0001','--is_paired',
choices = ( '0','1' ),
@@ -133,24 +129,21 @@ options (listed below) default to 'None' if omitted
opt_map = { '0': False, '1': True }
used_indices = [(index, opt_map[opt]) for index, opt in enumerate(opt_ary) if opt is not None]
flag_col = int( options.flag_col ) - 1
+
for line in infile:
line = line.rstrip( '\r\n' )
- if line:
- if line.startswith('@'):
- if not options.drop_header:
- print line # usually want these so add -h if you don't want headers
- elif not line.startswith( '#' ) :
- fields = line.split( '\t' )
- flags = int( fields[flag_col] )
+ if line and not line.startswith( '#' ) and not line.startswith( '@' ) :
+ fields = line.split( '\t' )
+ flags = int( fields[flag_col] )
- valid_line = True
- for index, opt_bool in used_indices:
- if bool(flags & 0x0001 << index) != opt_bool:
- valid_line = False
- break
+ valid_line = True
+ for index, opt_bool in used_indices:
+ if bool(flags & 0x0001 << index) != opt_bool:
+ valid_line = False
+ break
- if valid_line:
- print line
+ if valid_line:
+ print line
if __name__ == "__main__": main()
diff --git a/tools/samtools/sam_bitwise_flag_filter.xml b/tools/samtools/sam_bitwise_flag_filter.xml
index f4cc58016f9..82c42049497 100644
--- a/tools/samtools/sam_bitwise_flag_filter.xml
+++ b/tools/samtools/sam_bitwise_flag_filter.xml
@@ -1,11 +1,8 @@
-
+
on bitwise flag values
sam_bitwise_flag_filter.py
- #if $drop_header == "1":
- --drop_header
- #end if
--input_sam_file=$input1
--flag_column=2
#for $bit in $bits
@@ -15,11 +12,6 @@
-
-
-
-
diff --git a/tools/samtools/sam_to_bam.py b/tools/samtools/sam_to_bam.py
index 822b7d1b165..a13e982e774 100644
--- a/tools/samtools/sam_to_bam.py
+++ b/tools/samtools/sam_to_bam.py
@@ -68,7 +68,7 @@ def __main__():
# and the equCab2.fa file will contain fasta sequences.
seq_path = check_seq_file( options.dbkey, cached_seqs_pointer_file )
tmp_dir = tempfile.mkdtemp()
- if options.ref_file == 'None':
+ if not options.ref_file or options.ref_file == 'None':
# We're using locally cached reference sequences( e.g., /galaxy/data/equCab2/sam_index/equCab2.fa ).
# The indexes for /galaxy/data/equCab2/sam_index/equCab2.fa will be contained in
# a file named /galaxy/data/equCab2/sam_index/equCab2.fa.fai
@@ -125,9 +125,7 @@ def __main__():
tmp_aligns_file = tempfile.NamedTemporaryFile( dir=tmp_dir )
tmp_aligns_file_name = tmp_aligns_file.name
tmp_aligns_file.close()
- # IMPORTANT NOTE: for some reason the samtools view command gzips the resulting bam file without warning,
- # and the docs do not currently state that this occurs ( very bad ).
- command = 'samtools view -h -bt %s -o %s %s' % ( fai_index_file_path, tmp_aligns_file_name, options.input1 )
+ command = 'samtools view -bt %s -o %s %s' % ( fai_index_file_path, tmp_aligns_file_name, options.input1 )
tmp = tempfile.NamedTemporaryFile( dir=tmp_dir ).name
tmp_stderr = open( tmp, 'wb' )
proc = subprocess.Popen( args=command, shell=True, cwd=tmp_dir, stderr=tmp_stderr.fileno() )
@@ -147,8 +145,6 @@ def __main__():
tmp_stderr.close()
if returncode != 0:
raise Exception, stderr
- if len( open( tmp_aligns_file_name ).read() ) == 0:
- raise Exception, 'Initial BAM file empty'
except Exception, e:
#clean up temp files
if os.path.exists( tmp_dir ):
@@ -188,11 +184,6 @@ def __main__():
stop_err( 'Error sorting alignments from (%s), %s' % ( tmp_aligns_file_name, str( e ) ) )
# Move tmp_aligns_file_name to our output dataset location
sorted_bam_file = '%s.bam' % tmp_sorted_aligns_file_name
- if os.path.getsize( sorted_bam_file ) == 0:
- #clean up temp files
- if os.path.exists( tmp_dir ):
- shutil.rmtree( tmp_dir )
- stop_err( 'Error creating sorted version of BAM file' )
shutil.move( sorted_bam_file, options.output1 )
#clean up temp files
if os.path.exists( tmp_dir ):
@@ -201,6 +192,6 @@ def __main__():
if os.path.getsize( options.output1 ) > 0:
sys.stdout.write( 'SAM file converted to BAM' )
else:
- stop_err( 'The output file is empty, there may be an error with your input file or settings.' )
+ stop_err( 'Error creating sorted version of BAM file.' )
if __name__=="__main__": __main__()