Previous changeset 4:09c589057ee8 (2023-08-10) Next changeset 6:eb7b00ec347d (2024-04-13) |
Commit message:
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/merqury commit 72d058b49b983b38e7565da1577d30fd2deec7d7 |
added:
merqury_plot_CN.xml test-data/output_merqury.assembly_01.only.tabular test-data/output_merqury.assembly_01.spectra-cn.tabular |
b |
diff -r 09c589057ee8 -r d7edbc9c3a07 merqury_plot_CN.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/merqury_plot_CN.xml Fri Feb 16 22:00:00 2024 +0000 |
[ |
@@ -0,0 +1,105 @@ +<tool id="merquryplot" name="Merqury histogram plot" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@" profile="20.01"> + <description>evaluate the assembly quality</description> + <macros> + <import>macros.xml</import> + </macros> + <expand macro="bio_tools"/> + <expand macro="requirements"/> + <version_command>merqury --version</version_command> + + <command detect_errors="exit_code"><![CDATA[ + mkdir -p output_files/ && + \$MERQURY/plot/plot_spectra_cn.R + -f '$input1' + -o output_files/merqury_plot + #if $z + --zero-hist '$z' + #end if + #if $cutoff + --cutoff '$cutoff' + #end if + --xdim $xdim + --ydim $ydim + #if $xmax>0 + --xmax $xmax + #end if + #if $ymax>0 + --ymax $ymax + #end if + --type $type + #if $output_selector=='pdf' + -p + #end if + + ]]> </command> + <inputs> + <param argument="-f" type="data" name="input1" format="tabular" /> + <param argument="--xdim" type="integer" label="Width of plot" value="6" min="0" /> + <param argument="--ydim" type="integer" label="Height of plot" value="5" min="0" /> + <param argument="--xmax" type="float" label="Maximum limit for k-mer multiplicity (leave 0 for default)" value="0" min="0" help="default: (x where y=peak) * 2.1" /> + <param argument="--ymax" type="float" label="Maximum limit for k-mer count (leave 0 for default)" value="0" min="0" help="default: (y where y=peak) * 1.1" /> + <param argument="-z" type="data" label="Assembly only counts" format="tabular" help=".only.hist file " optional="true" /> + <param argument="--cutoff" type="data" label="Solid k-mer cutoffs" format="txt" help="cutoff.txt file" optional="true" /> + <param name="output_selector" type="select" label="Output format" argument="-p"> + <option value="png" selected="true">PNG</option> + <option value="pdf">PDF</option> + </param> + <param argument="--type" type="select" label="Type of plot (default all)"> + <option value="all" selected="true">All</option> + <option value="line">Line</option> + <option value="fill">Fill</option> + <option value="stack">Stack</option> + </param> + </inputs> + <outputs> + <collection name="png_files" type="list" label="${tool.name} on ${on_string}: png plots"> + <discover_datasets pattern="(?P<name>.+)\.png" format="png" directory="output_files"/> + <filter>"png" in output_selector</filter> + </collection> + <collection name="pdf_files" type="list" label="${tool.name} on ${on_string}: pdf plots"> + <discover_datasets pattern="(?P<name>.+)\.pdf" format="pdf" directory="output_files"/> + <filter>"pdf" in output_selector</filter> + </collection> + </outputs> + <tests> + <test expect_num_outputs="1"> + <param name="input1" value="output_merqury.assembly_01.spectra-cn.tabular"/> + <param name="xdim" value="6" /> + <param name="ydim" value="5" /> + <param name="xmax" value="0" /> + <param name="ymax" value="0" /> + <param name="z" value="output_merqury.assembly_01.only.tabular"/> + <param name="type" value="all" /> + <param name="output_selector" value="png" /> + <output_collection name="png_files" type="list" count="3"> + <element name="merqury_plot.fl"> + <assert_contents> + <has_size value="99000" delta="5000"/> + </assert_contents> + </element> + <element name="merqury_plot.ln"> + <assert_contents> + <has_size value="99000" delta="5000"/> + </assert_contents> + </element> + <element name="merqury_plot.st"> + <assert_contents> + <has_size value="124000" delta="20000"/> + </assert_contents> + </element> + </output_collection> + </test> + </tests> + + <help><![CDATA[ + +.. class:: infomark + +**Purpose** +Make spectra-cn plots. Line, filled, and stacked spectra-cn plots will be +generated. Inputs : Histogram files generated by merqury. + + ]]> </help> + <expand macro="citations"/> +</tool> + |
b |
diff -r 09c589057ee8 -r d7edbc9c3a07 test-data/output_merqury.assembly_01.only.tabular --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/test-data/output_merqury.assembly_01.only.tabular Fri Feb 16 22:00:00 2024 +0000 |
b |
@@ -0,0 +1,2 @@ +1 0 59 +2 0 0 |
b |
diff -r 09c589057ee8 -r d7edbc9c3a07 test-data/output_merqury.assembly_01.spectra-cn.tabular --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/test-data/output_merqury.assembly_01.spectra-cn.tabular Fri Feb 16 22:00:00 2024 +0000 |
b |
b'@@ -0,0 +1,2716 @@\n+Copies\tkmer_multiplicity\tCount\n+read-only\t1\t4656190\n+read-only\t2\t225270\n+read-only\t3\t48009\n+read-only\t4\t18631\n+read-only\t5\t9292\n+read-only\t6\t5091\n+read-only\t7\t2962\n+read-only\t8\t2172\n+read-only\t9\t1388\n+read-only\t10\t884\n+read-only\t11\t712\n+read-only\t12\t535\n+read-only\t13\t391\n+read-only\t14\t301\n+read-only\t15\t323\n+read-only\t16\t189\n+read-only\t17\t215\n+read-only\t18\t184\n+read-only\t19\t146\n+read-only\t20\t112\n+read-only\t21\t86\n+read-only\t22\t108\n+read-only\t23\t95\n+read-only\t24\t95\n+read-only\t25\t110\n+read-only\t26\t95\n+read-only\t27\t85\n+read-only\t28\t53\n+read-only\t29\t28\n+read-only\t30\t49\n+read-only\t31\t67\n+read-only\t32\t66\n+read-only\t33\t52\n+read-only\t34\t50\n+read-only\t35\t102\n+read-only\t36\t60\n+read-only\t37\t35\n+read-only\t38\t59\n+read-only\t39\t30\n+read-only\t40\t29\n+read-only\t41\t82\n+read-only\t42\t74\n+read-only\t43\t49\n+read-only\t44\t27\n+read-only\t45\t19\n+read-only\t46\t41\n+read-only\t47\t16\n+read-only\t48\t9\n+read-only\t49\t5\n+read-only\t50\t7\n+read-only\t51\t8\n+read-only\t52\t7\n+read-only\t53\t20\n+read-only\t54\t11\n+read-only\t55\t21\n+read-only\t56\t11\n+read-only\t57\t10\n+read-only\t58\t22\n+read-only\t59\t28\n+read-only\t60\t17\n+read-only\t61\t20\n+read-only\t62\t16\n+read-only\t63\t3\n+read-only\t64\t12\n+read-only\t65\t16\n+read-only\t66\t12\n+read-only\t67\t10\n+read-only\t68\t8\n+read-only\t69\t4\n+read-only\t70\t7\n+read-only\t71\t12\n+read-only\t72\t12\n+read-only\t73\t4\n+read-only\t74\t13\n+read-only\t75\t6\n+read-only\t76\t1\n+read-only\t77\t4\n+read-only\t78\t2\n+read-only\t79\t3\n+read-only\t80\t1\n+read-only\t81\t3\n+read-only\t82\t4\n+read-only\t83\t2\n+read-only\t84\t3\n+read-only\t86\t4\n+read-only\t87\t4\n+read-only\t88\t11\n+read-only\t89\t3\n+read-only\t90\t1\n+read-only\t91\t2\n+read-only\t92\t1\n+read-only\t93\t2\n+read-only\t94\t12\n+read-only\t95\t1\n+read-only\t96\t1\n+read-only\t97\t5\n+read-only\t98\t9\n+read-only\t100\t1\n+read-only\t101\t1\n+read-only\t103\t1\n+read-only\t104\t5\n+read-only\t105\t6\n+read-only\t106\t5\n+read-only\t107\t4\n+read-only\t108\t14\n+read-only\t109\t1\n+read-only\t110\t6\n+read-only\t111\t1\n+read-only\t112\t4\n+read-only\t113\t2\n+read-only\t114\t2\n+read-only\t115\t2\n+read-only\t120\t1\n+read-only\t121\t1\n+read-only\t123\t1\n+read-only\t125\t1\n+read-only\t126\t2\n+read-only\t129\t1\n+read-only\t130\t1\n+read-only\t131\t1\n+read-only\t132\t1\n+read-only\t135\t1\n+read-only\t138\t2\n+read-only\t140\t1\n+read-only\t143\t1\n+read-only\t146\t1\n+read-only\t148\t2\n+read-only\t151\t1\n+read-only\t171\t1\n+read-only\t195\t1\n+read-only\t245\t1\n+read-only\t255\t1\n+read-only\t418\t1\n+read-only\t476\t1\n+read-only\t485\t1\n+1\t1\t410\n+1\t2\t103\n+1\t3\t45\n+1\t4\t31\n+1\t5\t45\n+1\t6\t24\n+1\t7\t148\n+1\t8\t724\n+1\t9\t2330\n+1\t10\t4081\n+1\t11\t6646\n+1\t12\t10540\n+1\t13\t16984\n+1\t14\t27949\n+1\t15\t48131\n+1\t16\t79544\n+1\t17\t121134\n+1\t18\t188774\n+1\t19\t265299\n+1\t20\t353324\n+1\t21\t459735\n+1\t22\t553603\n+1\t23\t625697\n+1\t24\t684046\n+1\t25\t717567\n+1\t26\t753476\n+1\t27\t780266\n+1\t28\t765784\n+1\t29\t721476\n+1\t30\t667740\n+1\t31\t614332\n+1\t32\t555325\n+1\t33\t490574\n+1\t34\t401432\n+1\t35\t310962\n+1\t36\t240677\n+1\t37\t198968\n+1\t38\t150300\n+1\t39\t108319\n+1\t40\t80062\n+1\t41\t58757\n+1\t42\t40188\n+1\t43\t30569\n+1\t44\t16674\n+1\t45\t12162\n+1\t46\t10725\n+1\t47\t7043\n+1\t48\t5027\n+1\t49\t3371\n+1\t50\t2549\n+1\t51\t2459\n+1\t52\t2176\n+1\t53\t1476\n+1\t54\t1900\n+1\t55\t1479\n+1\t56\t1069\n+1\t57\t976\n+1\t58\t758\n+1\t59\t864\n+1\t60\t745\n+1\t61\t321\n+1\t62\t228\n+1\t63\t196\n+1\t64\t203\n+1\t65\t185\n+1\t66\t213\n+1\t67\t198\n+1\t68\t316\n+1\t69\t121\n+1\t70\t136\n+1\t71\t179\n+1\t72\t262\n+1\t73\t239\n+1\t74\t92\n+1\t75\t85\n+1\t76\t182\n+1\t77\t123\n+1\t78\t84\n+1\t79\t30\n+1\t80\t30\n+1\t81\t1\n+1\t82\t29\n+1\t83\t7\n+1\t84\t2\n+1\t85\t3\n+1\t87\t3\n+1\t88\t1\n+1\t89\t2\n+1\t90\t1\n+1\t91\t4\n+1\t92\t5\n+1\t93\t1\n+1\t94\t3\n+1\t95\t3\n+1\t96\t1\n+1\t97\t1\n+1\t98\t8\n+1\t99\t4\n+1\t101\t1\n+1\t102\t1\n+1\t104\t2\n+1\t106\t2\n+1\t107\t1\n+1\t112\t1\n+1\t116\t1\n+1\t118\t1\n+1\t120\t1\n+1\t124\t2\n+1\t127\t1\n+1\t128\t2\n+1\t130\t1\n+1\t134\t1\n+1\t135\t1\n+1\t137\t1\n+1\t138\t1\n+1\t139\t2\n+1\t143\t1\n+1\t144\t1\n+1\t150\t1\n+1\t151\t1\n+1\t152\t1\n+1\t154\t1\n+1\t160\t1\n+1\t161\t1\n+1\t163\t1\n+1\t167\t1\n+1\t168\t1\n+1\t172\t1\n+1\t178\t1\n+1\t180\t2\n+1\t193\t1\n+1\t194\t1\n+1\t195\t1\n+1\t205\t1\n+1\t206\t1\n+1\t211\t1\n+1\t216\t1\n+1\t220\t1\n+1\t227\t1\n+1\t234\t1\n+1\t275\t1\n+1\t539\t1\n+1\t3932\t1\n+2\t6\t1\n+2\t7\t1\n+2\t10\t1\n+2\t11\t1\n+2\t12\t1\n+2\t13\t153\n+2\t14\t1006\n+2\t15\t2315\n+2\t16\t455\n+2\t17\t634\n+2\t18\t462\n+2\t19\t2\n+2\t20\t11\n+2\t21\t2\n+2\t22\t1\n+2\t23\t1\n+2\t25\t3\n+2\t26\t1\n+2\t27\t1\n+2\t28\t3\n+2\t29\t2\n+2\t30\t1\n+2\t31\t8\n+2\t32\t3\n+2\t33\t14\n'..b'24\t2\n+>4\t1729\t1\n+>4\t1735\t1\n+>4\t1736\t1\n+>4\t1737\t1\n+>4\t1738\t1\n+>4\t1740\t1\n+>4\t1741\t1\n+>4\t1743\t1\n+>4\t1748\t1\n+>4\t1750\t1\n+>4\t1751\t1\n+>4\t1756\t1\n+>4\t1758\t1\n+>4\t1765\t1\n+>4\t1774\t1\n+>4\t1778\t2\n+>4\t1779\t1\n+>4\t1780\t2\n+>4\t1781\t1\n+>4\t1783\t1\n+>4\t1785\t1\n+>4\t1787\t1\n+>4\t1790\t1\n+>4\t1793\t1\n+>4\t1800\t1\n+>4\t1801\t4\n+>4\t1804\t1\n+>4\t1807\t1\n+>4\t1810\t3\n+>4\t1817\t1\n+>4\t1834\t1\n+>4\t1836\t1\n+>4\t1869\t1\n+>4\t1872\t1\n+>4\t1879\t1\n+>4\t1884\t1\n+>4\t1897\t1\n+>4\t1899\t1\n+>4\t1900\t1\n+>4\t1902\t2\n+>4\t1903\t3\n+>4\t1904\t1\n+>4\t1905\t1\n+>4\t1906\t1\n+>4\t1911\t1\n+>4\t1923\t1\n+>4\t1954\t1\n+>4\t1990\t1\n+>4\t1993\t1\n+>4\t2001\t1\n+>4\t2003\t1\n+>4\t2005\t1\n+>4\t2006\t1\n+>4\t2011\t1\n+>4\t2013\t1\n+>4\t2014\t1\n+>4\t2022\t1\n+>4\t2025\t3\n+>4\t2026\t1\n+>4\t2027\t1\n+>4\t2032\t1\n+>4\t2035\t1\n+>4\t2048\t1\n+>4\t2049\t1\n+>4\t2051\t2\n+>4\t2055\t1\n+>4\t2056\t1\n+>4\t2062\t1\n+>4\t2073\t1\n+>4\t2079\t1\n+>4\t2080\t1\n+>4\t2081\t1\n+>4\t2084\t1\n+>4\t2085\t2\n+>4\t2086\t1\n+>4\t2087\t1\n+>4\t2089\t1\n+>4\t2090\t1\n+>4\t2093\t1\n+>4\t2094\t2\n+>4\t2095\t2\n+>4\t2096\t2\n+>4\t2097\t2\n+>4\t2098\t1\n+>4\t2099\t1\n+>4\t2100\t1\n+>4\t2101\t1\n+>4\t2106\t2\n+>4\t2108\t3\n+>4\t2110\t1\n+>4\t2113\t1\n+>4\t2114\t1\n+>4\t2116\t3\n+>4\t2117\t2\n+>4\t2118\t2\n+>4\t2120\t2\n+>4\t2121\t2\n+>4\t2123\t1\n+>4\t2127\t2\n+>4\t2128\t1\n+>4\t2129\t1\n+>4\t2130\t3\n+>4\t2131\t2\n+>4\t2132\t2\n+>4\t2133\t1\n+>4\t2134\t1\n+>4\t2135\t1\n+>4\t2137\t1\n+>4\t2138\t2\n+>4\t2139\t1\n+>4\t2140\t5\n+>4\t2141\t1\n+>4\t2142\t3\n+>4\t2144\t1\n+>4\t2146\t1\n+>4\t2148\t1\n+>4\t2149\t1\n+>4\t2151\t1\n+>4\t2152\t3\n+>4\t2155\t1\n+>4\t2159\t1\n+>4\t2162\t1\n+>4\t2163\t2\n+>4\t2165\t1\n+>4\t2166\t3\n+>4\t2167\t2\n+>4\t2173\t1\n+>4\t2174\t2\n+>4\t2180\t2\n+>4\t2186\t1\n+>4\t2187\t1\n+>4\t2188\t1\n+>4\t2195\t1\n+>4\t2196\t2\n+>4\t2200\t1\n+>4\t2204\t1\n+>4\t2205\t2\n+>4\t2207\t1\n+>4\t2208\t4\n+>4\t2209\t1\n+>4\t2210\t2\n+>4\t2217\t1\n+>4\t2222\t1\n+>4\t2227\t1\n+>4\t2236\t2\n+>4\t2242\t1\n+>4\t2254\t2\n+>4\t2255\t2\n+>4\t2257\t3\n+>4\t2258\t1\n+>4\t2259\t1\n+>4\t2260\t1\n+>4\t2261\t1\n+>4\t2262\t2\n+>4\t2263\t1\n+>4\t2267\t1\n+>4\t2270\t1\n+>4\t2274\t2\n+>4\t2276\t1\n+>4\t2277\t1\n+>4\t2278\t1\n+>4\t2280\t1\n+>4\t2281\t1\n+>4\t2283\t1\n+>4\t2284\t1\n+>4\t2287\t1\n+>4\t2288\t1\n+>4\t2290\t2\n+>4\t2299\t1\n+>4\t2301\t1\n+>4\t2311\t1\n+>4\t2320\t1\n+>4\t2321\t2\n+>4\t2322\t1\n+>4\t2324\t1\n+>4\t2330\t1\n+>4\t2334\t1\n+>4\t2336\t2\n+>4\t2337\t1\n+>4\t2340\t1\n+>4\t2345\t1\n+>4\t2385\t1\n+>4\t2419\t1\n+>4\t2458\t1\n+>4\t2478\t1\n+>4\t2498\t1\n+>4\t2517\t1\n+>4\t2524\t1\n+>4\t2528\t1\n+>4\t2534\t1\n+>4\t2545\t1\n+>4\t2547\t2\n+>4\t2555\t1\n+>4\t2557\t4\n+>4\t2560\t1\n+>4\t2581\t1\n+>4\t2582\t1\n+>4\t2585\t2\n+>4\t2586\t1\n+>4\t2589\t3\n+>4\t2592\t2\n+>4\t2594\t1\n+>4\t2595\t1\n+>4\t2602\t1\n+>4\t2609\t1\n+>4\t2613\t1\n+>4\t2617\t2\n+>4\t2628\t1\n+>4\t2630\t1\n+>4\t2632\t1\n+>4\t2633\t1\n+>4\t2635\t1\n+>4\t2643\t1\n+>4\t2651\t1\n+>4\t2652\t1\n+>4\t2658\t2\n+>4\t2659\t1\n+>4\t2660\t2\n+>4\t2661\t1\n+>4\t2664\t1\n+>4\t2665\t2\n+>4\t2666\t1\n+>4\t2667\t1\n+>4\t2680\t1\n+>4\t2681\t1\n+>4\t2693\t1\n+>4\t2707\t1\n+>4\t2720\t1\n+>4\t2721\t2\n+>4\t2745\t1\n+>4\t2746\t1\n+>4\t2751\t1\n+>4\t2752\t1\n+>4\t2754\t1\n+>4\t2756\t1\n+>4\t2757\t1\n+>4\t2758\t1\n+>4\t2783\t4\n+>4\t2785\t1\n+>4\t2809\t1\n+>4\t2834\t1\n+>4\t2835\t2\n+>4\t2838\t1\n+>4\t2842\t1\n+>4\t2851\t1\n+>4\t2853\t2\n+>4\t2854\t1\n+>4\t2856\t1\n+>4\t2876\t1\n+>4\t2913\t1\n+>4\t2914\t1\n+>4\t2920\t1\n+>4\t2956\t2\n+>4\t3115\t1\n+>4\t3161\t1\n+>4\t3175\t1\n+>4\t3260\t2\n+>4\t3261\t1\n+>4\t3262\t1\n+>4\t3264\t1\n+>4\t3266\t1\n+>4\t3267\t1\n+>4\t3275\t2\n+>4\t3277\t1\n+>4\t3281\t1\n+>4\t3296\t1\n+>4\t3300\t1\n+>4\t3303\t2\n+>4\t3332\t1\n+>4\t3397\t1\n+>4\t3416\t1\n+>4\t3426\t1\n+>4\t3462\t1\n+>4\t3479\t1\n+>4\t3486\t1\n+>4\t3488\t1\n+>4\t3559\t2\n+>4\t3591\t1\n+>4\t3687\t1\n+>4\t3711\t1\n+>4\t3721\t1\n+>4\t3733\t1\n+>4\t3735\t1\n+>4\t3739\t2\n+>4\t3740\t2\n+>4\t3750\t1\n+>4\t3766\t1\n+>4\t3771\t1\n+>4\t3783\t1\n+>4\t3784\t1\n+>4\t3788\t1\n+>4\t3789\t1\n+>4\t3810\t1\n+>4\t3811\t1\n+>4\t3849\t1\n+>4\t3853\t2\n+>4\t3855\t1\n+>4\t3894\t1\n+>4\t3918\t1\n+>4\t3920\t1\n+>4\t3921\t2\n+>4\t3965\t2\n+>4\t3967\t1\n+>4\t3988\t1\n+>4\t3991\t1\n+>4\t4001\t1\n+>4\t4201\t1\n+>4\t4204\t1\n+>4\t4255\t1\n+>4\t4330\t1\n+>4\t4391\t1\n+>4\t4419\t1\n+>4\t4555\t1\n+>4\t4569\t1\n+>4\t4594\t1\n+>4\t4688\t1\n+>4\t4777\t1\n+>4\t4862\t1\n+>4\t4979\t1\n+>4\t5367\t1\n+>4\t5368\t1\n+>4\t5378\t1\n+>4\t5416\t1\n+>4\t5435\t1\n+>4\t5476\t1\n+>4\t5539\t1\n+>4\t5591\t1\n+>4\t5613\t1\n+>4\t5710\t1\n+>4\t5719\t1\n+>4\t5916\t1\n+>4\t5966\t1\n+>4\t6033\t1\n+>4\t6099\t1\n+>4\t6198\t1\n+>4\t6203\t1\n+>4\t6219\t1\n+>4\t6239\t1\n+>4\t6258\t3\n+>4\t6402\t1\n+>4\t6543\t1\n+>4\t6676\t1\n+>4\t7081\t1\n+>4\t7601\t1\n+>4\t8507\t1\n+>4\t8757\t1\n+>4\t8900\t1\n+>4\t9010\t1\n+>4\t9806\t1\n+>4\t9914\t1\n+>4\t10000\t1\n+>4\t11081\t1\n+>4\t11087\t1\n+>4\t11093\t1\n+>4\t11094\t1\n+>4\t11525\t1\n+>4\t11533\t1\n+>4\t11804\t1\n+>4\t12094\t1\n+>4\t12676\t1\n+>4\t15814\t1\n+>4\t32533\t1\n' |