diff test-data/meme_output_test2.html @ 5:f33d77dcacce draft

"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit 03235f29be6368f58bc730a20d87a13cf215310f"
author iuc
date Sat, 09 Apr 2022 08:32:58 +0000
parents 3e5c80594237
children
line wrap: on
line diff
--- a/test-data/meme_output_test2.html	Sat Nov 27 14:39:01 2021 +0000
+++ b/test-data/meme_output_test2.html	Sat Apr 09 08:32:58 2022 +0000
@@ -1,27 +1,73 @@
-<!DOCTYPE HTML>
-<html>
-  <head>
-    <meta charset="UTF-8">
-    <title>MEME</title>
-    <script>
-      // @JSON_VAR data
-      var data = {
-        "program": "MEME",
-        "version": "5.0.5",
-        "release": "Mon Mar 18 20:12:19 2019 -0700",
-        "stop_reason": "Stopped because requested number of motifs (1) found.",
-        "cmd": [
-          "meme",
-          "-o",
-          "-nostatus", "-maxsize", "1000000", "-sf", "Galaxy_FASTA_Input",
-          "-dna", "-mod", "zoops", "-nmotifs", "1", "-wnsites", "0.8",
-          "-minw", "8", "-maxw", "50", "-wg", "11", "-ws", "1", "-maxiter",
-          "50", "-distance", "0.001", "-prior", "dirichlet", "-b", "0.01",
-          "-plib",
-          "-spmap", "uni", "-spfuzz", "0.5"
-        ],
-        "motifs": [
-        ]
-      };
-    </script>
-var site_url = "http://meme-suite.org";
+      <script>
+      {
+        $("opt_mod").className = data.options.mod;
+        $("opt_objfun").textContent = data.options.objfun;
+        $("opt_spfun").textContent = data.options.spfun;
+        $("opt_strand").className = (current_alphabet.has_complement() ? (data.options.revcomp ? "both" : "given") : "none");
+        $("opt_nmotifs").textContent = data.options.nmotifs;
+        $("opt_evt").textContent = (typeof data.options.evt === "number" ? data.options.evt : "no limit");
+        $("opt_minw").textContent = data.options.minw;
+        $("opt_maxw").textContent = data.options.maxw;
+        $("opt_minsites").textContent = data.options.minsites;
+        $("opt_maxsites").textContent = data.options.maxsites;
+        $("opt_wnsites").textContent = data.options.wnsites;
+        $("opt_spmap").className = data.options.spmap;
+        $("opt_spfuzz").textContent = data.options.spfuzz;
+        $("opt_prior").className = data.options.prior;
+        if (data.options.prior == "dirichlet") {
+          $("opt_prior_source").textContent = make_background_source("Source", data.background.source, true);
+        } else {
+          $("opt_prior_source").textContent = (data.options.prior == "addone") ? "motif observed frequencies" : data.options.priors_source;
+        }
+        $("opt_b").textContent = (data.options.b < 0) ? "not applicable" : (data.options.b == 0) ? "intrinsic strength" : data.options.b;
+        $("opt_maxiter").textContent = data.options.maxiter;
+        $("opt_distance").textContent = data.options.distance;
+        $("opt_searchsize").textContent = data.options.searchsize;
+        if (typeof data.options.csites != "undefined") {
+          $("opt_csites").textContent = data.options.csites;
+        } else {
+          $("opt_csites").parentElement.style.display = "none"
+        }
+        if (typeof data.options.wg != "undefined") {
+          $("opt_wg").textContent = data.options.wg;
+        } else {
+          $("opt_wg").parentElement.style.display = "none"
+        }
+        if (typeof data.options.ws != "undefined") {
+          $("opt_ws").textContent = data.options.ws;
+        }
+        else {
+          $("opt_ws").parentElement.style.display = "none"
+        }
+        if (typeof data.options.noendgaps != "undefined") {
+          $("opt_noendgaps").className = (data.options.noendgaps ? "on" : "off");
+        }
+        else {
+          $("opt_noendgaps").parentElement.style.display = "none"
+        }
+        $("opt_substring").className = (data.options.substring ? "on" : "off");
+      }
+      </script>
+    </div>
+    <!-- list information on this program -->
+    <div id="info_sec" class="bar">
+      <div class="subsection">
+        <h5 id="version">MEME version</h5>
+        <span id="ins_version"></span> 
+        (Release date: <span id="ins_release"></span>)<br>
+      </div>
+      <script>
+        $("ins_version").innerHTML = data["version"];
+        $("ins_release").innerHTML = data["release"];
+      </script>
+      <div class="subsection" id="reference"> <script>print_citation("reference", "MEME");</script></div>
+      <div class="subsection">
+        <h5 id="command">Command line</h5>
+        <textarea id="cmd" rows="5" style="width:100%;" readonly="readonly">
+        </textarea>
+        <script>$("cmd").value = data["cmd"].join(" ");</script>
+      </div>
+    </div>
+    
+  </body>
+</html>