+
+
+
+
diff --git a/client/galaxy/scripts/mvc/tool/tool-form.js b/client/galaxy/scripts/mvc/tool/tool-form.js
index 0682b2f5840..59ced2add5e 100644
--- a/client/galaxy/scripts/mvc/tool/tool-form.js
+++ b/client/galaxy/scripts/mvc/tool/tool-form.js
@@ -13,6 +13,7 @@ import ToolFormBase from "mvc/tool/tool-form-base";
import Webhooks from "mvc/webhooks";
import Vue from "vue";
import ToolEntryPoints from "components/ToolEntryPoints/ToolEntryPoints";
+import ToolRecommendation from "components/ToolRecommendation";
const View = Backbone.View.extend({
initialize: function(options) {
@@ -268,6 +269,19 @@ const View = Backbone.View.extend({
}
}
this.$el.append(this._templateSuccess(response, job_def));
+ const enable_tool_recommendations = Galaxy.config.enable_tool_recommendations;
+ if (enable_tool_recommendations === true || enable_tool_recommendations === "true") {
+ // show tool recommendations
+ const ToolRecommendationInstance = Vue.extend(ToolRecommendation);
+ const vm = document.createElement("div");
+ this.$el.append(vm);
+ const instance = new ToolRecommendationInstance({
+ propsData: {
+ toolId: job_def.tool_id
+ }
+ });
+ instance.$mount(vm);
+ }
this.$el.parent().scrollTop(0);
// Show Webhook if job is running
if (response.jobs && response.jobs.length > 0) {
diff --git a/client/galaxy/style/scss/base.scss b/client/galaxy/style/scss/base.scss
index ed488b4f892..ac567172780 100644
--- a/client/galaxy/style/scss/base.scss
+++ b/client/galaxy/style/scss/base.scss
@@ -1650,3 +1650,38 @@ body.reports {
bottom: 0;
background: url(../../images/largespinner.gif) no-repeat center center fixed;
}
+
+/* Used for tree in tool recommendations */
+.tool-recommendation-view {
+ .node {
+ cursor: pointer;
+ circle {
+ fill: lighten($brand-primary, 20%);
+ stroke: lighten($brand-primary, 20%);
+ stroke-width: 0.3rem;
+ }
+ text {
+ font: 0.75rem sans-serif;
+ }
+ }
+
+ .node-enter {
+ fill-opacity: 1e-6;
+ }
+
+ .node-update {
+ fill-opacity: 1;
+ }
+
+ .tree-size {
+ width: 96%;
+ height: 50%;
+ position: absolute;
+ }
+
+ .link {
+ fill: none;
+ stroke: lighten($brand-primary, 20%);
+ stroke-width: 0.3rem;
+ }
+}
diff --git a/config/tool_recommendations_overwrite.yml.sample b/config/tool_recommendations_overwrite.yml.sample
new file mode 100644
index 00000000000..b1fc424a766
--- /dev/null
+++ b/config/tool_recommendations_overwrite.yml.sample
@@ -0,0 +1,48 @@
+# Provide a list of tools which are deprecated. These tools would be removed the list of
+# recommended tools by the deep learning model. These tools will be removed from the recommendations and a warning message, set as the 'text_message',
+# is shown instead of their recommendations and when they are executed.
+# Format:
+# <