Repository 'seurat'
hg clone https://toolshed.g2.bx.psu.edu/repos/iuc/seurat

Changeset 9:c4db6ec33fec (2021-10-21)
Previous changeset 8:828324f3292f (2021-06-10) Next changeset 10:bb9732cfcdbe (2021-12-20)
Commit message:
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seurat commit 7681c9101062f58ac4eb296a98b1644d4ed2340a"
modified:
Seurat.R
seurat.xml
removed:
test-data/out.html
b
diff -r 828324f3292f -r c4db6ec33fec Seurat.R
--- a/Seurat.R Thu Jun 10 17:19:49 2021 +0000
+++ b/Seurat.R Thu Oct 21 15:57:20 2021 +0000
b
@@ -115,6 +115,6 @@
 #+ echo = `showcode`, warning = `warn`, include = `heatmaps`
 markers <- Seurat::FindAllMarkers(seuset, only.pos = TRUE, min.pct = min_pct, logfc.threshold = logfc_threshold)
 top10 <- dplyr::group_by(markers, cluster)
-top10 <- dplyr::top_n(top10, 10, avg_logFC)
+top10 <- dplyr::top_n(top10, 10, avg_log2FC)
 Seurat::DoHeatmap(seuset, features = top10$gene)
 # nolint end
b
diff -r 828324f3292f -r c4db6ec33fec seurat.xml
--- a/seurat.xml Thu Jun 10 17:19:49 2021 +0000
+++ b/seurat.xml Thu Oct 21 15:57:20 2021 +0000
[
@@ -1,11 +1,11 @@
 <tool id="seurat" name="Seurat" version="@TOOL_VERSION@+galaxy0">
     <description>- toolkit for exploration of single-cell RNA-seq data</description>
     <macros>
-        <token name="@TOOL_VERSION@">3.2.2</token>
+        <token name="@TOOL_VERSION@">4.0.5</token>
     </macros>
     <requirements>
         <requirement type="package" version="@TOOL_VERSION@">r-seurat</requirement>
-        <requirement type="package" version="2.4">r-rmarkdown</requirement>
+        <requirement type="package" version="2.11">r-rmarkdown</requirement>
     </requirements>
     <command detect_errors="exit_code"><![CDATA[
 #if "vln" in $meta.plots:
@@ -66,17 +66,17 @@
     <inputs>
         <param name="counts" type="data" format="tabular,tsv" label="Counts file" help="The should be a TAB-separated count matrix with gene identifers in the first column and a header row"/>
         <section name="adv" title="Advanced Options" expanded="true">
-            <param name="num_PCs" type="integer" min="0" value="10" label="Number of PCs to use in plots" help="Uses this number of PCs in PCHEatmap, JackStrawPlot, FindClusters, RunTSNE. Default: 10" />
-            <param name="min_cells" type="integer" min="0" value="0" label="Minimum cells" help="Include genes with detected expression in at least this many cells." />
-            <param name="min_genes" type="integer" min="0"  value="0" label="Minimum genes" help="Include cells where at least this many genes are detected." />
+            <param name="num_PCs" type="integer" min="0" value="10" label="Number of PCs to use in plots" help="Uses this number of PCs in PCHEatmap, JackStrawPlot, FindClusters, RunTSNE" />
+            <param name="min_cells" type="integer" min="0" value="0" label="Minimum cells" help="Include genes with detected expression in at least this many cells" />
+            <param name="min_genes" type="integer" min="0"  value="0" label="Minimum genes" help="Include cells where at least this many genes are detected" />
             <param name="low_thresholds" type="integer" value="1" label="Low threshold for filtering cells" />
             <param name="high_thresholds" type="integer" value="20000000" label="High threshold for filtering cells" />
             <param name="cells_use" type="integer" min="1" value="500" label="Cells to use for PCHeatmap" help="Plots this number of top ‘extreme’ cells on both ends of the spectrum, which dramatically speeds plotting for large datasets" />
-            <param name="resolution" type="float" value="0.6" label="Resolution parameter" help="Value of the resolution parameter used in FindClusters, use a value above (below) 1.0 if you want to obtain a larger (smaller) number of communities." />
+            <param name="resolution" type="float" value="0.6" label="Resolution parameter" help="Value of the resolution parameter used in FindClusters, use a value above (below) 1.0 if you want to obtain a larger (smaller) number of communities" />
             <param name="perplexity" type="integer" value="" optional="true" label="Perplexity parameter" help="Parameter for the tSNE dimensionality reduction" />
-            <param name="min_pct" type="float" value="0.1" label="Minimum percent cells" help="With FindMarkers only test genes that are detected in a minimum fraction of min.pct cells in either of the two populations. Meant to speed up the function by not testing genes that are very infrequently expressed. Default is 0.1" />
-            <param name="logfc_threshold" type="float" min="0" value="0.25" label="LogFC threshold"
-                help="With FindMarkers, limit testing to genes which show, on average, at least X-fold difference (log-scale)between the two groups of cells. Default is 0.25 Increasing logfc.threshold speeds up the function, but can miss weaker signals." />
+            <param name="min_pct" type="float" value="0.1" label="Minimum percent cells" help="With FindMarkers, only test genes that are detected in at least this percentage of cells in either of the two populations. Meant to speed up the function by not testing genes that are very infrequently expressed" />
+            <param name="logfc_threshold" type="float" min="0" value="0.25" label="Log fold change threshold"
+                help="With FindMarkers, limit testing to genes which show, on average, at least X-fold difference (log-scale) between the two groups of cells. Increasing this parameter speeds up the function, but can miss weaker signals" />
         </section>
         <section name="meta" title="Output options" expanded="true">
             <param name="showcode" type="boolean" truevalue="T" falsevalue="F" checked="false" label="Show code alongside outputs?"/>
@@ -115,7 +115,13 @@
                 <param name="varstate" value="F"/>
                 <param name="plots" value="feat"/>
             </section>
-            <output name="out_html" ftype="html" value="out.html" compare="sim_size" delta="20000" />
+            <output name="out_html" ftype="html">
+                <assert_contents>
+                    <has_text text="Seurat Analysis" />
+                    <has_text text="Performed using Galaxy" />
+                    <has_text text="img src=&quot;data:image/png;base64" />
+                </assert_contents>
+            </output>
         </test>
         <test> <!-- perplexity test -->
             <param name="counts" ftype="tabular" value="counts.tab.gz"/>
@@ -137,7 +143,13 @@
                 <param name="varstate" value="F"/>
                 <param name="plots" value="feat"/>
             </section>
-            <output name="out_html" ftype="html" value="out.html" compare="sim_size" delta="20000" />
+            <output name="out_html" ftype="html">
+                <assert_contents>
+                    <has_text text="Seurat Analysis" />
+                    <has_text text="Performed using Galaxy" />
+                    <has_text text="img src=&quot;data:image/png;base64" />
+                </assert_contents>
+            </output>
         </test>
     </tests>
     <help><![CDATA[
b
diff -r 828324f3292f -r c4db6ec33fec test-data/out.html
--- a/test-data/out.html Thu Jun 10 17:19:49 2021 +0000
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
[
b'@@ -1,433 +0,0 @@\n-<!DOCTYPE html>\n-\n-<html>\n-\n-<head>\n-\n-<meta charset="utf-8" />\n-<meta name="generator" content="pandoc" />\n-<meta http-equiv="X-UA-Compatible" content="IE=EDGE" />\n-\n-\n-<meta name="author" content="Performed using Galaxy" />\n-\n-<meta name="date" content="2019-12-16" />\n-\n-<title>Seurat Analysis</title>\n-\n-<script>/*! jQuery v1.11.3 | (c) 2005, 2015 jQuery Foundation, Inc. | jquery.org/license */\n-!function(a,b){"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return b(a)}:b(a)}("undefined"!=typeof window?window:this,function(a,b){var c=[],d=c.slice,e=c.concat,f=c.push,g=c.indexOf,h={},i=h.toString,j=h.hasOwnProperty,k={},l="1.11.3",m=function(a,b){return new m.fn.init(a,b)},n=/^[\\s\\uFEFF\\xA0]+|[\\s\\uFEFF\\xA0]+$/g,o=/^-ms-/,p=/-([\\da-z])/gi,q=function(a,b){return b.toUpperCase()};m.fn=m.prototype={jquery:l,constructor:m,selector:"",length:0,toArray:function(){return d.call(this)},get:function(a){return null!=a?0>a?this[a+this.length]:this[a]:d.call(this)},pushStack:function(a){var b=m.merge(this.constructor(),a);return b.prevObject=this,b.context=this.context,b},each:function(a,b){return m.each(this,a,b)},map:function(a){return this.pushStack(m.map(this,function(b,c){return a.call(b,c,b)}))},slice:function(){return this.pushStack(d.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(a){var b=this.length,c=+a+(0>a?b:0);return this.pushStack(c>=0&&b>c?[this[c]]:[])},end:function(){return this.prevObject||this.constructor(null)},push:f,sort:c.sort,splice:c.splice},m.extend=m.fn.extend=function(){var a,b,c,d,e,f,g=arguments[0]||{},h=1,i=arguments.length,j=!1;for("boolean"==typeof g&&(j=g,g=arguments[h]||{},h++),"object"==typeof g||m.isFunction(g)||(g={}),h===i&&(g=this,h--);i>h;h++)if(null!=(e=arguments[h]))for(d in e)a=g[d],c=e[d],g!==c&&(j&&c&&(m.isPlainObject(c)||(b=m.isArray(c)))?(b?(b=!1,f=a&&m.isArray(a)?a:[]):f=a&&m.isPlainObject(a)?a:{},g[d]=m.extend(j,f,c)):void 0!==c&&(g[d]=c));return g},m.extend({expando:"jQuery"+(l+Math.random()).replace(/\\D/g,""),isReady:!0,error:function(a){throw new Error(a)},noop:function(){},isFunction:function(a){return"function"===m.type(a)},isArray:Array.isArray||function(a){return"array"===m.type(a)},isWindow:function(a){return null!=a&&a==a.window},isNumeric:function(a){return!m.isArray(a)&&a-parseFloat(a)+1>=0},isEmptyObject:function(a){var b;for(b in a)return!1;return!0},isPlainObject:function(a){var b;if(!a||"object"!==m.type(a)||a.nodeType||m.isWindow(a))return!1;try{if(a.constructor&&!j.call(a,"constructor")&&!j.call(a.constructor.prototype,"isPrototypeOf"))return!1}catch(c){return!1}if(k.ownLast)for(b in a)return j.call(a,b);for(b in a);return void 0===b||j.call(a,b)},type:function(a){return null==a?a+"":"object"==typeof a||"function"==typeof a?h[i.call(a)]||"object":typeof a},globalEval:function(b){b&&m.trim(b)&&(a.execScript||function(b){a.eval.call(a,b)})(b)},camelCase:function(a){return a.replace(o,"ms-").replace(p,q)},nodeName:function(a,b){return a.nodeName&&a.nodeName.toLowerCase()===b.toLowerCase()},each:function(a,b,c){var d,e=0,f=a.length,g=r(a);if(c){if(g){for(;f>e;e++)if(d=b.apply(a[e],c),d===!1)break}else for(e in a)if(d=b.apply(a[e],c),d===!1)break}else if(g){for(;f>e;e++)if(d=b.call(a[e],e,a[e]),d===!1)break}else for(e in a)if(d=b.call(a[e],e,a[e]),d===!1)break;return a},trim:function(a){return null==a?"":(a+"").replace(n,"")},makeArray:function(a,b){var c=b||[];return null!=a&&(r(Object(a))?m.merge(c,"string"==typeof a?[a]:a):f.call(c,a)),c},inArray:function(a,b,c){var d;if(b){if(g)return g.call(b,a,c);for(d=b.length,c=c?0>c?Math.max(0,d+c):c:0;d>c;c++)if(c in b&&b[c]===a)return c}return-1},merge:function(a,b){var c=+b.length,d=0,e=a.length;while(c>d)a[e++]=b[d++];if(c!==c)while(void 0!==b[d])a[e++]=b[d++];return a.length=e,a},grep:function(a,b,c){for(var d,e=[],f=0,g=a.'..b'TrBsjRo1Ss7l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Lz8837rFmzZuHChUIIBweHyMjIcq0PAAAAEEIQ4AFACDFixAjZ2LRpU2ho6Nq1a1NSUnJzc8+fP//DDz/ExMQMGDBAzhjyyiuv8BI4AAAAbIJJ7ABACCFef/31uXPnFt/nqaee+vHHH+3wxWMmsQMAAKgIuAMPAEIIMWfOnO+//149S2/C3d197NixW7dutcP0DgAAgAqCO/AA8B8OHz586tSppKSk1NRUNze3atWqtWnTplOnTva8cDd34AEAACoCAjwAAAAAADrAI/QAAAAAAOgAAR4AAAAAAB0gwAMAAAAAoAMEeAAAAAAAdIAADwAAAACADhDgAQAAAADQAQI8AAAAAAA6QIAHAAAAAEAHCPAAAAAAAOgAAR4AAAAAAB0gwAMAAAAAoAMEeAAAAAAAdIAADwAAAACADhDgAQAAAADQAQI8AAAAAAA6QIAHAAAAAEAHCPAAAAAAAOgAAR4AAAAAAB0gwAMAAAAAoAP/C9NM78U24lQMAAAAAElFTkSuQmCC" width="672" /></p>\n-<pre class="r"><code>seuset &lt;- Seurat::ScaleData(object = seuset, vars.to.regress = &quot;nCount_RNA&quot;)</code></pre>\n-<pre><code>## Regressing out nCount_RNA</code></pre>\n-<pre><code>## Centering and scaling data matrix</code></pre>\n-\n-\n-\n-\n-</div>\n-\n-<script>\n-\n-// add bootstrap table styles to pandoc tables\n-function bootstrapStylePandocTables() {\n-  $(\'tr.header\').parent(\'thead\').parent(\'table\').addClass(\'table table-condensed\');\n-}\n-$(document).ready(function () {\n-  bootstrapStylePandocTables();\n-});\n-\n-\n-</script>\n-\n-<!-- tabsets -->\n-\n-<script>\n-$(document).ready(function () {\n-  window.buildTabsets("TOC");\n-});\n-\n-$(document).ready(function () {\n-  $(\'.tabset-dropdown > .nav-tabs > li\').click(function () {\n-    $(this).parent().toggleClass(\'nav-tabs-open\')\n-  });\n-});\n-</script>\n-\n-<!-- code folding -->\n-\n-\n-<!-- dynamically load mathjax for compatibility with self-contained -->\n-<script>\n-  (function () {\n-    var script = document.createElement("script");\n-    script.type = "text/javascript";\n-    script.src  = "https://mathjax.rstudio.com/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML";\n-    document.getElementsByTagName("head")[0].appendChild(script);\n-  })();\n-</script>\n-\n-</body>\n-</html>\n'