Next changeset 1:66b7657f0bd6 (2020-04-23) |
Commit message:
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seacr commit 77e83ae050cdc9cbb8099a31375d1dbc004e15e8" |
added:
seacr.xml test-data/test.bedgraph |
b |
diff -r 000000000000 -r c8ff96b9fb97 seacr.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/seacr.xml Wed Feb 12 11:27:36 2020 -0500 |
[ |
@@ -0,0 +1,130 @@ +<?xml version="1.0"?> +<tool id="chromhmm_seacr" name="SEACR " version="@TOOL_VERSION@+@WRAPPER_VERSION@"> + <description>for sparse enrichment analysis</description> + <macros> + <token name="@TOOL_VERSION@">1.3</token> + <token name="@WRAPPER_VERSION@">galaxy0</token> + </macros> + <requirements> + <requirement type="package" version="@TOOL_VERSION@">seacr</requirement> + <requirement type="package" version="2.29.2">bedtools</requirement> + </requirements> + <stdio></stdio> + <command detect_errors="exit_code"><![CDATA[ + SEACR_@TOOL_VERSION@.sh + '$bedgraph' + #if $control_cond.control_sel == 'f' + '$control_cond.f' + #else if $control_cond.control_sel == 't' + '$control_cond.t' + #end if + '$normalize' + '$mode' + 'results' + ]]></command> + <inputs> + <param argument="bedgraph" type="data" format="bedgraph" label="Select target bedgraph file" help="Target data bedgraph file in UCSC bedgraph format that omits regions containing 0 signal."/> + <conditional name="control_cond"> + <param name="control_sel" type="select" label="Select control type"> + <option value="f">Control bedgraph</option> + <option value="t">Threshold</option> + </param> + <when value="f"> + <param argument="f" type="data" format="bedgraph" label="Select control bedgraph file" help="Control (IgG) data bedgraph file to generate an empirical threshold for peak calling."/> + </when> + <when value="t"> + <param argument="t" type="float" value="" min="0.0" max="1.0" label="Set threshold" help="A numeric threshold n between 0 and 1 returns the top n fraction of peaks based on total signal within peaks."/> + </when> + </conditional> + <param name="normalize" type="boolean" truevalue="norm" falsevalue="non" checked="true" label="Normalize control to target data" help="'norm' denotes normalization of control to target data, 'non' skips this behavior. 'norm' is recommended unless experimental and control data are already rigorously normalized to each other (e.g. via spike-in)."/> + <param name="mode" type="select" label="Select mode" help="'relaxed' uses a total signal threshold between the knee and peak of the total signal curve, and corresponds to the 'relaxed' mode described in the text, whereas 'stringent' uses the peak of the curve, and corresponds to 'stringent' mode."> + <option value="relaxed">relaxed</option> + <option value="stringent">stringent</option> + </param> + </inputs> + <outputs> + <data name="out_s" format="tabular" from_work_dir="results.stringent.bed" label="${tool.name} on ${on_string}: stringent"> + <filter>mode == 'stringent'</filter> + </data> + <data name="out_r" format="tabular" from_work_dir="results.relaxed.bed" label="${tool.name} on ${on_string}: relaxed"> + <filter>mode == 'relaxed'</filter> + </data> + </outputs> + <tests> + <!-- #1 --> + <test expect_num_outputs="1"> + <param name="bedgraph" value="test.bedgraph"/> + <conditional name="control_cond"> + <param name="control_sel" value="t"/> + <param name="t" value="0.2"/> + </conditional> + <param name="normalize" value="norm"/> + <param name="mode" value="stringent"/> + <output name="out_s"> + <assert_contents> + <has_n_lines n="103"/> + <has_line line="I	3463	3717	609	4	I:3557-3599"/> + <has_line line="I	225524	225978	1100	5	I:225655-225672"/> + </assert_contents> + </output> + </test> + <!-- #2 --> + <test expect_num_outputs="1"> + <param name="bedgraph" value="test.bedgraph"/> + <conditional name="control_cond"> + <param name="control_sel" value="t"/> + <param name="t" value="0.1"/> + </conditional> + <param name="normalize" value="non"/> + <param name="mode" value="relaxed"/> + <output name="out_r"> + <assert_contents> + <has_n_lines n="483"/> + <has_line line="I	507	665	200	2	I:565-607"/> + <has_line line="I	226156	226330	199	2	I:226231-226256"/> + </assert_contents> + </output> + </test> + </tests> + <help><![CDATA[ +.. class:: infomark + +**What it does** + +SEACR (Sparse Enrichment Analysis for CUT&RUN) is intended to call peaks and enriched regions from sparse CUT&RUN or chromatin profiling data in which background is dominated by "zeroes" (i.e. regions with no read coverage). + +CUT&RUN is an efficient epigenome profiling method that identifies sites of DNA binding protein enrichment genome-wide with high signal to noise and low sequencing requirements. Currently, the analysis of CUT&RUN data is complicated by its exceptionally low background, which renders programs designed for analysis of ChIP-seq data vulnerable to oversensitivity in identifying sites of protein binding. + +SEACR is a highly selective peak caller that definitively validates the accuracy of CUT&RUN for datasets with known true negatives. SEACR uses the global distribution of background signal to calibrate a simple threshold for peak calling. SEACR discriminates between true and false-positive peaks with near-perfect specificity from gold standard CUT&RUN datasets and efficiently identifies enriched regions for several different protein targets. + +**Input** + +SEACR requires files in UCSC bedgraph format from paired-end sequencing as input, which can be generated from read pair BED files. + +**Output** + +Results are stored in BED files with the folowing format. + +:: + + <chr> <start> <end> <total signal> <max signal> <max signal region> + +with + +- <chr> Chromosome +- <start> Start coordinate +- <end> End coordinate +- <total signal> Total signal contained within denoted coordinates +- <max signal> Maximum bedgraph signal attained at any base pair within denoted coordinates +- <max signal region> Region representing the farthest upstream and farthest downstream bases within the denoted coordinates that are represented by the maximum bedgraph signal + +.. class:: infomark + +**References** + +More information are available on `github <https://github.com/FredHutch/SEACR>`_. A web interface can be found `here <https://seacr.fredhutch.org>`_. + ]]></help> + <citations> + <citation type="doi">10.1186/s13072-019-0287-4</citation> + </citations> +</tool> \ No newline at end of file |
b |
diff -r 000000000000 -r c8ff96b9fb97 test-data/test.bedgraph --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/test-data/test.bedgraph Wed Feb 12 11:27:36 2020 -0500 |
b |
b'@@ -0,0 +1,3418 @@\n+I\t0\t507\t0\n+I\t507\t565\t1\n+I\t565\t607\t2\n+I\t607\t665\t1\n+I\t665\t1422\t0\n+I\t1422\t1443\t1\n+I\t1443\t1453\t2\n+I\t1453\t1522\t3\n+I\t1522\t1543\t2\n+I\t1543\t1548\t1\n+I\t1548\t1554\t0\n+I\t1554\t1576\t1\n+I\t1576\t1585\t0\n+I\t1585\t1620\t1\n+I\t1620\t1621\t0\n+I\t1621\t1643\t1\n+I\t1643\t1664\t2\n+I\t1664\t1743\t1\n+I\t1743\t1816\t0\n+I\t1816\t1865\t1\n+I\t1865\t2032\t0\n+I\t2032\t2071\t1\n+I\t2071\t2128\t2\n+I\t2128\t2171\t1\n+I\t2171\t2415\t0\n+I\t2415\t2474\t1\n+I\t2474\t2592\t2\n+I\t2592\t2660\t1\n+I\t2660\t3463\t0\n+I\t3463\t3499\t1\n+I\t3499\t3506\t2\n+I\t3506\t3557\t3\n+I\t3557\t3560\t4\n+I\t3560\t3591\t3\n+I\t3591\t3599\t4\n+I\t3599\t3606\t3\n+I\t3606\t3617\t2\n+I\t3617\t3618\t3\n+I\t3618\t3632\t2\n+I\t3632\t3657\t3\n+I\t3657\t3717\t2\n+I\t3717\t3891\t0\n+I\t3891\t3914\t1\n+I\t3914\t3920\t2\n+I\t3920\t3934\t3\n+I\t3934\t3986\t4\n+I\t3986\t3989\t3\n+I\t3989\t4014\t4\n+I\t4014\t4020\t3\n+I\t4020\t4033\t2\n+I\t4033\t4034\t3\n+I\t4034\t4089\t2\n+I\t4089\t4123\t1\n+I\t4123\t4133\t2\n+I\t4133\t4151\t1\n+I\t4151\t4212\t2\n+I\t4212\t4251\t1\n+I\t4251\t4279\t0\n+I\t4279\t4379\t1\n+I\t4379\t4485\t0\n+I\t4485\t4491\t1\n+I\t4491\t4528\t2\n+I\t4528\t4554\t3\n+I\t4554\t4585\t4\n+I\t4585\t4591\t3\n+I\t4591\t4628\t2\n+I\t4628\t4653\t1\n+I\t4653\t4739\t0\n+I\t4739\t4822\t1\n+I\t4822\t4839\t2\n+I\t4839\t4866\t1\n+I\t4866\t4922\t2\n+I\t4922\t4942\t1\n+I\t4942\t4966\t2\n+I\t4966\t5027\t1\n+I\t5027\t5095\t0\n+I\t5095\t5195\t1\n+I\t5195\t5211\t0\n+I\t5211\t5221\t1\n+I\t5221\t5244\t2\n+I\t5244\t5262\t3\n+I\t5262\t5269\t4\n+I\t5269\t5270\t5\n+I\t5270\t5282\t6\n+I\t5282\t5311\t7\n+I\t5311\t5321\t6\n+I\t5321\t5344\t5\n+I\t5344\t5350\t4\n+I\t5350\t5362\t5\n+I\t5362\t5369\t4\n+I\t5369\t5370\t3\n+I\t5370\t5382\t2\n+I\t5382\t5403\t1\n+I\t5403\t5423\t2\n+I\t5423\t5450\t3\n+I\t5450\t5454\t2\n+I\t5454\t5503\t3\n+I\t5503\t5523\t2\n+I\t5523\t5541\t1\n+I\t5541\t5676\t0\n+I\t5676\t5747\t1\n+I\t5747\t5773\t2\n+I\t5773\t5847\t1\n+I\t5847\t5885\t0\n+I\t5885\t5978\t1\n+I\t5978\t5985\t2\n+I\t5985\t6026\t1\n+I\t6026\t6040\t2\n+I\t6040\t6065\t3\n+I\t6065\t6078\t4\n+I\t6078\t6090\t3\n+I\t6090\t6091\t2\n+I\t6091\t6103\t3\n+I\t6103\t6107\t2\n+I\t6107\t6111\t1\n+I\t6111\t6127\t2\n+I\t6127\t6130\t1\n+I\t6130\t6139\t2\n+I\t6139\t6146\t3\n+I\t6146\t6149\t4\n+I\t6149\t6211\t5\n+I\t6211\t6230\t4\n+I\t6230\t6239\t3\n+I\t6239\t6246\t2\n+I\t6246\t6249\t1\n+I\t6249\t6275\t0\n+I\t6275\t6343\t1\n+I\t6343\t6375\t2\n+I\t6375\t6404\t1\n+I\t6404\t6443\t2\n+I\t6443\t6455\t1\n+I\t6455\t6504\t2\n+I\t6504\t6520\t1\n+I\t6520\t6730\t0\n+I\t6730\t6755\t1\n+I\t6755\t6783\t0\n+I\t6783\t6823\t1\n+I\t6823\t6863\t2\n+I\t6863\t6883\t3\n+I\t6883\t6923\t2\n+I\t6923\t6944\t1\n+I\t6944\t6963\t2\n+I\t6963\t7038\t1\n+I\t7038\t7044\t2\n+I\t7044\t7086\t1\n+I\t7086\t7138\t2\n+I\t7138\t7140\t1\n+I\t7140\t7149\t2\n+I\t7149\t7151\t3\n+I\t7151\t7154\t2\n+I\t7154\t7189\t3\n+I\t7189\t7198\t2\n+I\t7198\t7202\t3\n+I\t7202\t7240\t4\n+I\t7240\t7244\t3\n+I\t7244\t7249\t4\n+I\t7249\t7284\t3\n+I\t7284\t7298\t4\n+I\t7298\t7302\t3\n+I\t7302\t7344\t2\n+I\t7344\t7384\t1\n+I\t7384\t7412\t0\n+I\t7412\t7512\t1\n+I\t7512\t7792\t0\n+I\t7792\t7867\t1\n+I\t7867\t7892\t2\n+I\t7892\t7939\t1\n+I\t7939\t7945\t0\n+I\t7945\t7994\t1\n+I\t7994\t8027\t0\n+I\t8027\t8048\t1\n+I\t8048\t8089\t2\n+I\t8089\t8127\t3\n+I\t8127\t8148\t2\n+I\t8148\t8149\t1\n+I\t8149\t8231\t0\n+I\t8231\t8235\t1\n+I\t8235\t8252\t2\n+I\t8252\t8318\t3\n+I\t8318\t8331\t4\n+I\t8331\t8335\t3\n+I\t8335\t8352\t2\n+I\t8352\t8356\t1\n+I\t8356\t8406\t2\n+I\t8406\t8418\t3\n+I\t8418\t8456\t2\n+I\t8456\t8506\t1\n+I\t8506\t8808\t0\n+I\t8808\t8900\t1\n+I\t8900\t8908\t2\n+I\t8908\t8940\t1\n+I\t8940\t8949\t2\n+I\t8949\t9000\t3\n+I\t9000\t9040\t2\n+I\t9040\t9049\t1\n+I\t9049\t9378\t0\n+I\t9378\t9453\t1\n+I\t9453\t9478\t2\n+I\t9478\t9538\t1\n+I\t9538\t9553\t2\n+I\t9553\t9562\t1\n+I\t9562\t9634\t2\n+I\t9634\t9662\t1\n+I\t9662\t9807\t0\n+I\t9807\t9907\t1\n+I\t9907\t9937\t0\n+I\t9937\t10037\t1\n+I\t10037\t10140\t0\n+I\t10140\t10178\t1\n+I\t10178\t10240\t2\n+I\t10240\t10278\t1\n+I\t10278\t10783\t0\n+I\t10783\t10827\t1\n+I\t10827\t10882\t2\n+I\t10882\t10927\t1\n+I\t10927\t11095\t0\n+I\t11095\t11135\t1\n+I\t11135\t11136\t0\n+I\t11136\t11193\t1\n+I\t11193\t11196\t2\n+I\t11196\t11206\t1\n+I\t11206\t11224\t2\n+I\t11224\t11240\t3\n+I\t11240\t11241\t4\n+I\t11241\t11293\t5\n+I\t11293\t11306\t4\n+I\t11306\t11321\t3\n+I\t11321\t11323\t2\n+I\t11323\t11324\t3\n+I\t11324\t11339\t2\n+I\t11339\t11340\t3\n+I\t11340\t11391\t2\n+I\t11391\t11405\t3\n+I\t11405\t11422\t4\n+I\t11422\t11428\t3\n+I\t11428\t11438\t4\n+I\t11438\t11491\t3\n+I\t11491\t11505\t2\n+I\t11505\t11523\t1\n+I\t11523\t11528\t2\n+I\t11528\t11623\t1\n+I\t11623\t11650\t0\n+I\t11650\t11750\t1\n+I\t11750\t11755\t0\n+I\t11755\t11855\t1\n+I\t11855\t12513\t0\n+I\t12513\t12584\t1\n+I\t12584\t12784\t0\n+I\t12784\t12884\t1\n+I\t12884\t17975\t0\n+I\t17975\t18075\t1\n+I\t18075\t24619\t0\n+I\t24619\t24664\t1\n+I\t24664\t24747\t2\n+I\t24747\t24794\t1\n+I\t24794\t24817\t0\n+I\t24817\t24917\t1\n+I\t24917\t27081\t0\n+I\t27081\t27128\t1\n+'..b'220410\t2\n+I\t220410\t220424\t1\n+I\t220424\t220465\t2\n+I\t220465\t220478\t3\n+I\t220478\t220497\t4\n+I\t220497\t220524\t3\n+I\t220524\t220565\t2\n+I\t220565\t220578\t1\n+I\t220578\t220910\t0\n+I\t220910\t221010\t1\n+I\t221010\t221080\t0\n+I\t221080\t221120\t1\n+I\t221120\t221180\t2\n+I\t221180\t221220\t1\n+I\t221220\t221249\t0\n+I\t221249\t221349\t1\n+I\t221349\t221376\t0\n+I\t221376\t221391\t1\n+I\t221391\t221418\t2\n+I\t221418\t221446\t3\n+I\t221446\t221475\t4\n+I\t221475\t221483\t3\n+I\t221483\t221491\t4\n+I\t221491\t221518\t3\n+I\t221518\t221546\t2\n+I\t221546\t221577\t1\n+I\t221577\t221583\t2\n+I\t221583\t221669\t1\n+I\t221669\t221677\t2\n+I\t221677\t221701\t1\n+I\t221701\t221750\t2\n+I\t221750\t221769\t3\n+I\t221769\t221801\t2\n+I\t221801\t221850\t1\n+I\t221850\t221896\t0\n+I\t221896\t221996\t1\n+I\t221996\t222082\t0\n+I\t222082\t222124\t1\n+I\t222124\t222133\t2\n+I\t222133\t222146\t3\n+I\t222146\t222182\t4\n+I\t222182\t222199\t3\n+I\t222199\t222224\t4\n+I\t222224\t222233\t3\n+I\t222233\t222242\t2\n+I\t222242\t222272\t1\n+I\t222272\t222342\t0\n+I\t222342\t222360\t1\n+I\t222360\t222377\t2\n+I\t222377\t222400\t1\n+I\t222400\t222439\t2\n+I\t222439\t222460\t3\n+I\t222460\t222499\t2\n+I\t222499\t222567\t1\n+I\t222567\t222578\t2\n+I\t222578\t222601\t3\n+I\t222601\t222625\t4\n+I\t222625\t222667\t3\n+I\t222667\t222678\t2\n+I\t222678\t222701\t1\n+I\t222701\t222709\t0\n+I\t222709\t222762\t1\n+I\t222762\t222771\t2\n+I\t222771\t222797\t3\n+I\t222797\t222801\t2\n+I\t222801\t222805\t3\n+I\t222805\t222857\t2\n+I\t222857\t222867\t3\n+I\t222867\t222871\t4\n+I\t222871\t222896\t3\n+I\t222896\t222907\t2\n+I\t222907\t222914\t3\n+I\t222914\t222921\t4\n+I\t222921\t222926\t3\n+I\t222926\t222938\t4\n+I\t222938\t222957\t5\n+I\t222957\t222961\t4\n+I\t222961\t222975\t5\n+I\t222975\t222982\t6\n+I\t222982\t222985\t7\n+I\t222985\t222993\t8\n+I\t222993\t223007\t9\n+I\t223007\t223014\t8\n+I\t223014\t223020\t7\n+I\t223020\t223023\t8\n+I\t223023\t223026\t9\n+I\t223026\t223029\t8\n+I\t223029\t223038\t9\n+I\t223038\t223061\t8\n+I\t223061\t223075\t7\n+I\t223075\t223082\t6\n+I\t223082\t223085\t5\n+I\t223085\t223093\t4\n+I\t223093\t223120\t3\n+I\t223120\t223123\t2\n+I\t223123\t223129\t1\n+I\t223129\t223130\t0\n+I\t223130\t223132\t1\n+I\t223132\t223160\t2\n+I\t223160\t223165\t3\n+I\t223165\t223191\t2\n+I\t223191\t223205\t1\n+I\t223205\t223213\t2\n+I\t223213\t223223\t3\n+I\t223223\t223244\t4\n+I\t223244\t223248\t5\n+I\t223248\t223255\t6\n+I\t223255\t223260\t7\n+I\t223260\t223283\t6\n+I\t223283\t223290\t7\n+I\t223290\t223305\t8\n+I\t223305\t223313\t7\n+I\t223313\t223344\t6\n+I\t223344\t223348\t5\n+I\t223348\t223355\t4\n+I\t223355\t223369\t3\n+I\t223369\t223382\t4\n+I\t223382\t223390\t3\n+I\t223390\t223423\t2\n+I\t223423\t223469\t1\n+I\t223469\t223481\t0\n+I\t223481\t223532\t1\n+I\t223532\t223547\t2\n+I\t223547\t223573\t3\n+I\t223573\t223581\t4\n+I\t223581\t223584\t3\n+I\t223584\t223632\t4\n+I\t223632\t223647\t3\n+I\t223647\t223673\t2\n+I\t223673\t223684\t1\n+I\t223684\t223687\t0\n+I\t223687\t223787\t1\n+I\t223787\t223987\t0\n+I\t223987\t224005\t1\n+I\t224005\t224040\t2\n+I\t224040\t224074\t3\n+I\t224074\t224087\t4\n+I\t224087\t224104\t3\n+I\t224104\t224105\t4\n+I\t224105\t224140\t3\n+I\t224140\t224150\t2\n+I\t224150\t224174\t3\n+I\t224174\t224188\t2\n+I\t224188\t224204\t3\n+I\t224204\t224229\t2\n+I\t224229\t224233\t1\n+I\t224233\t224288\t2\n+I\t224288\t224333\t1\n+I\t224333\t224848\t0\n+I\t224848\t224948\t1\n+I\t224948\t224988\t0\n+I\t224988\t225060\t1\n+I\t225060\t225204\t0\n+I\t225204\t225249\t1\n+I\t225249\t225304\t2\n+I\t225304\t225349\t1\n+I\t225349\t225419\t0\n+I\t225419\t225519\t1\n+I\t225519\t225524\t0\n+I\t225524\t225572\t1\n+I\t225572\t225579\t2\n+I\t225579\t225590\t3\n+I\t225590\t225624\t4\n+I\t225624\t225652\t3\n+I\t225652\t225655\t4\n+I\t225655\t225672\t5\n+I\t225672\t225679\t4\n+I\t225679\t225687\t3\n+I\t225687\t225690\t4\n+I\t225690\t225717\t3\n+I\t225717\t225752\t4\n+I\t225752\t225755\t3\n+I\t225755\t225785\t2\n+I\t225785\t225787\t3\n+I\t225787\t225817\t2\n+I\t225817\t225848\t1\n+I\t225848\t225878\t2\n+I\t225878\t225885\t3\n+I\t225885\t225948\t2\n+I\t225948\t225978\t1\n+I\t225978\t226156\t0\n+I\t226156\t226231\t1\n+I\t226231\t226256\t2\n+I\t226256\t226330\t1\n+I\t226330\t226444\t0\n+I\t226444\t226498\t1\n+I\t226498\t226537\t2\n+I\t226537\t226566\t1\n+I\t226566\t226597\t2\n+I\t226597\t226598\t3\n+I\t226598\t226628\t2\n+I\t226628\t226643\t3\n+I\t226643\t226662\t2\n+I\t226662\t226709\t1\n+I\t226709\t226728\t2\n+I\t226728\t226809\t1\n+I\t226809\t228103\t0\n+I\t228103\t228126\t1\n+I\t228126\t228198\t2\n+I\t228198\t228203\t3\n+I\t228203\t228226\t2\n+I\t228226\t228261\t1\n+I\t228261\t228291\t2\n+I\t228291\t228301\t3\n+I\t228301\t228322\t2\n+I\t228322\t228367\t3\n+I\t228367\t228379\t4\n+I\t228379\t228391\t3\n+I\t228391\t228422\t2\n+I\t228422\t228467\t1\n+I\t228467\t230218\t0\n' |