diff --git a/static/scripts/bundled/adminToolshed.bundled.js b/static/scripts/bundled/adminToolshed.bundled.js index 1669d66b070..cd09499b9dd 100644 --- a/static/scripts/bundled/adminToolshed.bundled.js +++ b/static/scripts/bundled/adminToolshed.bundled.js @@ -46,4 +46,8 @@ r=i,l=e("
",{css:{position:"absolute",top:"-200px",left:s?"0px":"-1000px", // the check will work anyway, as when moving the node will be loaded first and checked again if(v === 'i' && !ins.is_loaded(p)) { } */ -p=!0,_=0,f=o.data.nodes.length;_| ",'"," | ","
| Name | ","Description | ","Repositories | ","
|---|---|---|
| ",'"><%= category.get("name") %>'," | ",'<%= category.get("description") %> | ','<%= category.get("repositories") %> | ',"
| Owner | ','Name | ',"Synopsis | ",'Type | ',"
|---|---|---|---|
| <%= repository.owner %> | ","",'"," | ","<%= repository.description %> | ","<%= repository.type %> | ","
| Name | ','Owner | ','Revision | ','ToolShed | ','Install | ',''," |
|---|---|---|---|---|---|
| <%= repository.get("repository").name %> | ','<%= repository.get("repository").owner %> | ','<%= repository.get("changeset_revision") %> | ','<%= repository.get("tool_shed_url") %> | ','','" type="submit" id="install_repository_<%= repository.get("id") %>" name="install_repository" value="Install now" />'," | ",'','" type="submit" id="unqueue_repository_<%= repository.get("id") %>" name="unqueue_repository" value="Remove from queue" />'," | ","
| Name | ','Description | ','Owner | ','Revision | ','Installation Status | ',"
|---|---|---|---|---|
| ",' ','"," "," | ","",' ','"," "," | ","",' ','"," "," | ","",' ','"," "," | ","",' ','"," "," | ","
| Workflows | ','Tool IDs | ','Shed | ','Name | ','Owner | ','Actions | ',"||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
','
| ",'','
| ",'<%= workflow.get("shed") %> | ','<%= workflow.get("repository") %> | ','<%= workflow.get("owner") %> | ','','
| ","").append(e))},appendHeader:function(){this.$thead.append(this.row),this.row=s(" | |||||
| ");t&&n.css("width",t),i&&n.css("text-align",i),this.row.append(n.append(e))},append:function(e,t){this._commit(e,t,!1)},prepend:function(e,t){this._commit(e,t,!0)},get:function(e){return this.$("#"+e)},del:function(e){var t=this.$tbody.find("#"+e);t.length>0&&(t.remove(),this.row_count--,this._refresh())},delAll:function(){this.$tbody.empty(),this.row_count=0,this._refresh()},value:function(e){if(this.options.selectable){this.before=this.$tbody.find(".current").attr("id"),void 0!==e&&(this.$tbody.find("tr").removeClass("current"),e&&this.$tbody.find("#"+e).addClass("current"));var t=this.$tbody.find(".current").attr("id");return void 0===t?null:(t!=this.before&&this.options.onchange&&this.options.onchange(e),t)}},size:function(){return this.$tbody.find("tr").length},_commit:function(e,t,i){this.del(e),this.row.attr("id",e),i?this.$tbody.prepend(this.row):this.$tbody.append(this.row),t&&(this.row.hide(),this.row.fadeIn()),this.row=this._row(),this.row_count++,this._refresh()},_row:function(){return s(' | |||||||||||
| ",'"," | ","
| Name | ","Description | ","Repositories | ","
|---|---|---|
| ",'"><%= category.get("name") %>'," | ",'<%= category.get("description") %> | ','<%= category.get("repositories") %> | ',"
| Owner | ','Name | ',"Synopsis | ",'Type | ',"
|---|---|---|---|
| <%= repository.owner %> | ","",'"," | ","<%= repository.description %> | ","<%= repository.type %> | ","
| Name | ','Owner | ','Revision | ','ToolShed | ','Install | ',''," |
|---|---|---|---|---|---|
| <%= repository.get("repository").name %> | ','<%= repository.get("repository").owner %> | ','<%= repository.get("changeset_revision") %> | ','<%= repository.get("tool_shed_url") %> | ','','" type="submit" id="install_repository_<%= repository.get("id") %>" name="install_repository" value="Install now" />'," | ",'','" type="submit" id="unqueue_repository_<%= repository.get("id") %>" name="unqueue_repository" value="Remove from queue" />'," | ","
| Name | ','Description | ','Owner | ','Revision | ','Installation Status | ',"
|---|---|---|---|---|
| ",' ','"," "," | ","",' ','"," "," | ","",' ','"," "," | ","",' ','"," "," | ","",' ','"," "," | ","
| Workflows | ','Tool IDs | ','Shed | ','Name | ','Owner | ','Actions | ',"||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
','
| ",'','
| ",'<%= workflow.get("shed") %> | ','<%= workflow.get("repository") %> | ','<%= workflow.get("owner") %> | ','','
| ","").append(e))},appendHeader:function(){this.$thead.append(this.row),this.row=s(" | |||||
| ");t&&n.css("width",t),i&&n.css("text-align",i),this.row.append(n.append(e))},append:function(e,t){this._commit(e,t,!1)},prepend:function(e,t){this._commit(e,t,!0)},get:function(e){return this.$("#"+e)},del:function(e){var t=this.$tbody.find("#"+e);t.length>0&&(t.remove(),this.row_count--,this._refresh())},delAll:function(){this.$tbody.empty(),this.row_count=0,this._refresh()},value:function(e){if(this.options.selectable){this.before=this.$tbody.find(".current").attr("id"),void 0!==e&&(this.$tbody.find("tr").removeClass("current"),e&&this.$tbody.find("#"+e).addClass("current"));var t=this.$tbody.find(".current").attr("id");return void 0===t?null:(t!=this.before&&this.options.onchange&&this.options.onchange(e),t)}},size:function(){return this.$tbody.find("tr").length},_commit:function(e,t,i){this.del(e),this.row.attr("id",e),i?this.$tbody.prepend(this.row):this.$tbody.append(this.row),t&&(this.row.hide(),this.row.fadeIn()),this.row=this._row(),this.row_count++,this._refresh()},_row:function(){return s(' | |||||||||||
| ",'"," | ","
| Name | ","Description | ","Repositories | ","
|---|---|---|
| ",'"><%= category.get("name") %>'," | ",'<%= category.get("description") %> | ','<%= category.get("repositories") %> | ',"
| Owner | ','Name | ',"Synopsis | ",'Type | ',"
|---|---|---|---|
| <%= repository.owner %> | ","",'"," | ","<%= repository.description %> | ","<%= repository.type %> | ","
| Name | ','Owner | ','Revision | ','ToolShed | ','Install | ',''," |
|---|---|---|---|---|---|
| <%= repository.get("repository").name %> | ','<%= repository.get("repository").owner %> | ','<%= repository.get("changeset_revision") %> | ','<%= repository.get("tool_shed_url") %> | ','','" type="submit" id="install_repository_<%= repository.get("id") %>" name="install_repository" value="Install now" />'," | ",'','" type="submit" id="unqueue_repository_<%= repository.get("id") %>" name="unqueue_repository" value="Remove from queue" />'," | ","
| Name | ','Description | ','Owner | ','Revision | ','Installation Status | ',"
|---|---|---|---|---|
| ",' ','"," "," | ","",' ','"," "," | ","",' ','"," "," | ","",' ','"," "," | ","",' ','"," "," | ","
| Workflows | ','Tool IDs | ','Shed | ','Name | ','Owner | ','Actions | ',"||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
','
| ",'','
| ",'<%= workflow.get("shed") %> | ','<%= workflow.get("repository") %> | ','<%= workflow.get("owner") %> | ','','
| ","").append(e))},appendHeader:function(){this.$thead.append(this.row),this.row=s(" | |||||
| ");t&&n.css("width",t),i&&n.css("text-align",i),this.row.append(n.append(e))},append:function(e,t){this._commit(e,t,!1)},prepend:function(e,t){this._commit(e,t,!0)},get:function(e){return this.$("#"+e)},del:function(e){var t=this.$tbody.find("#"+e);t.length>0&&(t.remove(),this.row_count--,this._refresh())},delAll:function(){this.$tbody.empty(),this.row_count=0,this._refresh()},value:function(e){if(this.options.selectable){this.before=this.$tbody.find(".current").attr("id"),void 0!==e&&(this.$tbody.find("tr").removeClass("current"),e&&this.$tbody.find("#"+e).addClass("current"));var t=this.$tbody.find(".current").attr("id");return void 0===t?null:(t!=this.before&&this.options.onchange&&this.options.onchange(e),t)}},size:function(){return this.$tbody.find("tr").length},_commit:function(e,t,i){this.del(e),this.row.attr("id",e),i?this.$tbody.prepend(this.row):this.$tbody.append(this.row),t&&(this.row.hide(),this.row.fadeIn()),this.row=this._row(),this.row_count++,this._refresh()},_row:function(){return s(' | |||||||||||
| Name | Size | Created |
|---|
"+JSON.stringify(n.responseJSON)+"":i+=": "+s}t._showAlert(i,"alert-danger")},events:{"click .more-help":"_clickMoreHelp","click .less-help":"_clickLessHelp","click .main-help":"_toggleHelp","click .header .alert button":"_hideAlert","click .reset":"reset","click .clear-selected":"clearSelectedElements","click .collection-elements":"clearSelectedElements","dragover .collection-elements":"_dragoverElements","drop .collection-elements":"_dropElements","collection-element.dragstart .collection-elements":"_elementDragstart","collection-element.dragend .collection-elements":"_elementDragend","change .collection-name":"_changeName","keydown .collection-name":"_nameCheckForEnter","change .hide-originals":"_changeHideOriginals","click .cancel-create":"_cancelCreate","click .create-collection":"_clickCreate"},reset:function(){this._instanceSetUp(),this._elementsSetUp(),this.render()},clearSelectedElements:function(e){this.$(".collection-elements .collection-element").removeClass("selected"),this.$(".collection-elements-controls > .clear-selected").hide()},_dragoverElements:function(e){e.preventDefault();var t=this.$list();this._checkForAutoscroll(t,e.originalEvent.clientY);var i=this._getNearestElement(e.originalEvent.clientY);this.$(".element-drop-placeholder").remove();var n=s('');i.length?i.before(n):t.append(n)},_checkForAutoscroll:function(e,t){var i=e.offset(),n=e.scrollTop(),s=t-i.top,a=i.top+e.outerHeight()-t;s>=0&&s
",(0,w.default)(["Collections of datasets are permanent, ordered lists of datasets that can be passed to tools and ","workflows in order to have analyses done on each member of the entire group. This interface allows ","you to create a collection and re-order the final collection."].join("")),"
","",(0,w.default)(['Once your collection is complete, enter a name and ','click "Create list".'].join("")),"
"].join("")),invalidElements:n.template([(0,w.default)("The following selections could not be included due to problems:"),"<%= dataset.peek %>',"<% } %>","<% } %>","
'+this.progressive+"...
";this.modal.$(".modal-body").empty().append(e).css({"margin-top":"8px"})},dialog:function(t,i,a){function o(){var e=t.$("#copy-modal-title").val();if(!e)return void t.$(".invalid-title").show();var n="copy-all"===t.$('input[name="copy-what"]:checked').val();t.$("button").prop("disabled",!0),l._showAjaxIndicator(),i.copy(!0,e,n).done(function(e){r.resolve(e)}).fail(function(t,s,a){var o={name:e,copyAllDatasets:n};d.default.ajaxErrorModal(i,t,o,l.errorMessage),r.rejectWith(r,arguments)}).done(function(){m&&t.hide()})}a=a||{};var l=this,r=n.Deferred(),c=a.nameFn||this.defaultName,h=c({name:i.get("name")}),f=a.allDatasets?"copy-all":"copy-non-deleted",p=!!e.isUndefined(a.allowAll)||a.allowAll,m=!!e.isUndefined(a.autoClose)||a.autoClose;this.modal=t;var g=a.closing_callback;return t.show(e.extend(a,{title:this.title({name:i.get("name")}),body:s(l._template({name:h,isAnon:Galaxy.user.isAnonymous(),allowAll:p,copyWhat:f,activeLabel:this.activeLabel,allLabel:this.allLabel,anonWarning:this.anonWarning})),buttons:e.object([[(0,u.default)("Cancel"),function(){t.hide()}],[this.submitLabel,o]]),height:"auto",closing_events:!0,closing_callback:function(e){e&&r.reject({cancelled:!0}),g&&g(e)}})),t.$("#copy-modal-title").focus().select(),t.$("#copy-modal-title").on("keydown",function(e){13===e.keyCode&&(e.preventDefault(),o())}),r}},f=e.extend({},h,{defaultName:e.template("imported: <%- name %>"),title:e.template((0,u.default)("Importing history")+' "<%- name %>"'),submitLabel:(0,u.default)("Import"),errorMessage:(0,u.default)("History could not be imported."),progressive:(0,u.default)("Importing history"),activeLabel:(0,u.default)("Import only the active, non-deleted datasets"),allLabel:(0,u.default)("Import all datasets including deleted ones"),anonWarning:(0,u.default)("As an anonymous user, unless you login or register, you will lose your current history ")+(0,u.default)("after importing this history. ")}),p=function(e,t){t=t||{};var i=window.parent.Galaxy.modal||new l.default.View({});return t.useImport?f.dialog(i,e,t):h.dialog(i,e,t)};t.default=p}).call(t,i(1),i(0),i(0))},function(e,t,i){"use strict";(function(e,n){function s(t,i,n){return Galaxy.modal.show({title:i,body:t,closing_events:!0,buttons:{Ok:function(){Galaxy.modal.hide()}}}),Galaxy.modal.$el.addClass("error-modal"),n&&(Galaxy.modal.$(".error-details").add(Galaxy.modal.$('button:contains("Details")')).remove(),e("").addClass("error-details").hide().appendTo(Galaxy.modal.$(".modal-content")).append([e("").text(p),e("").text(JSON.stringify(n,null," "))]),e('").appendTo(Galaxy.modal.$(".buttons")).click(function(){Galaxy.modal.$(".error-details").toggle()})),Galaxy.modal}function a(e,t,i){if(e){if(e=(0,u.default)(e),t=(0,u.default)(t)||(0,u.default)("Error:"),window.Galaxy&&Galaxy.modal)return s(e,t,i);alert(t+"\n\n"+e),console.log("error details:",JSON.stringify(i))}}function o(){return a((0,u.default)("You appear to be offline. Please check your connection and try again."),(0,u.default)("Offline?"))}function l(){return a((0,u.default)("Galaxy is currently unreachable. Please try again in a few minutes.")+" "+h,(0,u.default)("Cannot connect to Galaxy"))}function r(e,t,i,n,s){return n=n||f,n+=" "+h,s=s||(0,u.default)("An error occurred"),a(n,s,d(e,t,i))}function d(e,t,i){return{raven:n.result(window.Raven,"lastEventId"),userAgent:navigator.userAgent,onLine:navigator.onLine,version:n.result(Galaxy.config,"version_major"),xhr:n.omit(t,n.functions(t)),options:n.omit(i,"xhr"),url:n.result(Galaxy.lastAjax,"url"),data:n.result(Galaxy.lastAjax,"data"),model:n.result(e,"toJSON",""+e),user:n.omit(n.result(Galaxy.user,"toJSON"),"email")}}Object.defineProperty(t,"__esModule",{value:!0});var c=i(3),u=function(e){return e&&e.__esModule?e:{default:e}}(c),h=(0,u.default)("Please contact a Galaxy administrator if the problem persists."),f=(0,u.default)("An error occurred while updating information with the server."),p=(0,u.default)("The following information can assist the developers in finding the source of the error:");t.default={errorModal:a,offlineErrorModal:o,badGatewayErrorModal:l,ajaxErrorModal:r}}).call(t,i(0),i(1))},function(e,t,i){"use strict";(function(e){function n(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t.default=e,t}Object.defineProperty(t,"__esModule",{value:!0});var s=i(1),a=n(s),o=i(2),l=n(o),r=i(5),d=function(e){return e&&e.__esModule?e:{default:e}}(r),c=l.Collection.extend({initialize:function(e,t){l.Collection.prototype.initialize.call(this,e,t),this.setOrder(t.order||this.order,{silent:!0})},_setUpListeners:function(){return this.on({"changed-order":this.sort})},fetch:function(e){return e=this._buildFetchOptions(e),Galaxy.debug("fetch options:",e),l.Collection.prototype.fetch.call(this,e)},_buildFetchOptions:function(e){e=a.clone(e)||{};var t=this;e.traditional=!0,e.data=e.data||t._buildFetchData(e),Galaxy.debug("data:",e.data);var i=this._buildFetchFilters(e);return Galaxy.debug("filters:",i),a.isEmpty(i)||a.extend(e.data,this._fetchFiltersToAjaxData(i)),Galaxy.debug("data:",e.data),e},_buildFetchData:function(e){var t={};return this.order&&(t.order=this.order),a.defaults(a.pick(e,this._fetchParams),t)},_fetchParams:["order","limit","offset","view","keys"],_buildFetchFilters:function(e){return a.clone(e.filters||{})},_fetchFiltersToAjaxData:function(e){var t={q:[],qv:[]};return a.each(e,function(e,i){void 0!==e&&""!==e&&(!0===e&&(e="True"),!1===e&&(e="False"),null===e&&(e="None"),t.q.push(i),t.qv.push(e))}),t},reset:function(e,t){return this.allFetched=!1,l.Collection.prototype.reset.call(this,e,t)},order:null,comparators:{update_time:d.default.buildComparator("update_time",{ascending:!1}),"update_time-asc":d.default.buildComparator("update_time",{ascending:!0}),create_time:d.default.buildComparator("create_time",{ascending:!1}),"create_time-asc":d.default.buildComparator("create_time",{ascending:!0})},setOrder:function(e,t){t=t||{};var i=this,n=i.comparators[e];if(a.isUndefined(n))throw new Error("unknown order: "+e);if(n!==i.comparator)return i.order=e,i.comparator=n,t.silent||i.trigger("changed-order",t),i}}),u=c.extend({limitPerPage:500,initialize:function(e,t){c.prototype.initialize.call(this,e,t),this.currentPage=t.currentPage||0},getTotalItemCount:function(){return this.length},shouldPaginate:function(){return this.getTotalItemCount()>=this.limitPerPage},getLastPage:function(){return Math.floor(this.getTotalItemCount()/this.limitPerPage)},getPageCount:function(){return this.getLastPage()+1},getPageLimitOffset:function(e){return e=this.constrainPageNum(e),{limit:this.limitPerPage,offset:e*this.limitPerPage}},constrainPageNum:function(e){return Math.max(0,Math.min(e,this.getLastPage()))},fetchPage:function(e,t){var i=this;return e=i.constrainPageNum(e),i.currentPage=e,t=a.defaults(t||{},i.getPageLimitOffset(e)),i.trigger("fetching-more"),i.fetch(t).always(function(){i.trigger("fetching-more-done")})},fetchCurrentPage:function(e){return this.fetchPage(this.currentPage,e)},fetchPrevPage:function(e){return this.fetchPage(this.currentPage-1,e)},fetchNextPage:function(e){return this.fetchPage(this.currentPage+1,e)}}),h=c.extend({limitOnFirstFetch:null,limitPerFetch:100,initialize:function(e,t){c.prototype.initialize.call(this,e,t),this.limitOnFirstFetch=t.limitOnFirstFetch||this.limitOnFirstFetch,this.limitPerFetch=t.limitPerFetch||this.limitPerFetch,this.allFetched=!1,this.lastFetched=t.lastFetched||0},_buildFetchOptions:function(e){return e.remove=e.remove||!1,c.prototype._buildFetchOptions.call(this,e)},fetchFirst:function(e){return Galaxy.debug("ControlledFetchCollection.fetchFirst:",e),e=e?a.clone(e):{},this.allFetched=!1,this.lastFetched=0,this.fetchMore(a.defaults(e,{reset:!0,limit:this.limitOnFirstFetch}))},fetchMore:function(t){Galaxy.debug("ControlledFetchCollection.fetchMore:",t),t=a.clone(t||{});var i=this;if(Galaxy.debug("fetchMore, options.reset:",t.reset),!t.reset&&i.allFetched)return e.when();t.reset?t.offset=0:void 0===t.offset&&(t.offset=i.lastFetched);var n=t.limit=t.limit||i.limitPerFetch||null;return Galaxy.debug("fetchMore, limit:",n,"offset:",t.offset),i.trigger("fetching-more"),i.fetch(t).always(function(){i.trigger("fetching-more-done")}).done(function(e){var t=a.isArray(e)?e.length:0;i.lastFetched+=t,Galaxy.debug("fetchMore, lastFetched:",i.lastFetched),(!n||t",(0,p.default)(["Pair collections are permanent collections containing two datasets: one forward and one reverse. ","Often these are forward and reverse reads. The pair collections can be passed to tools and ","workflows in order to have analyses done on both datasets. This interface allows ","you to create a pair, name it, and swap which is forward and which reverse."].join("")),"
","",(0,p.default)(['Once your collection is complete, enter a name and ','click "Create list".'].join("")),"
"].join("")),invalidInitial:n.template(['"+JSON.stringify(e.responseJSON)+"":s+=": "+i),n._showAlert(s,"alert-danger")},render:function(e,t){return this.$el.empty().html(this.templates.main()),this._renderHeader(e),this._renderMiddle(e),this._renderFooter(e),this._addPluginComponents(),this.trigger("rendered",this),this},_renderHeader:function(e,t){var i=this.$(".header").empty().html(this.templates.header()).find(".help-content").prepend(a(this.templates.helpContent()));return this._renderFilters(),i},_renderFilters:function(){return this.$(".forward-column .column-header input").val(this.filters[0]).add(this.$(".reverse-column .column-header input").val(this.filters[1]))},_renderMiddle:function(e,t){var i=this.$(".middle").empty().html(this.templates.middle());return this.unpairedPanelHidden?this.$(".unpaired-columns").hide():this.pairedPanelHidden&&this.$(".paired-columns").hide(),this._renderUnpaired(),this._renderPaired(),i},_renderUnpaired:function(e,t){var i,n,s=this,a=[],o=this._splitByFilters();return this.$(".forward-column .title").text([o[0].length,(0,v.default)("unpaired forward")].join(" ")),this.$(".forward-column .unpaired-info").text(this._renderUnpairedDisplayStr(this.unpaired.length-o[0].length)),this.$(".reverse-column .title").text([o[1].length,(0,v.default)("unpaired reverse")].join(" ")),this.$(".reverse-column .unpaired-info").text(this._renderUnpairedDisplayStr(this.unpaired.length-o[1].length)),this.$(".unpaired-columns .column-datasets").empty(),this.$(".autopair-link").toggle(0!==this.unpaired.length),0===this.unpaired.length?void this._renderUnpairedEmpty():(n=o[1].map(function(e,t){return void 0!==o[0][t]&&o[0][t]!==e&&a.push(s._renderPairButton()),s._renderUnpairedDataset(e)}),i=o[0].map(function(e){return s._renderUnpairedDataset(e)}),i.length||n.length?(this.$(".unpaired-columns .forward-column .column-datasets").append(i).add(this.$(".unpaired-columns .paired-column .column-datasets").append(a)).add(this.$(".unpaired-columns .reverse-column .column-datasets").append(n)),void this._adjUnpairedOnScrollbar()):void this._renderUnpairedNotShown())},_renderUnpairedDisplayStr:function(e){return["(",e," ",(0,v.default)("filtered out"),")"].join("")},_renderUnpairedDataset:function(e){return a("").attr("id","dataset-"+e.id).addClass("dataset unpaired").attr("draggable",!0).addClass(e.selected?"selected":"").append(a("").addClass("dataset-name").text(e.name)).data("dataset",e)},_renderPairButton:function(){return a("").addClass("dataset unpaired").append(a("").addClass("dataset-name").text((0,v.default)("Pair these datasets")))},_renderUnpairedEmpty:function(){var e=a('').text("("+(0,v.default)("no remaining unpaired datasets")+")");return this.$(".unpaired-columns .paired-column .column-datasets").empty().prepend(e),e},_renderUnpairedNotShown:function(){var e=a('').text("("+(0,v.default)("no datasets were found matching the current filters")+")");return this.$(".unpaired-columns .paired-column .column-datasets").empty().prepend(e),e},_adjUnpairedOnScrollbar:function(){var e=this.$(".unpaired-columns").last(),t=this.$(".unpaired-columns .reverse-column .dataset").first();if(t.length){var i=e.offset().left+e.outerWidth(),n=t.offset().left+t.outerWidth(),s=Math.floor(i)-Math.floor(n);this.$(".unpaired-columns .forward-column").css("margin-left",s>0?s:0)}},_renderPaired:function(e,t){if(this.$(".paired-column-title .title").text([this.paired.length,(0,v.default)("paired")].join(" ")),this.$(".unpair-all-link").toggle(0!==this.paired.length),0===this.paired.length)return void this._renderPairedEmpty();this.$(".remove-extensions-link").show(),this.$(".paired-columns .column-datasets").empty();var i=this;this.paired.forEach(function(e,t){var n=new y({pair:e});i.$(".paired-columns .column-datasets").append(n.render().$el).append(['"].join(""))})},_renderPairedEmpty:function(){var e=a('').text("("+(0,v.default)("no paired datasets yet")+")");return this.$(".paired-columns .column-datasets").empty().prepend(e),e},footerSettings:{".hide-originals":"hideOriginals",".remove-extensions":"removeExtensions"},_addPluginComponents:function(){this._chooseFiltersPopover(".choose-filters-link"),this.$(".help-content i").hoverhighlight(".collection-creator","rgba( 64, 255, 255, 1.0 )")},_chooseFiltersPopover:function(e){function t(e,t){return['"].join("")}var i=a(n.template(['
",(0,v.default)(["Collections of paired datasets are ordered lists of dataset pairs (often forward and reverse reads). ","These collections can be passed to tools and workflows in order to have analyses done on each member of ","the entire group. This interface allows you to create a collection, choose which datasets are paired, ","and re-order the final collection."].join("")),"
","",(0,v.default)(['Unpaired datasets are shown in the unpaired section ',"(hover over the underlined words to highlight below). ",'Paired datasets are shown in the paired section.',"
",(0,v.default)(["
",(0,v.default)(["To unpair individual dataset pairs, click the ",'unpair buttons ( ). ','Click the "Unpair all" link to unpair all pairs.'].join("")),"
","",(0,v.default)(['You can include or remove the file extensions (e.g. ".fastq") from your pair names by toggling the ','"Remove file extensions from pair names?" control.'].join("")),"
","",(0,v.default)(['Once your collection is complete, enter a name and ','click "Create list". ',"(Note: you do not have to pair all unpaired datasets to finish.)"].join("")),"
"].join(""))})}),b=function(e,t){var i,a=s.Deferred();if(t=n.defaults(t||{},{datasets:e,oncancel:function(){Galaxy.modal.hide(),a.reject("cancelled")},oncreate:function(e,t){Galaxy.modal.hide(),a.resolve(t)}}),!window.Galaxy||!Galaxy.modal)throw new Error("Galaxy or Galaxy.modal not found");return i=new w(t),Galaxy.modal.show({title:(0,v.default)("Create a collection of paired datasets"),body:i.$el,width:"80%",height:"800px",closing_events:!0}),i.render(),window.creator=i,a};t.default={PairedCollectionCreator:w,pairedCollectionCreatorModal:b,createListOfPairsCollection:r}}).call(t,i(2),i(1),i(0),i(0))},function(e,t,i){"use strict";function n(e,t){if(0===e.length)return t.length;if(0===t.length)return e.length;var i,n=[];for(i=0;i<=t.length;i++)n[i]=[i];var s;for(s=0;s<=e.length;s++)n[0][s]=s;for(i=1;i<=t.length;i++)for(s=1;s<=e.length;s++)t.charAt(i-1)===e.charAt(s-1)?n[i][s]=n[i-1][s-1]:n[i][s]=Math.min(n[i-1][s-1]+1,Math.min(n[i][s-1]+1,n[i-1][s]+1));return n[t.length][e.length]}Object.defineProperty(t,"__esModule",{value:!0}),t.default=n},function(e,t,i){"use strict";(function(e,n,s){function a(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var o=i(3),l=a(o),r=i(11),d=(a(r),i(6)),c=a(d),u=i(14),h=a(u),f=e.Model.extend({initialize:function(e){e=e||{},e.user_id=e.user_id||Galaxy.user.id,this.set({user_id:e.user_id,information:{title:(0,l.default)("Manage information"),description:"Edit your email, addresses and custom parameters or change your username.",url:"api/users/"+e.user_id+"/information/inputs",icon:"fa-user",redirect:"user"},password:{title:(0,l.default)("Change password"),description:(0,l.default)("Allows you to change your login credentials."),icon:"fa-unlock-alt",url:"api/users/"+e.user_id+"/password/inputs",submit_title:"Save password",redirect:"user"},communication:{title:(0,l.default)("Change communication settings"),description:(0,l.default)("Enable or disable the communication feature to chat with other users."),url:"api/users/"+e.user_id+"/communication/inputs",icon:"fa-comments-o",redirect:"user"},permissions:{title:(0,l.default)("Set dataset permissions for new histories"),description:"Grant others default access to newly created histories. Changes made here will only affect histories created after these settings have been stored.",url:"api/users/"+e.user_id+"/permissions/inputs",icon:"fa-users",submit_title:"Save permissions",redirect:"user"},api_key:{title:(0,l.default)("Manage API key"),description:(0,l.default)("Access your current API key or create a new one."),url:"api/users/"+e.user_id+"/api_key/inputs",icon:"fa-key",submit_title:"Create a new key",submit_icon:"fa-check"},toolbox_filters:{title:(0,l.default)("Manage Toolbox filters"),description:(0,l.default)("Customize your Toolbox by displaying or omitting sets of Tools."),url:"api/users/"+e.user_id+"/toolbox_filters/inputs",icon:"fa-filter",submit_title:"Save filters",redirect:"user"},openids:{title:(0,l.default)("Manage OpenIDs"),description:(0,l.default)("Associate OpenIDs with your account."),icon:"fa-openid",onclick:function(){window.location.href=Galaxy.root+"user/openid_manage?cntrller=user&use_panels=True"}},custom_builds:{title:(0,l.default)("Manage custom builds"),description:(0,l.default)("Add or remove custom builds using history datasets."),icon:"fa-cubes",onclick:function(){window.location.href=Galaxy.root+"custom_builds"}},logout:{title:(0,l.default)("Sign out"),description:(0,l.default)("Click here to sign out of all sessions."),icon:"fa-sign-out",onclick:function(){Galaxy.modal.show({title:(0,l.default)("Sign out"),body:"Do you want to continue and sign out of all active sessions?",buttons:{Cancel:function(){Galaxy.modal.hide()},"Sign out":function(){window.location.href=Galaxy.root+"user/logout?session_csrf_token="+Galaxy.session_csrf_token}}})}}})}}),p=e.View.extend({title:(0,l.default)("User Preferences"),initialize:function(){this.model=new f,this.setElement(""),this.render()},render:function(){var e=this,t=Galaxy.config;n.getJSON(Galaxy.root+"api/users/"+Galaxy.user.id,function(i){e.$preferences=n("").addClass("ui-panel").append(n("").append("User preferences")).append(n("").append("You are logged in as "+s.escape(i.email)+".")).append(e.$table=n("The length format is two-column, separated by whitespace, of the form:
chrom/contig length of chrom/contig
For example, the first few entries of mm9.len are as follows:
chr1 197195432\nchr2 181748087\nchr3 159599783\nchr4 155630120\nchr5 152537259
Trackster uses this information to populate the select box for chrom/contig, andto set the maximum basepair of the track browser. You may either upload a .len fileof this format (Len File option), or directly enter the information into the box (Len Entry option).
"},_templateFasta:function(){return"This is a multi-fasta file from your current history that provides the genomesequences for each chromosome/contig in your build.
Here is a snippet from an example multi-fasta file:
>chr1\nATTATATATAAGACCACAGAGAGAATATTTTGCCCGG...\n\n>chr2\nGGCGGCCGCGGCGATATAGAACTACTCATTATATATA...\n\n..."}});t.default={View:m}}).call(t,i(2),i(0))},function(e,t,i){"use strict";(function(e,n,s){Object.defineProperty(t,"__esModule",{value:!0});var a=i(19),o=function(e){return e&&e.__esModule?e:{default:e}}(a),l=e.View.extend({initialize:function(t){var i=this;this.setElement(n("")),this.model=new e.Model(t),this.item=this.model.get("item"),this.title=this.model.get("plural"),n.ajax({url:Galaxy.root+this.item+"/"+this.model.get("action_id")+"?"+n.param(Galaxy.params),success:function(e){e.dict_format=!0,i.model.set(e),i.render()}})},render:function(){var e=new o.default(this.model.attributes);this.$el.empty().append(e.$el),this.$el.append(this._templateShared())},_templateShared:function(){var e=this,t=n("
| Title | Owner |
|---|
| Name | Tags | Owner | # of Steps | Published | Show in tools panel |
|---|
An error occured while running the tool "+i.tool_id+".
"),e.$el.append("Tool execution generated the following messages:
"),e.$el.append(''+i.stderr+""),e.$el.append("
Usually the local Galaxy administrators regularly review errors that occur on the server. However, if you would like to provide additional information (such as what you were trying to do when the error occurred) and a contact e-mail address, we will be better able to investigate your problem and get back to you.
"),e.$el.append(e._getBugFormTemplate(t,i))},display_message:function(e,t,i,n){n?i?t.append(new c.default.UnescapedMessage(e).$el):t.empty().html(new c.default.UnescapedMessage(e).$el):i?t.append(new c.default.Message(e).$el):t.empty().html(new c.default.Message(e).$el)},_templateHeader:function(){return''+this.progressive+"...
";this.modal.$(".modal-body").empty().append(e).css({"margin-top":"8px"})},dialog:function(t,i,a){function o(){var e=t.$("#copy-modal-title").val();if(!e)return void t.$(".invalid-title").show();var n="copy-all"===t.$('input[name="copy-what"]:checked').val();t.$("button").prop("disabled",!0),l._showAjaxIndicator(),i.copy(!0,e,n).done(function(e){r.resolve(e)}).fail(function(t,s,a){var o={name:e,copyAllDatasets:n};d.default.ajaxErrorModal(i,t,o,l.errorMessage),r.rejectWith(r,arguments)}).done(function(){m&&t.hide()})}a=a||{};var l=this,r=n.Deferred(),c=a.nameFn||this.defaultName,h=c({name:i.get("name")}),f=a.allDatasets?"copy-all":"copy-non-deleted",p=!!e.isUndefined(a.allowAll)||a.allowAll,m=!!e.isUndefined(a.autoClose)||a.autoClose;this.modal=t;var g=a.closing_callback;return t.show(e.extend(a,{title:this.title({name:i.get("name")}),body:s(l._template({name:h,isAnon:Galaxy.user.isAnonymous(),allowAll:p,copyWhat:f,activeLabel:this.activeLabel,allLabel:this.allLabel,anonWarning:this.anonWarning})),buttons:e.object([[(0,u.default)("Cancel"),function(){t.hide()}],[this.submitLabel,o]]),height:"auto",closing_events:!0,closing_callback:function(e){e&&r.reject({cancelled:!0}),g&&g(e)}})),t.$("#copy-modal-title").focus().select(),t.$("#copy-modal-title").on("keydown",function(e){13===e.keyCode&&(e.preventDefault(),o())}),r}},f=e.extend({},h,{defaultName:e.template("imported: <%- name %>"),title:e.template((0,u.default)("Importing history")+' "<%- name %>"'),submitLabel:(0,u.default)("Import"),errorMessage:(0,u.default)("History could not be imported."),progressive:(0,u.default)("Importing history"),activeLabel:(0,u.default)("Import only the active, non-deleted datasets"),allLabel:(0,u.default)("Import all datasets including deleted ones"),anonWarning:(0,u.default)("As an anonymous user, unless you login or register, you will lose your current history ")+(0,u.default)("after importing this history. ")}),p=function(e,t){t=t||{};var i=window.parent.Galaxy.modal||new l.default.View({});return t.useImport?f.dialog(i,e,t):h.dialog(i,e,t)};t.default=p}).call(t,i(1),i(0),i(0))},function(e,t,i){"use strict";(function(e,n){function s(t,i,n){return Galaxy.modal.show({title:i,body:t,closing_events:!0,buttons:{Ok:function(){Galaxy.modal.hide()}}}),Galaxy.modal.$el.addClass("error-modal"),n&&(Galaxy.modal.$(".error-details").add(Galaxy.modal.$('button:contains("Details")')).remove(),e("").addClass("error-details").hide().appendTo(Galaxy.modal.$(".modal-content")).append([e("").text(p),e("").text(JSON.stringify(n,null," "))]),e('").appendTo(Galaxy.modal.$(".buttons")).click(function(){Galaxy.modal.$(".error-details").toggle()})),Galaxy.modal}function a(e,t,i){if(e){if(e=(0,u.default)(e),t=(0,u.default)(t)||(0,u.default)("Error:"),window.Galaxy&&Galaxy.modal)return s(e,t,i);alert(t+"\n\n"+e),console.log("error details:",JSON.stringify(i))}}function o(){return a((0,u.default)("You appear to be offline. Please check your connection and try again."),(0,u.default)("Offline?"))}function l(){return a((0,u.default)("Galaxy is currently unreachable. Please try again in a few minutes.")+" "+h,(0,u.default)("Cannot connect to Galaxy"))}function r(e,t,i,n,s){return n=n||f,n+=" "+h,s=s||(0,u.default)("An error occurred"),a(n,s,d(e,t,i))}function d(e,t,i){return{raven:n.result(window.Raven,"lastEventId"),userAgent:navigator.userAgent,onLine:navigator.onLine,version:n.result(Galaxy.config,"version_major"),xhr:n.omit(t,n.functions(t)),options:n.omit(i,"xhr"),url:n.result(Galaxy.lastAjax,"url"),data:n.result(Galaxy.lastAjax,"data"),model:n.result(e,"toJSON",""+e),user:n.omit(n.result(Galaxy.user,"toJSON"),"email")}}Object.defineProperty(t,"__esModule",{value:!0});var c=i(3),u=function(e){return e&&e.__esModule?e:{default:e}}(c),h=(0,u.default)("Please contact a Galaxy administrator if the problem persists."),f=(0,u.default)("An error occurred while updating information with the server."),p=(0,u.default)("The following information can assist the developers in finding the source of the error:");t.default={errorModal:a,offlineErrorModal:o,badGatewayErrorModal:l,ajaxErrorModal:r}}).call(t,i(0),i(1))},function(e,t,i){"use strict";(function(e){function n(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t.default=e,t}Object.defineProperty(t,"__esModule",{value:!0});var s=i(1),a=n(s),o=i(2),l=n(o),r=i(5),d=function(e){return e&&e.__esModule?e:{default:e}}(r),c=l.Collection.extend({initialize:function(e,t){l.Collection.prototype.initialize.call(this,e,t),this.setOrder(t.order||this.order,{silent:!0})},_setUpListeners:function(){return this.on({"changed-order":this.sort})},fetch:function(e){return e=this._buildFetchOptions(e),Galaxy.debug("fetch options:",e),l.Collection.prototype.fetch.call(this,e)},_buildFetchOptions:function(e){e=a.clone(e)||{};var t=this;e.traditional=!0,e.data=e.data||t._buildFetchData(e),Galaxy.debug("data:",e.data);var i=this._buildFetchFilters(e);return Galaxy.debug("filters:",i),a.isEmpty(i)||a.extend(e.data,this._fetchFiltersToAjaxData(i)),Galaxy.debug("data:",e.data),e},_buildFetchData:function(e){var t={};return this.order&&(t.order=this.order),a.defaults(a.pick(e,this._fetchParams),t)},_fetchParams:["order","limit","offset","view","keys"],_buildFetchFilters:function(e){return a.clone(e.filters||{})},_fetchFiltersToAjaxData:function(e){var t={q:[],qv:[]};return a.each(e,function(e,i){void 0!==e&&""!==e&&(!0===e&&(e="True"),!1===e&&(e="False"),null===e&&(e="None"),t.q.push(i),t.qv.push(e))}),t},reset:function(e,t){return this.allFetched=!1,l.Collection.prototype.reset.call(this,e,t)},order:null,comparators:{update_time:d.default.buildComparator("update_time",{ascending:!1}),"update_time-asc":d.default.buildComparator("update_time",{ascending:!0}),create_time:d.default.buildComparator("create_time",{ascending:!1}),"create_time-asc":d.default.buildComparator("create_time",{ascending:!0})},setOrder:function(e,t){t=t||{};var i=this,n=i.comparators[e];if(a.isUndefined(n))throw new Error("unknown order: "+e);if(n!==i.comparator)return i.order=e,i.comparator=n,t.silent||i.trigger("changed-order",t),i}}),u=c.extend({limitPerPage:500,initialize:function(e,t){c.prototype.initialize.call(this,e,t),this.currentPage=t.currentPage||0},getTotalItemCount:function(){return this.length},shouldPaginate:function(){return this.getTotalItemCount()>=this.limitPerPage},getLastPage:function(){return Math.floor(this.getTotalItemCount()/this.limitPerPage)},getPageCount:function(){return this.getLastPage()+1},getPageLimitOffset:function(e){return e=this.constrainPageNum(e),{limit:this.limitPerPage,offset:e*this.limitPerPage}},constrainPageNum:function(e){return Math.max(0,Math.min(e,this.getLastPage()))},fetchPage:function(e,t){var i=this;return e=i.constrainPageNum(e),i.currentPage=e,t=a.defaults(t||{},i.getPageLimitOffset(e)),i.trigger("fetching-more"),i.fetch(t).always(function(){i.trigger("fetching-more-done")})},fetchCurrentPage:function(e){return this.fetchPage(this.currentPage,e)},fetchPrevPage:function(e){return this.fetchPage(this.currentPage-1,e)},fetchNextPage:function(e){return this.fetchPage(this.currentPage+1,e)}}),h=c.extend({limitOnFirstFetch:null,limitPerFetch:100,initialize:function(e,t){c.prototype.initialize.call(this,e,t),this.limitOnFirstFetch=t.limitOnFirstFetch||this.limitOnFirstFetch,this.limitPerFetch=t.limitPerFetch||this.limitPerFetch,this.allFetched=!1,this.lastFetched=t.lastFetched||0},_buildFetchOptions:function(e){return e.remove=e.remove||!1,c.prototype._buildFetchOptions.call(this,e)},fetchFirst:function(e){return Galaxy.debug("ControlledFetchCollection.fetchFirst:",e),e=e?a.clone(e):{},this.allFetched=!1,this.lastFetched=0,this.fetchMore(a.defaults(e,{reset:!0,limit:this.limitOnFirstFetch}))},fetchMore:function(t){Galaxy.debug("ControlledFetchCollection.fetchMore:",t),t=a.clone(t||{});var i=this;if(Galaxy.debug("fetchMore, options.reset:",t.reset),!t.reset&&i.allFetched)return e.when();t.reset?t.offset=0:void 0===t.offset&&(t.offset=i.lastFetched);var n=t.limit=t.limit||i.limitPerFetch||null;return Galaxy.debug("fetchMore, limit:",n,"offset:",t.offset),i.trigger("fetching-more"),i.fetch(t).always(function(){i.trigger("fetching-more-done")}).done(function(e){var t=a.isArray(e)?e.length:0;i.lastFetched+=t,Galaxy.debug("fetchMore, lastFetched:",i.lastFetched),(!n||t",(0,p.default)(["Pair collections are permanent collections containing two datasets: one forward and one reverse. ","Often these are forward and reverse reads. The pair collections can be passed to tools and ","workflows in order to have analyses done on both datasets. This interface allows ","you to create a pair, name it, and swap which is forward and which reverse."].join("")),"
","",(0,p.default)(['Once your collection is complete, enter a name and ','click "Create list".'].join("")),"
"].join("")),invalidInitial:n.template(['"+JSON.stringify(e.responseJSON)+"":s+=": "+i),n._showAlert(s,"alert-danger")},render:function(e,t){return this.$el.empty().html(this.templates.main()),this._renderHeader(e),this._renderMiddle(e),this._renderFooter(e),this._addPluginComponents(),this.trigger("rendered",this),this},_renderHeader:function(e,t){var i=this.$(".header").empty().html(this.templates.header()).find(".help-content").prepend(a(this.templates.helpContent()));return this._renderFilters(),i},_renderFilters:function(){return this.$(".forward-column .column-header input").val(this.filters[0]).add(this.$(".reverse-column .column-header input").val(this.filters[1]))},_renderMiddle:function(e,t){var i=this.$(".middle").empty().html(this.templates.middle());return this.unpairedPanelHidden?this.$(".unpaired-columns").hide():this.pairedPanelHidden&&this.$(".paired-columns").hide(),this._renderUnpaired(),this._renderPaired(),i},_renderUnpaired:function(e,t){var i,n,s=this,a=[],o=this._splitByFilters();return this.$(".forward-column .title").text([o[0].length,(0,v.default)("unpaired forward")].join(" ")),this.$(".forward-column .unpaired-info").text(this._renderUnpairedDisplayStr(this.unpaired.length-o[0].length)),this.$(".reverse-column .title").text([o[1].length,(0,v.default)("unpaired reverse")].join(" ")),this.$(".reverse-column .unpaired-info").text(this._renderUnpairedDisplayStr(this.unpaired.length-o[1].length)),this.$(".unpaired-columns .column-datasets").empty(),this.$(".autopair-link").toggle(0!==this.unpaired.length),0===this.unpaired.length?void this._renderUnpairedEmpty():(n=o[1].map(function(e,t){return void 0!==o[0][t]&&o[0][t]!==e&&a.push(s._renderPairButton()),s._renderUnpairedDataset(e)}),i=o[0].map(function(e){return s._renderUnpairedDataset(e)}),i.length||n.length?(this.$(".unpaired-columns .forward-column .column-datasets").append(i).add(this.$(".unpaired-columns .paired-column .column-datasets").append(a)).add(this.$(".unpaired-columns .reverse-column .column-datasets").append(n)),void this._adjUnpairedOnScrollbar()):void this._renderUnpairedNotShown())},_renderUnpairedDisplayStr:function(e){return["(",e," ",(0,v.default)("filtered out"),")"].join("")},_renderUnpairedDataset:function(e){return a("").attr("id","dataset-"+e.id).addClass("dataset unpaired").attr("draggable",!0).addClass(e.selected?"selected":"").append(a("").addClass("dataset-name").text(e.name)).data("dataset",e)},_renderPairButton:function(){return a("").addClass("dataset unpaired").append(a("").addClass("dataset-name").text((0,v.default)("Pair these datasets")))},_renderUnpairedEmpty:function(){var e=a('').text("("+(0,v.default)("no remaining unpaired datasets")+")");return this.$(".unpaired-columns .paired-column .column-datasets").empty().prepend(e),e},_renderUnpairedNotShown:function(){var e=a('').text("("+(0,v.default)("no datasets were found matching the current filters")+")");return this.$(".unpaired-columns .paired-column .column-datasets").empty().prepend(e),e},_adjUnpairedOnScrollbar:function(){var e=this.$(".unpaired-columns").last(),t=this.$(".unpaired-columns .reverse-column .dataset").first();if(t.length){var i=e.offset().left+e.outerWidth(),n=t.offset().left+t.outerWidth(),s=Math.floor(i)-Math.floor(n);this.$(".unpaired-columns .forward-column").css("margin-left",s>0?s:0)}},_renderPaired:function(e,t){if(this.$(".paired-column-title .title").text([this.paired.length,(0,v.default)("paired")].join(" ")),this.$(".unpair-all-link").toggle(0!==this.paired.length),0===this.paired.length)return void this._renderPairedEmpty();this.$(".remove-extensions-link").show(),this.$(".paired-columns .column-datasets").empty();var i=this;this.paired.forEach(function(e,t){var n=new y({pair:e});i.$(".paired-columns .column-datasets").append(n.render().$el).append(['"].join(""))})},_renderPairedEmpty:function(){var e=a('').text("("+(0,v.default)("no paired datasets yet")+")");return this.$(".paired-columns .column-datasets").empty().prepend(e),e},footerSettings:{".hide-originals":"hideOriginals",".remove-extensions":"removeExtensions"},_addPluginComponents:function(){this._chooseFiltersPopover(".choose-filters-link"),this.$(".help-content i").hoverhighlight(".collection-creator","rgba( 64, 255, 255, 1.0 )")},_chooseFiltersPopover:function(e){function t(e,t){return['"].join("")}var i=a(n.template(['
",(0,v.default)(["Collections of paired datasets are ordered lists of dataset pairs (often forward and reverse reads). ","These collections can be passed to tools and workflows in order to have analyses done on each member of ","the entire group. This interface allows you to create a collection, choose which datasets are paired, ","and re-order the final collection."].join("")),"
","",(0,v.default)(['Unpaired datasets are shown in the unpaired section ',"(hover over the underlined words to highlight below). ",'Paired datasets are shown in the paired section.',"
",(0,v.default)(["
",(0,v.default)(["To unpair individual dataset pairs, click the ",'unpair buttons ( ). ','Click the "Unpair all" link to unpair all pairs.'].join("")),"
","",(0,v.default)(['You can include or remove the file extensions (e.g. ".fastq") from your pair names by toggling the ','"Remove file extensions from pair names?" control.'].join("")),"
","",(0,v.default)(['Once your collection is complete, enter a name and ','click "Create list". ',"(Note: you do not have to pair all unpaired datasets to finish.)"].join("")),"
"].join(""))})}),b=function(e,t){var i,a=s.Deferred();if(t=n.defaults(t||{},{datasets:e,oncancel:function(){Galaxy.modal.hide(),a.reject("cancelled")},oncreate:function(e,t){Galaxy.modal.hide(),a.resolve(t)}}),!window.Galaxy||!Galaxy.modal)throw new Error("Galaxy or Galaxy.modal not found");return i=new w(t),Galaxy.modal.show({title:(0,v.default)("Create a collection of paired datasets"),body:i.$el,width:"80%",height:"800px",closing_events:!0}),i.render(),window.creator=i,a};t.default={PairedCollectionCreator:w,pairedCollectionCreatorModal:b,createListOfPairsCollection:r}}).call(t,i(2),i(1),i(0),i(0))},function(e,t,i){"use strict";function n(e,t){if(0===e.length)return t.length;if(0===t.length)return e.length;var i,n=[];for(i=0;i<=t.length;i++)n[i]=[i];var s;for(s=0;s<=e.length;s++)n[0][s]=s;for(i=1;i<=t.length;i++)for(s=1;s<=e.length;s++)t.charAt(i-1)===e.charAt(s-1)?n[i][s]=n[i-1][s-1]:n[i][s]=Math.min(n[i-1][s-1]+1,Math.min(n[i][s-1]+1,n[i-1][s]+1));return n[t.length][e.length]}Object.defineProperty(t,"__esModule",{value:!0}),t.default=n},function(e,t,i){"use strict";(function(e,n,s){function a(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var o=i(3),l=a(o),r=i(11),d=(a(r),i(6)),c=a(d),u=i(14),h=a(u),f=e.Model.extend({initialize:function(e){e=e||{},e.user_id=e.user_id||Galaxy.user.id,this.set({user_id:e.user_id,information:{title:(0,l.default)("Manage information"),description:"Edit your email, addresses and custom parameters or change your username.",url:"api/users/"+e.user_id+"/information/inputs",icon:"fa-user",redirect:"user"},password:{title:(0,l.default)("Change password"),description:(0,l.default)("Allows you to change your login credentials."),icon:"fa-unlock-alt",url:"api/users/"+e.user_id+"/password/inputs",submit_title:"Save password",redirect:"user"},communication:{title:(0,l.default)("Change communication settings"),description:(0,l.default)("Enable or disable the communication feature to chat with other users."),url:"api/users/"+e.user_id+"/communication/inputs",icon:"fa-comments-o",redirect:"user"},permissions:{title:(0,l.default)("Set dataset permissions for new histories"),description:"Grant others default access to newly created histories. Changes made here will only affect histories created after these settings have been stored.",url:"api/users/"+e.user_id+"/permissions/inputs",icon:"fa-users",submit_title:"Save permissions",redirect:"user"},api_key:{title:(0,l.default)("Manage API key"),description:(0,l.default)("Access your current API key or create a new one."),url:"api/users/"+e.user_id+"/api_key/inputs",icon:"fa-key",submit_title:"Create a new key",submit_icon:"fa-check"},toolbox_filters:{title:(0,l.default)("Manage Toolbox filters"),description:(0,l.default)("Customize your Toolbox by displaying or omitting sets of Tools."),url:"api/users/"+e.user_id+"/toolbox_filters/inputs",icon:"fa-filter",submit_title:"Save filters",redirect:"user"},openids:{title:(0,l.default)("Manage OpenIDs"),description:(0,l.default)("Associate OpenIDs with your account."),icon:"fa-openid",onclick:function(){window.location.href=Galaxy.root+"user/openid_manage?cntrller=user&use_panels=True"}},custom_builds:{title:(0,l.default)("Manage custom builds"),description:(0,l.default)("Add or remove custom builds using history datasets."),icon:"fa-cubes",onclick:function(){window.location.href=Galaxy.root+"custom_builds"}},logout:{title:(0,l.default)("Sign out"),description:(0,l.default)("Click here to sign out of all sessions."),icon:"fa-sign-out",onclick:function(){Galaxy.modal.show({title:(0,l.default)("Sign out"),body:"Do you want to continue and sign out of all active sessions?",buttons:{Cancel:function(){Galaxy.modal.hide()},"Sign out":function(){window.location.href=Galaxy.root+"user/logout?session_csrf_token="+Galaxy.session_csrf_token}}})}}})}}),p=e.View.extend({title:(0,l.default)("User Preferences"),initialize:function(){this.model=new f,this.setElement(""),this.render()},render:function(){var e=this,t=Galaxy.config;n.getJSON(Galaxy.root+"api/users/"+Galaxy.user.id,function(i){e.$preferences=n("").addClass("ui-panel").append(n("").append("User preferences")).append(n("").append("You are logged in as "+s.escape(i.email)+".")).append(e.$table=n("The length format is two-column, separated by whitespace, of the form:
chrom/contig length of chrom/contig
For example, the first few entries of mm9.len are as follows:
chr1 197195432\nchr2 181748087\nchr3 159599783\nchr4 155630120\nchr5 152537259
Trackster uses this information to populate the select box for chrom/contig, andto set the maximum basepair of the track browser. You may either upload a .len fileof this format (Len File option), or directly enter the information into the box (Len Entry option).
"},_templateFasta:function(){return"This is a multi-fasta file from your current history that provides the genomesequences for each chromosome/contig in your build.
Here is a snippet from an example multi-fasta file:
>chr1\nATTATATATAAGACCACAGAGAGAATATTTTGCCCGG...\n\n>chr2\nGGCGGCCGCGGCGATATAGAACTACTCATTATATATA...\n\n..."}});t.default={View:m}}).call(t,i(2),i(0))},function(e,t,i){"use strict";(function(e,n,s){Object.defineProperty(t,"__esModule",{value:!0});var a=i(19),o=function(e){return e&&e.__esModule?e:{default:e}}(a),l=e.View.extend({initialize:function(t){var i=this;this.setElement(n("")),this.model=new e.Model(t),this.item=this.model.get("item"),this.title=this.model.get("plural"),n.ajax({url:Galaxy.root+this.item+"/"+this.model.get("action_id")+"?"+n.param(Galaxy.params),success:function(e){e.dict_format=!0,i.model.set(e),i.render()}})},render:function(){var e=new o.default(this.model.attributes);this.$el.empty().append(e.$el),this.$el.append(this._templateShared())},_templateShared:function(){var e=this,t=n("
| Title | Owner |
|---|
| Name | Tags | Owner | # of Steps | Published | Show in tools panel |
|---|
An error occured while running the tool "+i.tool_id+".
"),e.$el.append("Tool execution generated the following messages:
"),e.$el.append(''+i.stderr+""),e.$el.append("
Usually the local Galaxy administrators regularly review errors that occur on the server. However, if you would like to provide additional information (such as what you were trying to do when the error occurred) and a contact e-mail address, we will be better able to investigate your problem and get back to you.
"),e.$el.append(e._getBugFormTemplate(t,i))},display_message:function(e,t,i,n){n?i?t.append(new c.default.UnescapedMessage(e).$el):t.empty().html(new c.default.UnescapedMessage(e).$el):i?t.append(new c.default.Message(e).$el):t.empty().html(new c.default.Message(e).$el)},_templateHeader:function(){return'| ">Name | ','<%= _.escape(item.get("name")) %> | ',"
|---|---|
| Data type | ','<%= _.escape(item.get("file_ext")) %> | ',"
| Genome build | ','<%= _.escape(item.get("genome_build")) %> | ',"
| Size | ','<%= _.escape(item.get("file_size")) %> | ',"
| Date uploaded (UTC) | ','<%= _.escape(item.get("date_uploaded")) %> | ',"
| Uploaded by | ','<%= _.escape(item.get("uploaded_by")) %> | ',"
| Data Lines | ','<%= _.escape(item.get("metadata_data_lines")) %> | ',"
| Comment Lines | ','<%= _.escape(item.get("metadata_comment_lines")) %> | ',"
| Number of Columns | ','<%= _.escape(item.get("metadata_columns")) %> | ',"
| Column Types | ','<%= _.escape(item.get("metadata_column_types")) %> | ',"
| Message | ','<%= _.escape(item.get("message")) %> | ',"
| Misc. blurb | ','<%= _.escape(item.get("misc_blurb")) %> | ',"
| Misc. info | ','<%= _.escape(item.get("misc_info")) %> | ',"
| Tags | ','<%= _.escape(item.get("tags")) %> | ',"
| UUID | ','<%= _.escape(item.get("uuid")) %> | ',"
| State | ','<%= _.escape(item.get("state")) %> | ',"
','<%= _.escape(item.get("job_stderr")) %>',"","<% } %>",'<% if (item.get("job_stdout")) { %>',"','<%= _.escape(item.get("job_stdout")) %>',"","<% } %>","',"","
| Name | ','<%= _.escape(ldda.get("name")) %> | ',"
|---|---|
| Data type | ','<%= _.escape(ldda.get("file_ext")) %> | ',"
| Genome build | ','<%= _.escape(ldda.get("genome_build")) %> | ',"
| Size | ','<%= _.escape(ldda.get("file_size")) %> | ',"
| Date uploaded (UTC) | ','<%= _.escape(ldda.get("date_uploaded")) %> | ',"
| Uploaded by | ','<%= _.escape(ldda.get("uploaded_by")) %> | ',"
| Data Lines | ','<%= _.escape(ldda.get("metadata_data_lines")) %> | ',"
| Comment Lines | ','<%= _.escape(ldda.get("metadata_comment_lines")) %> | ',"
| Number of Columns | ','<%= _.escape(ldda.get("metadata_columns")) %> | ',"
| Column Types | ','<%= _.escape(ldda.get("metadata_column_types")) %> | ',"
| Message | ','<%= _.escape(ldda.get("message")) %> | ',"
| Miscellaneous blurb | ','<%= _.escape(ldda.get("misc_blurb")) %> | ',"
| Miscellaneous information | ','<%= _.escape(ldda.get("misc_info")) %> | ',"
| Tags | ','<%= _.escape(item.get("tags")) %> | ',"
',"","
| ">Name | ','"> | ',"
|---|---|
| Data type | ',"",''," | ","
| Genome build | ',"",''," | ","
| Size | ','<%= _.escape(item.get("file_size")) %> | ',"
| Date uploaded (UTC) | ','<%= _.escape(item.get("date_uploaded")) %> | ',"
| Uploaded by | ','<%= _.escape(item.get("uploaded_by")) %> | ',"
| Data Lines | ','<%= _.escape(item.get("metadata_data_lines")) %> | ',"Comment Lines | ','<% if (item.get("metadata_comment_lines") === "") { %>','<%= _.escape(item.get("metadata_comment_lines")) %> | ',"<% } else { %>",'unknown | ',"<% } %>","","
| Number of Columns | ','<%= _.escape(item.get("metadata_columns")) %> | ',"
| Column Types | ','<%= _.escape(item.get("metadata_column_types")) %> | ',"
| Message | ','<%= _.escape(item.get("message")) %> | ',"
| Misc. blurb | ','<%= _.escape(item.get("misc_blurb")) %> | ',"
| Misc. information | ','"> | ',"
| Tags | ','<%= _.escape(item.get("tags")) %> | ',"
',"","
You can remove all access restrictions on this dataset.
',"<% } else { %>",'You can make this dataset private to you.
',"<% } %>","| ',' | ',' | name | ','description | ','data type | ','size | ','time updated (UTC) | ','state | ','',"",'',' |
|---|---|---|---|---|---|---|---|---|
| ",'" title="Go to parent folder" class="btn_open_folder btn btn-default btn-xs">..'," | ",""," | "," | "," | "," | "," | "," | "," | "," |
| ','',"name","",''," | ",'description | ','synopsis | ','',"",'',""," |
|---|
| library | ',"","",""," |
|---|---|
| name | ",'<%- library.get("name") %> | ',"
| description | ",'<%- library.get("description") %> | ',"
| synopsis | ",'<%- library.get("synopsis") %> | ',"
| created | ",'"><%- library.get("create_time_pretty") %> | ',"
| id | ",'<%- library.get("id") %> | ',"
| folder | ',"","",""," |
|---|---|
| name | ","<%- options.folder_name %> | ","
| description | ","<%- options.folder_description %> | ","
| id | ","<%- options.id %> | ","
You can set extension type and genome for all imported datasets at once:
","You can set extension type and genome for all imported datasets at once:
","2. Choose the datasets to import:
","| ">Name | ','<%= _.escape(item.get("name")) %> | ',"
|---|---|
| Data type | ','<%= _.escape(item.get("file_ext")) %> | ',"
| Genome build | ','<%= _.escape(item.get("genome_build")) %> | ',"
| Size | ','<%= _.escape(item.get("file_size")) %> | ',"
| Date uploaded (UTC) | ','<%= _.escape(item.get("date_uploaded")) %> | ',"
| Uploaded by | ','<%= _.escape(item.get("uploaded_by")) %> | ',"
| Data Lines | ','<%= _.escape(item.get("metadata_data_lines")) %> | ',"
| Comment Lines | ','<%= _.escape(item.get("metadata_comment_lines")) %> | ',"
| Number of Columns | ','<%= _.escape(item.get("metadata_columns")) %> | ',"
| Column Types | ','<%= _.escape(item.get("metadata_column_types")) %> | ',"
| Message | ','<%= _.escape(item.get("message")) %> | ',"
| Misc. blurb | ','<%= _.escape(item.get("misc_blurb")) %> | ',"
| Misc. info | ','<%= _.escape(item.get("misc_info")) %> | ',"
| Tags | ','<%= _.escape(item.get("tags")) %> | ',"
| UUID | ','<%= _.escape(item.get("uuid")) %> | ',"
| State | ','<%= _.escape(item.get("state")) %> | ',"
','<%= _.escape(item.get("job_stderr")) %>',"","<% } %>",'<% if (item.get("job_stdout")) { %>',"','<%= _.escape(item.get("job_stdout")) %>',"","<% } %>","',"","
| Name | ','<%= _.escape(ldda.get("name")) %> | ',"
|---|---|
| Data type | ','<%= _.escape(ldda.get("file_ext")) %> | ',"
| Genome build | ','<%= _.escape(ldda.get("genome_build")) %> | ',"
| Size | ','<%= _.escape(ldda.get("file_size")) %> | ',"
| Date uploaded (UTC) | ','<%= _.escape(ldda.get("date_uploaded")) %> | ',"
| Uploaded by | ','<%= _.escape(ldda.get("uploaded_by")) %> | ',"
| Data Lines | ','<%= _.escape(ldda.get("metadata_data_lines")) %> | ',"
| Comment Lines | ','<%= _.escape(ldda.get("metadata_comment_lines")) %> | ',"
| Number of Columns | ','<%= _.escape(ldda.get("metadata_columns")) %> | ',"
| Column Types | ','<%= _.escape(ldda.get("metadata_column_types")) %> | ',"
| Message | ','<%= _.escape(ldda.get("message")) %> | ',"
| Miscellaneous blurb | ','<%= _.escape(ldda.get("misc_blurb")) %> | ',"
| Miscellaneous information | ','<%= _.escape(ldda.get("misc_info")) %> | ',"
| Tags | ','<%= _.escape(item.get("tags")) %> | ',"
',"","
| ">Name | ','"> | ',"
|---|---|
| Data type | ',"",''," | ","
| Genome build | ',"",''," | ","
| Size | ','<%= _.escape(item.get("file_size")) %> | ',"
| Date uploaded (UTC) | ','<%= _.escape(item.get("date_uploaded")) %> | ',"
| Uploaded by | ','<%= _.escape(item.get("uploaded_by")) %> | ',"
| Data Lines | ','<%= _.escape(item.get("metadata_data_lines")) %> | ',"Comment Lines | ','<% if (item.get("metadata_comment_lines") === "") { %>','<%= _.escape(item.get("metadata_comment_lines")) %> | ',"<% } else { %>",'unknown | ',"<% } %>","","
| Number of Columns | ','<%= _.escape(item.get("metadata_columns")) %> | ',"
| Column Types | ','<%= _.escape(item.get("metadata_column_types")) %> | ',"
| Message | ','<%= _.escape(item.get("message")) %> | ',"
| Misc. blurb | ','<%= _.escape(item.get("misc_blurb")) %> | ',"
| Misc. information | ','"> | ',"
| Tags | ','<%= _.escape(item.get("tags")) %> | ',"
',"","
You can remove all access restrictions on this dataset.
',"<% } else { %>",'You can make this dataset private to you.
',"<% } %>","| ',' | ',' | name | ','description | ','data type | ','size | ','time updated (UTC) | ','state | ','',"",'',' |
|---|---|---|---|---|---|---|---|---|
| ",'" title="Go to parent folder" class="btn_open_folder btn btn-default btn-xs">..'," | ",""," | "," | "," | "," | "," | "," | "," | "," |
| ','',"name","",''," | ",'description | ','synopsis | ','',"",'',""," |
|---|
| library | ',"","",""," |
|---|---|
| name | ",'<%- library.get("name") %> | ',"
| description | ",'<%- library.get("description") %> | ',"
| synopsis | ",'<%- library.get("synopsis") %> | ',"
| created | ",'"><%- library.get("create_time_pretty") %> | ',"
| id | ",'<%- library.get("id") %> | ',"
| folder | ',"","",""," |
|---|---|
| name | ","<%- options.folder_name %> | ","
| description | ","<%- options.folder_description %> | ","
| id | ","<%- options.id %> | ","
You can set extension type and genome for all imported datasets at once:
","You can set extension type and genome for all imported datasets at once:
","2. Choose the datasets to import:
","| ">Name | ','<%= _.escape(item.get("name")) %> | ',"
|---|---|
| Data type | ','<%= _.escape(item.get("file_ext")) %> | ',"
| Genome build | ','<%= _.escape(item.get("genome_build")) %> | ',"
| Size | ','<%= _.escape(item.get("file_size")) %> | ',"
| Date uploaded (UTC) | ','<%= _.escape(item.get("date_uploaded")) %> | ',"
| Uploaded by | ','<%= _.escape(item.get("uploaded_by")) %> | ',"
| Data Lines | ','<%= _.escape(item.get("metadata_data_lines")) %> | ',"
| Comment Lines | ','<%= _.escape(item.get("metadata_comment_lines")) %> | ',"
| Number of Columns | ','<%= _.escape(item.get("metadata_columns")) %> | ',"
| Column Types | ','<%= _.escape(item.get("metadata_column_types")) %> | ',"
| Message | ','<%= _.escape(item.get("message")) %> | ',"
| Misc. blurb | ','<%= _.escape(item.get("misc_blurb")) %> | ',"
| Misc. info | ','<%= _.escape(item.get("misc_info")) %> | ',"
| Tags | ','<%= _.escape(item.get("tags")) %> | ',"
| UUID | ','<%= _.escape(item.get("uuid")) %> | ',"
| State | ','<%= _.escape(item.get("state")) %> | ',"
','<%= _.escape(item.get("job_stderr")) %>',"","<% } %>",'<% if (item.get("job_stdout")) { %>',"','<%= _.escape(item.get("job_stdout")) %>',"","<% } %>","',"","
| Name | ','<%= _.escape(ldda.get("name")) %> | ',"
|---|---|
| Data type | ','<%= _.escape(ldda.get("file_ext")) %> | ',"
| Genome build | ','<%= _.escape(ldda.get("genome_build")) %> | ',"
| Size | ','<%= _.escape(ldda.get("file_size")) %> | ',"
| Date uploaded (UTC) | ','<%= _.escape(ldda.get("date_uploaded")) %> | ',"
| Uploaded by | ','<%= _.escape(ldda.get("uploaded_by")) %> | ',"
| Data Lines | ','<%= _.escape(ldda.get("metadata_data_lines")) %> | ',"
| Comment Lines | ','<%= _.escape(ldda.get("metadata_comment_lines")) %> | ',"
| Number of Columns | ','<%= _.escape(ldda.get("metadata_columns")) %> | ',"
| Column Types | ','<%= _.escape(ldda.get("metadata_column_types")) %> | ',"
| Message | ','<%= _.escape(ldda.get("message")) %> | ',"
| Miscellaneous blurb | ','<%= _.escape(ldda.get("misc_blurb")) %> | ',"
| Miscellaneous information | ','<%= _.escape(ldda.get("misc_info")) %> | ',"
| Tags | ','<%= _.escape(item.get("tags")) %> | ',"
',"","
| ">Name | ','"> | ',"
|---|---|
| Data type | ',"",''," | ","
| Genome build | ',"",''," | ","
| Size | ','<%= _.escape(item.get("file_size")) %> | ',"
| Date uploaded (UTC) | ','<%= _.escape(item.get("date_uploaded")) %> | ',"
| Uploaded by | ','<%= _.escape(item.get("uploaded_by")) %> | ',"
| Data Lines | ','<%= _.escape(item.get("metadata_data_lines")) %> | ',"Comment Lines | ','<% if (item.get("metadata_comment_lines") === "") { %>','<%= _.escape(item.get("metadata_comment_lines")) %> | ',"<% } else { %>",'unknown | ',"<% } %>","","
| Number of Columns | ','<%= _.escape(item.get("metadata_columns")) %> | ',"
| Column Types | ','<%= _.escape(item.get("metadata_column_types")) %> | ',"
| Message | ','<%= _.escape(item.get("message")) %> | ',"
| Misc. blurb | ','<%= _.escape(item.get("misc_blurb")) %> | ',"
| Misc. information | ','"> | ',"
| Tags | ','<%= _.escape(item.get("tags")) %> | ',"
',"","
You can remove all access restrictions on this dataset.
',"<% } else { %>",'You can make this dataset private to you.
',"<% } %>","| ',' | ',' | name | ','description | ','data type | ','size | ','time updated (UTC) | ','state | ','',"",'',' |
|---|---|---|---|---|---|---|---|---|
| ",'" title="Go to parent folder" class="btn_open_folder btn btn-default btn-xs">..'," | ",""," | "," | "," | "," | "," | "," | "," | "," |
| ','',"name","",''," | ",'description | ','synopsis | ','',"",'',""," |
|---|
| library | ',"","",""," |
|---|---|
| name | ",'<%- library.get("name") %> | ',"
| description | ",'<%- library.get("description") %> | ',"
| synopsis | ",'<%- library.get("synopsis") %> | ',"
| created | ",'"><%- library.get("create_time_pretty") %> | ',"
| id | ",'<%- library.get("id") %> | ',"
| folder | ',"","",""," |
|---|---|
| name | ","<%- options.folder_name %> | ","
| description | ","<%- options.folder_description %> | ","
| id | ","<%- options.id %> | ","
You can set extension type and genome for all imported datasets at once:
","You can set extension type and genome for all imported datasets at once:
","2. Choose the datasets to import:
","