Mercurial > repos > fubar > bigwig_outlier_bed
annotate bigwig_outlier_bed.xml @ 6:eb17eb8a3658 draft
planemo upload commit 1baff96e75def9248afdcf21edec9bdc7ed42b1f-dirty
author | fubar |
---|---|
date | Tue, 23 Jul 2024 23:12:23 +0000 |
parents | 68cb8e7e266b |
children | c8e22efcaeda |
rev | line source |
---|---|
6
eb17eb8a3658
planemo upload commit 1baff96e75def9248afdcf21edec9bdc7ed42b1f-dirty
fubar
parents:
5
diff
changeset
|
1 <tool name="Bigwig extremes to bed features" id="bigwig_outlier_bed" version="@TOOL_VERSION@" profile="22.05"> |
eb17eb8a3658
planemo upload commit 1baff96e75def9248afdcf21edec9bdc7ed42b1f-dirty
fubar
parents:
5
diff
changeset
|
2 <description>Writes high and low bigwig runs as features in a bed file</description> |
eb17eb8a3658
planemo upload commit 1baff96e75def9248afdcf21edec9bdc7ed42b1f-dirty
fubar
parents:
5
diff
changeset
|
3 <macros> |
eb17eb8a3658
planemo upload commit 1baff96e75def9248afdcf21edec9bdc7ed42b1f-dirty
fubar
parents:
5
diff
changeset
|
4 <token name="@TOOL_VERSION@">0.2.0</token> |
eb17eb8a3658
planemo upload commit 1baff96e75def9248afdcf21edec9bdc7ed42b1f-dirty
fubar
parents:
5
diff
changeset
|
5 <token name="@NUMPY_VERSION@">2.0.0</token> |
eb17eb8a3658
planemo upload commit 1baff96e75def9248afdcf21edec9bdc7ed42b1f-dirty
fubar
parents:
5
diff
changeset
|
6 <token name="@PYTHON_VERSION@">3.12.3</token> |
eb17eb8a3658
planemo upload commit 1baff96e75def9248afdcf21edec9bdc7ed42b1f-dirty
fubar
parents:
5
diff
changeset
|
7 </macros> |
0
c71db540eb38
planemo upload for repository https://github.com/jackh726/bigtools commit ce6b9f638ebcebcad5a5b10219f252962f30e5cc-dirty
fubar
parents:
diff
changeset
|
8 <edam_topics> |
c71db540eb38
planemo upload for repository https://github.com/jackh726/bigtools commit ce6b9f638ebcebcad5a5b10219f252962f30e5cc-dirty
fubar
parents:
diff
changeset
|
9 <edam_topic>topic_0157</edam_topic> |
c71db540eb38
planemo upload for repository https://github.com/jackh726/bigtools commit ce6b9f638ebcebcad5a5b10219f252962f30e5cc-dirty
fubar
parents:
diff
changeset
|
10 <edam_topic>topic_0092</edam_topic> |
c71db540eb38
planemo upload for repository https://github.com/jackh726/bigtools commit ce6b9f638ebcebcad5a5b10219f252962f30e5cc-dirty
fubar
parents:
diff
changeset
|
11 </edam_topics> |
c71db540eb38
planemo upload for repository https://github.com/jackh726/bigtools commit ce6b9f638ebcebcad5a5b10219f252962f30e5cc-dirty
fubar
parents:
diff
changeset
|
12 <edam_operations> |
c71db540eb38
planemo upload for repository https://github.com/jackh726/bigtools commit ce6b9f638ebcebcad5a5b10219f252962f30e5cc-dirty
fubar
parents:
diff
changeset
|
13 <edam_operation>operation_0337</edam_operation> |
6
eb17eb8a3658
planemo upload commit 1baff96e75def9248afdcf21edec9bdc7ed42b1f-dirty
fubar
parents:
5
diff
changeset
|
14 </edam_operations> |
eb17eb8a3658
planemo upload commit 1baff96e75def9248afdcf21edec9bdc7ed42b1f-dirty
fubar
parents:
5
diff
changeset
|
15 <xrefs> |
eb17eb8a3658
planemo upload commit 1baff96e75def9248afdcf21edec9bdc7ed42b1f-dirty
fubar
parents:
5
diff
changeset
|
16 <xref type="bio.tools">bigtools</xref> |
eb17eb8a3658
planemo upload commit 1baff96e75def9248afdcf21edec9bdc7ed42b1f-dirty
fubar
parents:
5
diff
changeset
|
17 </xrefs> |
0
c71db540eb38
planemo upload for repository https://github.com/jackh726/bigtools commit ce6b9f638ebcebcad5a5b10219f252962f30e5cc-dirty
fubar
parents:
diff
changeset
|
18 <requirements> |
6
eb17eb8a3658
planemo upload commit 1baff96e75def9248afdcf21edec9bdc7ed42b1f-dirty
fubar
parents:
5
diff
changeset
|
19 <requirement type="package" version="@PYTHON_VERSION@">python</requirement> |
eb17eb8a3658
planemo upload commit 1baff96e75def9248afdcf21edec9bdc7ed42b1f-dirty
fubar
parents:
5
diff
changeset
|
20 <requirement type="package" version="@NUMPY_VERSION@">numpy</requirement> |
eb17eb8a3658
planemo upload commit 1baff96e75def9248afdcf21edec9bdc7ed42b1f-dirty
fubar
parents:
5
diff
changeset
|
21 <requirement type="package" version="@TOOL_VERSION@">pybigtools</requirement> |
0
c71db540eb38
planemo upload for repository https://github.com/jackh726/bigtools commit ce6b9f638ebcebcad5a5b10219f252962f30e5cc-dirty
fubar
parents:
diff
changeset
|
22 </requirements> |
6
eb17eb8a3658
planemo upload commit 1baff96e75def9248afdcf21edec9bdc7ed42b1f-dirty
fubar
parents:
5
diff
changeset
|
23 <required_files> |
eb17eb8a3658
planemo upload commit 1baff96e75def9248afdcf21edec9bdc7ed42b1f-dirty
fubar
parents:
5
diff
changeset
|
24 <include path="bigwig_outlier_bed.py"/> |
eb17eb8a3658
planemo upload commit 1baff96e75def9248afdcf21edec9bdc7ed42b1f-dirty
fubar
parents:
5
diff
changeset
|
25 </required_files> |
0
c71db540eb38
planemo upload for repository https://github.com/jackh726/bigtools commit ce6b9f638ebcebcad5a5b10219f252962f30e5cc-dirty
fubar
parents:
diff
changeset
|
26 <version_command><![CDATA[python -c "import pybigtools; from importlib.metadata import version; print(version('pybigtools'))"]]></version_command> |
6
eb17eb8a3658
planemo upload commit 1baff96e75def9248afdcf21edec9bdc7ed42b1f-dirty
fubar
parents:
5
diff
changeset
|
27 <command><![CDATA[python '${__tool_directory__}/bigwig_outlier_bed.py' |
eb17eb8a3658
planemo upload commit 1baff96e75def9248afdcf21edec9bdc7ed42b1f-dirty
fubar
parents:
5
diff
changeset
|
28 --bigwig |
eb17eb8a3658
planemo upload commit 1baff96e75def9248afdcf21edec9bdc7ed42b1f-dirty
fubar
parents:
5
diff
changeset
|
29 #for bw in $bigwig: |
eb17eb8a3658
planemo upload commit 1baff96e75def9248afdcf21edec9bdc7ed42b1f-dirty
fubar
parents:
5
diff
changeset
|
30 '$bw' |
eb17eb8a3658
planemo upload commit 1baff96e75def9248afdcf21edec9bdc7ed42b1f-dirty
fubar
parents:
5
diff
changeset
|
31 #end for |
0
c71db540eb38
planemo upload for repository https://github.com/jackh726/bigtools commit ce6b9f638ebcebcad5a5b10219f252962f30e5cc-dirty
fubar
parents:
diff
changeset
|
32 --bigwiglabels |
6
eb17eb8a3658
planemo upload commit 1baff96e75def9248afdcf21edec9bdc7ed42b1f-dirty
fubar
parents:
5
diff
changeset
|
33 #for bw in $bigwig: |
eb17eb8a3658
planemo upload commit 1baff96e75def9248afdcf21edec9bdc7ed42b1f-dirty
fubar
parents:
5
diff
changeset
|
34 '$bw.name' |
eb17eb8a3658
planemo upload commit 1baff96e75def9248afdcf21edec9bdc7ed42b1f-dirty
fubar
parents:
5
diff
changeset
|
35 #end for |
eb17eb8a3658
planemo upload commit 1baff96e75def9248afdcf21edec9bdc7ed42b1f-dirty
fubar
parents:
5
diff
changeset
|
36 --outbeds '$outbeds' |
eb17eb8a3658
planemo upload commit 1baff96e75def9248afdcf21edec9bdc7ed42b1f-dirty
fubar
parents:
5
diff
changeset
|
37 #if $outbeds in ['outhilo', 'outall']: |
eb17eb8a3658
planemo upload commit 1baff96e75def9248afdcf21edec9bdc7ed42b1f-dirty
fubar
parents:
5
diff
changeset
|
38 --bedouthilo '$bedouthilo' |
eb17eb8a3658
planemo upload commit 1baff96e75def9248afdcf21edec9bdc7ed42b1f-dirty
fubar
parents:
5
diff
changeset
|
39 #end if |
eb17eb8a3658
planemo upload commit 1baff96e75def9248afdcf21edec9bdc7ed42b1f-dirty
fubar
parents:
5
diff
changeset
|
40 #if $outbeds in ['outhi', 'outall', 'outlohi']: |
eb17eb8a3658
planemo upload commit 1baff96e75def9248afdcf21edec9bdc7ed42b1f-dirty
fubar
parents:
5
diff
changeset
|
41 --bedouthi '$bedouthi' |
eb17eb8a3658
planemo upload commit 1baff96e75def9248afdcf21edec9bdc7ed42b1f-dirty
fubar
parents:
5
diff
changeset
|
42 #end if |
eb17eb8a3658
planemo upload commit 1baff96e75def9248afdcf21edec9bdc7ed42b1f-dirty
fubar
parents:
5
diff
changeset
|
43 #if $outbeds in ['outlo', 'outall', 'outlohi']: |
eb17eb8a3658
planemo upload commit 1baff96e75def9248afdcf21edec9bdc7ed42b1f-dirty
fubar
parents:
5
diff
changeset
|
44 --bedoutlo '$bedoutlo' |
eb17eb8a3658
planemo upload commit 1baff96e75def9248afdcf21edec9bdc7ed42b1f-dirty
fubar
parents:
5
diff
changeset
|
45 #end if |
eb17eb8a3658
planemo upload commit 1baff96e75def9248afdcf21edec9bdc7ed42b1f-dirty
fubar
parents:
5
diff
changeset
|
46 --minwin '$minwin' |
eb17eb8a3658
planemo upload commit 1baff96e75def9248afdcf21edec9bdc7ed42b1f-dirty
fubar
parents:
5
diff
changeset
|
47 #if $qhi: |
eb17eb8a3658
planemo upload commit 1baff96e75def9248afdcf21edec9bdc7ed42b1f-dirty
fubar
parents:
5
diff
changeset
|
48 --qhi '$qhi' |
eb17eb8a3658
planemo upload commit 1baff96e75def9248afdcf21edec9bdc7ed42b1f-dirty
fubar
parents:
5
diff
changeset
|
49 #end if |
eb17eb8a3658
planemo upload commit 1baff96e75def9248afdcf21edec9bdc7ed42b1f-dirty
fubar
parents:
5
diff
changeset
|
50 #if $qlo: |
eb17eb8a3658
planemo upload commit 1baff96e75def9248afdcf21edec9bdc7ed42b1f-dirty
fubar
parents:
5
diff
changeset
|
51 --qlo '$qlo' |
eb17eb8a3658
planemo upload commit 1baff96e75def9248afdcf21edec9bdc7ed42b1f-dirty
fubar
parents:
5
diff
changeset
|
52 #end if |
eb17eb8a3658
planemo upload commit 1baff96e75def9248afdcf21edec9bdc7ed42b1f-dirty
fubar
parents:
5
diff
changeset
|
53 #if $tableout == "create" or $outbeds == "outtab": |
eb17eb8a3658
planemo upload commit 1baff96e75def9248afdcf21edec9bdc7ed42b1f-dirty
fubar
parents:
5
diff
changeset
|
54 --tableoutfile '$tableoutfile' |
eb17eb8a3658
planemo upload commit 1baff96e75def9248afdcf21edec9bdc7ed42b1f-dirty
fubar
parents:
5
diff
changeset
|
55 #end if |
eb17eb8a3658
planemo upload commit 1baff96e75def9248afdcf21edec9bdc7ed42b1f-dirty
fubar
parents:
5
diff
changeset
|
56 ]]></command> |
0
c71db540eb38
planemo upload for repository https://github.com/jackh726/bigtools commit ce6b9f638ebcebcad5a5b10219f252962f30e5cc-dirty
fubar
parents:
diff
changeset
|
57 <inputs> |
6
eb17eb8a3658
planemo upload commit 1baff96e75def9248afdcf21edec9bdc7ed42b1f-dirty
fubar
parents:
5
diff
changeset
|
58 <param name="bigwig" type="data" optional="false" label="Choose one or more bigwig file(s) to return outlier regions as a bed file" |
eb17eb8a3658
planemo upload commit 1baff96e75def9248afdcf21edec9bdc7ed42b1f-dirty
fubar
parents:
5
diff
changeset
|
59 help="If more than one, MUST all use the same reference sequence to be displayable. Feature names will include the bigwig label." format="bigwig" multiple="true"/> |
eb17eb8a3658
planemo upload commit 1baff96e75def9248afdcf21edec9bdc7ed42b1f-dirty
fubar
parents:
5
diff
changeset
|
60 <param name="minwin" type="integer" value="10" label="Minimum continuous bases to count as a high or low bed feature" |
eb17eb8a3658
planemo upload commit 1baff96e75def9248afdcf21edec9bdc7ed42b1f-dirty
fubar
parents:
5
diff
changeset
|
61 help="Continuous features as long or longer than this window size will appear as bed features"/> |
eb17eb8a3658
planemo upload commit 1baff96e75def9248afdcf21edec9bdc7ed42b1f-dirty
fubar
parents:
5
diff
changeset
|
62 <param name="qhi" type="float" value="0.99" label="Quantile cutoff for a high region - 0.99 will cut off at or above the 99th percentile" help="Required" optional="false"/> |
eb17eb8a3658
planemo upload commit 1baff96e75def9248afdcf21edec9bdc7ed42b1f-dirty
fubar
parents:
5
diff
changeset
|
63 <param name="qlo" type="float" value="0.01" label="Quantile cutoff for a low region - 0.01 will cut off at or below the 1st percentile." help="Optional" optional="true"/> |
eb17eb8a3658
planemo upload commit 1baff96e75def9248afdcf21edec9bdc7ed42b1f-dirty
fubar
parents:
5
diff
changeset
|
64 <param name="outbeds" type="select" label="Select the required bed file outputs" help="Any combination of the 3 different kinds of bed file output can be made"> |
eb17eb8a3658
planemo upload commit 1baff96e75def9248afdcf21edec9bdc7ed42b1f-dirty
fubar
parents:
5
diff
changeset
|
65 <option value="outhilo" selected="true">Make 1 bed output with both low and high regions</option> |
eb17eb8a3658
planemo upload commit 1baff96e75def9248afdcf21edec9bdc7ed42b1f-dirty
fubar
parents:
5
diff
changeset
|
66 <option value="outhi">Make 1 bed output with high regions only</option> |
eb17eb8a3658
planemo upload commit 1baff96e75def9248afdcf21edec9bdc7ed42b1f-dirty
fubar
parents:
5
diff
changeset
|
67 <option value="outlo">Make 1 bed output with low regions only</option> |
eb17eb8a3658
planemo upload commit 1baff96e75def9248afdcf21edec9bdc7ed42b1f-dirty
fubar
parents:
5
diff
changeset
|
68 <option value="outall">Make 3 bed outputs with low and high together in one, high in one and low in the other</option> |
eb17eb8a3658
planemo upload commit 1baff96e75def9248afdcf21edec9bdc7ed42b1f-dirty
fubar
parents:
5
diff
changeset
|
69 <option value="outlohi">Make 2 bed outputs with high in one and low in the other</option> |
eb17eb8a3658
planemo upload commit 1baff96e75def9248afdcf21edec9bdc7ed42b1f-dirty
fubar
parents:
5
diff
changeset
|
70 <option value="outtab">NO bed outputs. Report bigwig value distribution only</option> |
0
c71db540eb38
planemo upload for repository https://github.com/jackh726/bigtools commit ce6b9f638ebcebcad5a5b10219f252962f30e5cc-dirty
fubar
parents:
diff
changeset
|
71 </param> |
6
eb17eb8a3658
planemo upload commit 1baff96e75def9248afdcf21edec9bdc7ed42b1f-dirty
fubar
parents:
5
diff
changeset
|
72 <param name="tableout" type="select" label="Write a table showing contig statistics for each bigwig input" help=""> |
eb17eb8a3658
planemo upload commit 1baff96e75def9248afdcf21edec9bdc7ed42b1f-dirty
fubar
parents:
5
diff
changeset
|
73 <option value="donotmake">Do not create this report</option> |
eb17eb8a3658
planemo upload commit 1baff96e75def9248afdcf21edec9bdc7ed42b1f-dirty
fubar
parents:
5
diff
changeset
|
74 <option value="create" selected="true">Create this report</option> |
eb17eb8a3658
planemo upload commit 1baff96e75def9248afdcf21edec9bdc7ed42b1f-dirty
fubar
parents:
5
diff
changeset
|
75 </param> |
0
c71db540eb38
planemo upload for repository https://github.com/jackh726/bigtools commit ce6b9f638ebcebcad5a5b10219f252962f30e5cc-dirty
fubar
parents:
diff
changeset
|
76 </inputs> |
c71db540eb38
planemo upload for repository https://github.com/jackh726/bigtools commit ce6b9f638ebcebcad5a5b10219f252962f30e5cc-dirty
fubar
parents:
diff
changeset
|
77 <outputs> |
6
eb17eb8a3658
planemo upload commit 1baff96e75def9248afdcf21edec9bdc7ed42b1f-dirty
fubar
parents:
5
diff
changeset
|
78 <data name="bedouthilo" format="bed" label="High_and_low_bed" hidden="false"> |
eb17eb8a3658
planemo upload commit 1baff96e75def9248afdcf21edec9bdc7ed42b1f-dirty
fubar
parents:
5
diff
changeset
|
79 <filter>outbeds in ["outall", "outhilo"]</filter> |
eb17eb8a3658
planemo upload commit 1baff96e75def9248afdcf21edec9bdc7ed42b1f-dirty
fubar
parents:
5
diff
changeset
|
80 </data> |
eb17eb8a3658
planemo upload commit 1baff96e75def9248afdcf21edec9bdc7ed42b1f-dirty
fubar
parents:
5
diff
changeset
|
81 <data name="bedouthi" format="bed" label="High bed" hidden="false"> |
eb17eb8a3658
planemo upload commit 1baff96e75def9248afdcf21edec9bdc7ed42b1f-dirty
fubar
parents:
5
diff
changeset
|
82 <filter>outbeds in ["outall", "outlohi", "outhi"]</filter> |
eb17eb8a3658
planemo upload commit 1baff96e75def9248afdcf21edec9bdc7ed42b1f-dirty
fubar
parents:
5
diff
changeset
|
83 </data> |
eb17eb8a3658
planemo upload commit 1baff96e75def9248afdcf21edec9bdc7ed42b1f-dirty
fubar
parents:
5
diff
changeset
|
84 <data name="bedoutlo" format="bed" label="Low bed" hidden="false"> |
eb17eb8a3658
planemo upload commit 1baff96e75def9248afdcf21edec9bdc7ed42b1f-dirty
fubar
parents:
5
diff
changeset
|
85 <filter>outbeds in ["outall", "outlohi", "outlo"]</filter> |
eb17eb8a3658
planemo upload commit 1baff96e75def9248afdcf21edec9bdc7ed42b1f-dirty
fubar
parents:
5
diff
changeset
|
86 </data> |
eb17eb8a3658
planemo upload commit 1baff96e75def9248afdcf21edec9bdc7ed42b1f-dirty
fubar
parents:
5
diff
changeset
|
87 <data name="tableoutfile" format="tabular" label="Contig statistics" hidden="false"> |
eb17eb8a3658
planemo upload commit 1baff96e75def9248afdcf21edec9bdc7ed42b1f-dirty
fubar
parents:
5
diff
changeset
|
88 <filter>tableout == "create"</filter> |
eb17eb8a3658
planemo upload commit 1baff96e75def9248afdcf21edec9bdc7ed42b1f-dirty
fubar
parents:
5
diff
changeset
|
89 </data> |
0
c71db540eb38
planemo upload for repository https://github.com/jackh726/bigtools commit ce6b9f638ebcebcad5a5b10219f252962f30e5cc-dirty
fubar
parents:
diff
changeset
|
90 </outputs> |
c71db540eb38
planemo upload for repository https://github.com/jackh726/bigtools commit ce6b9f638ebcebcad5a5b10219f252962f30e5cc-dirty
fubar
parents:
diff
changeset
|
91 <tests> |
6
eb17eb8a3658
planemo upload commit 1baff96e75def9248afdcf21edec9bdc7ed42b1f-dirty
fubar
parents:
5
diff
changeset
|
92 <test expect_num_outputs="1"> |
0
c71db540eb38
planemo upload for repository https://github.com/jackh726/bigtools commit ce6b9f638ebcebcad5a5b10219f252962f30e5cc-dirty
fubar
parents:
diff
changeset
|
93 <output name="bedouthilo" value="bedouthilo_sample" compare="diff" lines_diff="0"/> |
6
eb17eb8a3658
planemo upload commit 1baff96e75def9248afdcf21edec9bdc7ed42b1f-dirty
fubar
parents:
5
diff
changeset
|
94 <param name="outbeds" value="outhilo"/> |
0
c71db540eb38
planemo upload for repository https://github.com/jackh726/bigtools commit ce6b9f638ebcebcad5a5b10219f252962f30e5cc-dirty
fubar
parents:
diff
changeset
|
95 <param name="bigwig" value="bigwig_sample"/> |
c71db540eb38
planemo upload for repository https://github.com/jackh726/bigtools commit ce6b9f638ebcebcad5a5b10219f252962f30e5cc-dirty
fubar
parents:
diff
changeset
|
96 <param name="minwin" value="10"/> |
c71db540eb38
planemo upload for repository https://github.com/jackh726/bigtools commit ce6b9f638ebcebcad5a5b10219f252962f30e5cc-dirty
fubar
parents:
diff
changeset
|
97 <param name="qhi" value="0.99"/> |
c71db540eb38
planemo upload for repository https://github.com/jackh726/bigtools commit ce6b9f638ebcebcad5a5b10219f252962f30e5cc-dirty
fubar
parents:
diff
changeset
|
98 <param name="qlo" value="0.01"/> |
6
eb17eb8a3658
planemo upload commit 1baff96e75def9248afdcf21edec9bdc7ed42b1f-dirty
fubar
parents:
5
diff
changeset
|
99 <param name="tableout" value="donotmake"/> |
eb17eb8a3658
planemo upload commit 1baff96e75def9248afdcf21edec9bdc7ed42b1f-dirty
fubar
parents:
5
diff
changeset
|
100 </test> |
eb17eb8a3658
planemo upload commit 1baff96e75def9248afdcf21edec9bdc7ed42b1f-dirty
fubar
parents:
5
diff
changeset
|
101 <test expect_num_outputs="1"> |
eb17eb8a3658
planemo upload commit 1baff96e75def9248afdcf21edec9bdc7ed42b1f-dirty
fubar
parents:
5
diff
changeset
|
102 <output name="tableoutfile" value="table_only_sample" compare="diff" lines_diff="0"/> |
eb17eb8a3658
planemo upload commit 1baff96e75def9248afdcf21edec9bdc7ed42b1f-dirty
fubar
parents:
5
diff
changeset
|
103 <param name="outbeds" value="outtab"/> |
eb17eb8a3658
planemo upload commit 1baff96e75def9248afdcf21edec9bdc7ed42b1f-dirty
fubar
parents:
5
diff
changeset
|
104 <param name="bigwig" value="bigwig_sample,1.bigwig"/> |
eb17eb8a3658
planemo upload commit 1baff96e75def9248afdcf21edec9bdc7ed42b1f-dirty
fubar
parents:
5
diff
changeset
|
105 <param name="minwin" value="10"/> |
eb17eb8a3658
planemo upload commit 1baff96e75def9248afdcf21edec9bdc7ed42b1f-dirty
fubar
parents:
5
diff
changeset
|
106 <param name="qhi" value="0.99"/> |
eb17eb8a3658
planemo upload commit 1baff96e75def9248afdcf21edec9bdc7ed42b1f-dirty
fubar
parents:
5
diff
changeset
|
107 <param name="qlo" value="0.01"/> |
eb17eb8a3658
planemo upload commit 1baff96e75def9248afdcf21edec9bdc7ed42b1f-dirty
fubar
parents:
5
diff
changeset
|
108 <param name="tableout" value="create"/> |
eb17eb8a3658
planemo upload commit 1baff96e75def9248afdcf21edec9bdc7ed42b1f-dirty
fubar
parents:
5
diff
changeset
|
109 </test> |
eb17eb8a3658
planemo upload commit 1baff96e75def9248afdcf21edec9bdc7ed42b1f-dirty
fubar
parents:
5
diff
changeset
|
110 <test expect_num_outputs="2"> |
eb17eb8a3658
planemo upload commit 1baff96e75def9248afdcf21edec9bdc7ed42b1f-dirty
fubar
parents:
5
diff
changeset
|
111 <output name="bedouthilo" value="bedouthilo_sample" compare="diff" lines_diff="0"/> |
eb17eb8a3658
planemo upload commit 1baff96e75def9248afdcf21edec9bdc7ed42b1f-dirty
fubar
parents:
5
diff
changeset
|
112 <output name="tableoutfile" value="table_sample" compare="diff" lines_diff="0"/> |
eb17eb8a3658
planemo upload commit 1baff96e75def9248afdcf21edec9bdc7ed42b1f-dirty
fubar
parents:
5
diff
changeset
|
113 <param name="outbeds" value="outhilo"/> |
eb17eb8a3658
planemo upload commit 1baff96e75def9248afdcf21edec9bdc7ed42b1f-dirty
fubar
parents:
5
diff
changeset
|
114 <param name="bigwig" value="bigwig_sample"/> |
eb17eb8a3658
planemo upload commit 1baff96e75def9248afdcf21edec9bdc7ed42b1f-dirty
fubar
parents:
5
diff
changeset
|
115 <param name="minwin" value="10"/> |
eb17eb8a3658
planemo upload commit 1baff96e75def9248afdcf21edec9bdc7ed42b1f-dirty
fubar
parents:
5
diff
changeset
|
116 <param name="qhi" value="0.99"/> |
eb17eb8a3658
planemo upload commit 1baff96e75def9248afdcf21edec9bdc7ed42b1f-dirty
fubar
parents:
5
diff
changeset
|
117 <param name="qlo" value="0.01"/> |
eb17eb8a3658
planemo upload commit 1baff96e75def9248afdcf21edec9bdc7ed42b1f-dirty
fubar
parents:
5
diff
changeset
|
118 <param name="tableout" value="create"/> |
eb17eb8a3658
planemo upload commit 1baff96e75def9248afdcf21edec9bdc7ed42b1f-dirty
fubar
parents:
5
diff
changeset
|
119 </test> |
eb17eb8a3658
planemo upload commit 1baff96e75def9248afdcf21edec9bdc7ed42b1f-dirty
fubar
parents:
5
diff
changeset
|
120 <test expect_num_outputs="2"> |
eb17eb8a3658
planemo upload commit 1baff96e75def9248afdcf21edec9bdc7ed42b1f-dirty
fubar
parents:
5
diff
changeset
|
121 <output name="bedouthi" value="bedouthi_qlo_notset_sample" compare="diff" lines_diff="0"/> |
eb17eb8a3658
planemo upload commit 1baff96e75def9248afdcf21edec9bdc7ed42b1f-dirty
fubar
parents:
5
diff
changeset
|
122 <output name="tableoutfile" value="table_qlo_notset_sample" compare="diff" lines_diff="0"/> |
eb17eb8a3658
planemo upload commit 1baff96e75def9248afdcf21edec9bdc7ed42b1f-dirty
fubar
parents:
5
diff
changeset
|
123 <param name="outbeds" value="outhi"/> |
eb17eb8a3658
planemo upload commit 1baff96e75def9248afdcf21edec9bdc7ed42b1f-dirty
fubar
parents:
5
diff
changeset
|
124 <param name="bigwig" value="bigwig_sample"/> |
eb17eb8a3658
planemo upload commit 1baff96e75def9248afdcf21edec9bdc7ed42b1f-dirty
fubar
parents:
5
diff
changeset
|
125 <param name="minwin" value="10"/> |
eb17eb8a3658
planemo upload commit 1baff96e75def9248afdcf21edec9bdc7ed42b1f-dirty
fubar
parents:
5
diff
changeset
|
126 <param name="qhi" value="0.99"/> |
eb17eb8a3658
planemo upload commit 1baff96e75def9248afdcf21edec9bdc7ed42b1f-dirty
fubar
parents:
5
diff
changeset
|
127 <param name="qlo" value=""/> |
eb17eb8a3658
planemo upload commit 1baff96e75def9248afdcf21edec9bdc7ed42b1f-dirty
fubar
parents:
5
diff
changeset
|
128 <param name="tableout" value="create"/> |
eb17eb8a3658
planemo upload commit 1baff96e75def9248afdcf21edec9bdc7ed42b1f-dirty
fubar
parents:
5
diff
changeset
|
129 </test> |
eb17eb8a3658
planemo upload commit 1baff96e75def9248afdcf21edec9bdc7ed42b1f-dirty
fubar
parents:
5
diff
changeset
|
130 <test expect_num_outputs="3"> |
eb17eb8a3658
planemo upload commit 1baff96e75def9248afdcf21edec9bdc7ed42b1f-dirty
fubar
parents:
5
diff
changeset
|
131 <output name="bedouthi" value="bedouthi_sample" compare="diff" lines_diff="0"/> |
eb17eb8a3658
planemo upload commit 1baff96e75def9248afdcf21edec9bdc7ed42b1f-dirty
fubar
parents:
5
diff
changeset
|
132 <output name="bedoutlo" value="bedoutlo_sample" compare="diff" lines_diff="0"/> |
eb17eb8a3658
planemo upload commit 1baff96e75def9248afdcf21edec9bdc7ed42b1f-dirty
fubar
parents:
5
diff
changeset
|
133 <output name="tableoutfile" value="table3_sample" compare="diff" lines_diff="0"/> |
eb17eb8a3658
planemo upload commit 1baff96e75def9248afdcf21edec9bdc7ed42b1f-dirty
fubar
parents:
5
diff
changeset
|
134 <param name="outbeds" value="outlohi"/> |
eb17eb8a3658
planemo upload commit 1baff96e75def9248afdcf21edec9bdc7ed42b1f-dirty
fubar
parents:
5
diff
changeset
|
135 <param name="bigwig" value="bigwig_sample"/> |
eb17eb8a3658
planemo upload commit 1baff96e75def9248afdcf21edec9bdc7ed42b1f-dirty
fubar
parents:
5
diff
changeset
|
136 <param name="minwin" value="1"/> |
eb17eb8a3658
planemo upload commit 1baff96e75def9248afdcf21edec9bdc7ed42b1f-dirty
fubar
parents:
5
diff
changeset
|
137 <param name="qhi" value="0.9"/> |
eb17eb8a3658
planemo upload commit 1baff96e75def9248afdcf21edec9bdc7ed42b1f-dirty
fubar
parents:
5
diff
changeset
|
138 <param name="qlo" value="0.1"/> |
eb17eb8a3658
planemo upload commit 1baff96e75def9248afdcf21edec9bdc7ed42b1f-dirty
fubar
parents:
5
diff
changeset
|
139 <param name="tableout" value="create"/> |
eb17eb8a3658
planemo upload commit 1baff96e75def9248afdcf21edec9bdc7ed42b1f-dirty
fubar
parents:
5
diff
changeset
|
140 </test> |
eb17eb8a3658
planemo upload commit 1baff96e75def9248afdcf21edec9bdc7ed42b1f-dirty
fubar
parents:
5
diff
changeset
|
141 <test expect_num_outputs="4"> |
eb17eb8a3658
planemo upload commit 1baff96e75def9248afdcf21edec9bdc7ed42b1f-dirty
fubar
parents:
5
diff
changeset
|
142 <output name="bedouthilo" value="bedouthilo2_sample" compare="diff" lines_diff="0"/> |
eb17eb8a3658
planemo upload commit 1baff96e75def9248afdcf21edec9bdc7ed42b1f-dirty
fubar
parents:
5
diff
changeset
|
143 <output name="bedoutlo" value="bedoutlo2_sample" compare="diff" lines_diff="0"/> |
eb17eb8a3658
planemo upload commit 1baff96e75def9248afdcf21edec9bdc7ed42b1f-dirty
fubar
parents:
5
diff
changeset
|
144 <output name="bedouthi" value="bedouthi2_sample" compare="diff" lines_diff="0"/> |
eb17eb8a3658
planemo upload commit 1baff96e75def9248afdcf21edec9bdc7ed42b1f-dirty
fubar
parents:
5
diff
changeset
|
145 <output name="tableoutfile" value="table2_sample" compare="diff" lines_diff="0"/> |
eb17eb8a3658
planemo upload commit 1baff96e75def9248afdcf21edec9bdc7ed42b1f-dirty
fubar
parents:
5
diff
changeset
|
146 <param name="outbeds" value="outall"/> |
eb17eb8a3658
planemo upload commit 1baff96e75def9248afdcf21edec9bdc7ed42b1f-dirty
fubar
parents:
5
diff
changeset
|
147 <param name="bigwig" value="bigwig_sample,1.bigwig"/> |
eb17eb8a3658
planemo upload commit 1baff96e75def9248afdcf21edec9bdc7ed42b1f-dirty
fubar
parents:
5
diff
changeset
|
148 <param name="minwin" value="1"/> |
eb17eb8a3658
planemo upload commit 1baff96e75def9248afdcf21edec9bdc7ed42b1f-dirty
fubar
parents:
5
diff
changeset
|
149 <param name="qhi" value="0.9"/> |
eb17eb8a3658
planemo upload commit 1baff96e75def9248afdcf21edec9bdc7ed42b1f-dirty
fubar
parents:
5
diff
changeset
|
150 <param name="qlo" value="0.1"/> |
eb17eb8a3658
planemo upload commit 1baff96e75def9248afdcf21edec9bdc7ed42b1f-dirty
fubar
parents:
5
diff
changeset
|
151 <param name="tableout" value="create"/> |
0
c71db540eb38
planemo upload for repository https://github.com/jackh726/bigtools commit ce6b9f638ebcebcad5a5b10219f252962f30e5cc-dirty
fubar
parents:
diff
changeset
|
152 </test> |
c71db540eb38
planemo upload for repository https://github.com/jackh726/bigtools commit ce6b9f638ebcebcad5a5b10219f252962f30e5cc-dirty
fubar
parents:
diff
changeset
|
153 </tests> |
c71db540eb38
planemo upload for repository https://github.com/jackh726/bigtools commit ce6b9f638ebcebcad5a5b10219f252962f30e5cc-dirty
fubar
parents:
diff
changeset
|
154 <help><![CDATA[ |
6
eb17eb8a3658
planemo upload commit 1baff96e75def9248afdcf21edec9bdc7ed42b1f-dirty
fubar
parents:
5
diff
changeset
|
155 |
eb17eb8a3658
planemo upload commit 1baff96e75def9248afdcf21edec9bdc7ed42b1f-dirty
fubar
parents:
5
diff
changeset
|
156 **Purpose** |
eb17eb8a3658
planemo upload commit 1baff96e75def9248afdcf21edec9bdc7ed42b1f-dirty
fubar
parents:
5
diff
changeset
|
157 |
eb17eb8a3658
planemo upload commit 1baff96e75def9248afdcf21edec9bdc7ed42b1f-dirty
fubar
parents:
5
diff
changeset
|
158 *Combine bigwig outlier regions into bed files* |
0
c71db540eb38
planemo upload for repository https://github.com/jackh726/bigtools commit ce6b9f638ebcebcad5a5b10219f252962f30e5cc-dirty
fubar
parents:
diff
changeset
|
159 |
6
eb17eb8a3658
planemo upload commit 1baff96e75def9248afdcf21edec9bdc7ed42b1f-dirty
fubar
parents:
5
diff
changeset
|
160 Bigwigs allow quantative tracks to be viewed in an interactive genome browser like JBrowse2. |
eb17eb8a3658
planemo upload commit 1baff96e75def9248afdcf21edec9bdc7ed42b1f-dirty
fubar
parents:
5
diff
changeset
|
161 Peaks are easy to see. Unusually low regions can be harder to spot, even if they are relatively large, unless the view is zoomed right in. |
eb17eb8a3658
planemo upload commit 1baff96e75def9248afdcf21edec9bdc7ed42b1f-dirty
fubar
parents:
5
diff
changeset
|
162 Automated methods for combining evidence from multiple bigwigs can be useful for constructing browseable *issues* or other kinds of summary bed format tracks. |
eb17eb8a3658
planemo upload commit 1baff96e75def9248afdcf21edec9bdc7ed42b1f-dirty
fubar
parents:
5
diff
changeset
|
163 For example, combining coverage outlier regions, with the frequency of specific dicnucleotide short tandem repeats, |
eb17eb8a3658
planemo upload commit 1baff96e75def9248afdcf21edec9bdc7ed42b1f-dirty
fubar
parents:
5
diff
changeset
|
164 for evaluating technical sequencing technology effects in the evaluation of a genome assembly described at https://github.com/arangrhie/T2T-Polish |
eb17eb8a3658
planemo upload commit 1baff96e75def9248afdcf21edec9bdc7ed42b1f-dirty
fubar
parents:
5
diff
changeset
|
165 |
eb17eb8a3658
planemo upload commit 1baff96e75def9248afdcf21edec9bdc7ed42b1f-dirty
fubar
parents:
5
diff
changeset
|
166 **What does it produce?** |
eb17eb8a3658
planemo upload commit 1baff96e75def9248afdcf21edec9bdc7ed42b1f-dirty
fubar
parents:
5
diff
changeset
|
167 |
eb17eb8a3658
planemo upload commit 1baff96e75def9248afdcf21edec9bdc7ed42b1f-dirty
fubar
parents:
5
diff
changeset
|
168 Bed format results are output, containing each continuous segment of at least *minwin* base pairs above a cut point, or below another cut point. |
eb17eb8a3658
planemo upload commit 1baff96e75def9248afdcf21edec9bdc7ed42b1f-dirty
fubar
parents:
5
diff
changeset
|
169 These can be viewed as features on the reference genome using a genome browser tool like JBrowse2. |
eb17eb8a3658
planemo upload commit 1baff96e75def9248afdcf21edec9bdc7ed42b1f-dirty
fubar
parents:
5
diff
changeset
|
170 Three kinds of bed files can be created depending on the values included. |
eb17eb8a3658
planemo upload commit 1baff96e75def9248afdcf21edec9bdc7ed42b1f-dirty
fubar
parents:
5
diff
changeset
|
171 Both high and low regions in one bed output is the default. This can be displayed in JBrowse2 with colour indicating the high or low status, |
eb17eb8a3658
planemo upload commit 1baff96e75def9248afdcf21edec9bdc7ed42b1f-dirty
fubar
parents:
5
diff
changeset
|
172 one less track and a little easier to understand. High and low features can be output as separate bed files. |
eb17eb8a3658
planemo upload commit 1baff96e75def9248afdcf21edec9bdc7ed42b1f-dirty
fubar
parents:
5
diff
changeset
|
173 |
eb17eb8a3658
planemo upload commit 1baff96e75def9248afdcf21edec9bdc7ed42b1f-dirty
fubar
parents:
5
diff
changeset
|
174 **How is it controlled?** |
eb17eb8a3658
planemo upload commit 1baff96e75def9248afdcf21edec9bdc7ed42b1f-dirty
fubar
parents:
5
diff
changeset
|
175 |
eb17eb8a3658
planemo upload commit 1baff96e75def9248afdcf21edec9bdc7ed42b1f-dirty
fubar
parents:
5
diff
changeset
|
176 The cut points are calculated using a user supplied quantile, from each chromosome's bigwig value distribution. |
eb17eb8a3658
planemo upload commit 1baff96e75def9248afdcf21edec9bdc7ed42b1f-dirty
fubar
parents:
5
diff
changeset
|
177 The defaults are 0.99 and 0.01 and the default *minwin* is 10. |
eb17eb8a3658
planemo upload commit 1baff96e75def9248afdcf21edec9bdc7ed42b1f-dirty
fubar
parents:
5
diff
changeset
|
178 The probability of 10 values at or below the 1st percentile purely by chance is about 0.01**10, so false positives should be |
eb17eb8a3658
planemo upload commit 1baff96e75def9248afdcf21edec9bdc7ed42b1f-dirty
fubar
parents:
5
diff
changeset
|
179 rare, even in a 3GB genome. |
eb17eb8a3658
planemo upload commit 1baff96e75def9248afdcf21edec9bdc7ed42b1f-dirty
fubar
parents:
5
diff
changeset
|
180 This data driven and non-parametric method is preferred for the asymmetrical distributions found in typical bigwigs, such as depth of coverage |
eb17eb8a3658
planemo upload commit 1baff96e75def9248afdcf21edec9bdc7ed42b1f-dirty
fubar
parents:
5
diff
changeset
|
181 for genome sequencing reads. Coverage values are truncated at zero, and regions with very high values often form a long sparse right tail. |
eb17eb8a3658
planemo upload commit 1baff96e75def9248afdcf21edec9bdc7ed42b1f-dirty
fubar
parents:
5
diff
changeset
|
182 |
eb17eb8a3658
planemo upload commit 1baff96e75def9248afdcf21edec9bdc7ed42b1f-dirty
fubar
parents:
5
diff
changeset
|
183 **How do I choose the input data?** |
eb17eb8a3658
planemo upload commit 1baff96e75def9248afdcf21edec9bdc7ed42b1f-dirty
fubar
parents:
5
diff
changeset
|
184 |
eb17eb8a3658
planemo upload commit 1baff96e75def9248afdcf21edec9bdc7ed42b1f-dirty
fubar
parents:
5
diff
changeset
|
185 One or more bigwigs and can be selected as inputs. |
eb17eb8a3658
planemo upload commit 1baff96e75def9248afdcf21edec9bdc7ed42b1f-dirty
fubar
parents:
5
diff
changeset
|
186 Multiple bigwigs will be combined in bed files, so must share the reference genome to display |
eb17eb8a3658
planemo upload commit 1baff96e75def9248afdcf21edec9bdc7ed42b1f-dirty
fubar
parents:
5
diff
changeset
|
187 using JBrowse2. |
eb17eb8a3658
planemo upload commit 1baff96e75def9248afdcf21edec9bdc7ed42b1f-dirty
fubar
parents:
5
diff
changeset
|
188 |
eb17eb8a3658
planemo upload commit 1baff96e75def9248afdcf21edec9bdc7ed42b1f-dirty
fubar
parents:
5
diff
changeset
|
189 .. class:: warningmark |
eb17eb8a3658
planemo upload commit 1baff96e75def9248afdcf21edec9bdc7ed42b1f-dirty
fubar
parents:
5
diff
changeset
|
190 |
eb17eb8a3658
planemo upload commit 1baff96e75def9248afdcf21edec9bdc7ed42b1f-dirty
fubar
parents:
5
diff
changeset
|
191 **Lower quantile may not behave as expected in bigwigs with large fractions of zero values** |
eb17eb8a3658
planemo upload commit 1baff96e75def9248afdcf21edec9bdc7ed42b1f-dirty
fubar
parents:
5
diff
changeset
|
192 |
eb17eb8a3658
planemo upload commit 1baff96e75def9248afdcf21edec9bdc7ed42b1f-dirty
fubar
parents:
5
diff
changeset
|
193 The lower cut point may be problematic for integer values like coverage if many values are zero. For example, if 5% of bases have zero coverage, the 1st percentile is also zero, |
eb17eb8a3658
planemo upload commit 1baff96e75def9248afdcf21edec9bdc7ed42b1f-dirty
fubar
parents:
5
diff
changeset
|
194 but that cut point will include the entire 5% *at or below 0* |
eb17eb8a3658
planemo upload commit 1baff96e75def9248afdcf21edec9bdc7ed42b1f-dirty
fubar
parents:
5
diff
changeset
|
195 |
0
c71db540eb38
planemo upload for repository https://github.com/jackh726/bigtools commit ce6b9f638ebcebcad5a5b10219f252962f30e5cc-dirty
fubar
parents:
diff
changeset
|
196 |
c71db540eb38
planemo upload for repository https://github.com/jackh726/bigtools commit ce6b9f638ebcebcad5a5b10219f252962f30e5cc-dirty
fubar
parents:
diff
changeset
|
197 ]]></help> |
c71db540eb38
planemo upload for repository https://github.com/jackh726/bigtools commit ce6b9f638ebcebcad5a5b10219f252962f30e5cc-dirty
fubar
parents:
diff
changeset
|
198 <citations> |
c71db540eb38
planemo upload for repository https://github.com/jackh726/bigtools commit ce6b9f638ebcebcad5a5b10219f252962f30e5cc-dirty
fubar
parents:
diff
changeset
|
199 <citation type="doi">10.1093/bioinformatics/btae350</citation> |
c71db540eb38
planemo upload for repository https://github.com/jackh726/bigtools commit ce6b9f638ebcebcad5a5b10219f252962f30e5cc-dirty
fubar
parents:
diff
changeset
|
200 </citations> |
c71db540eb38
planemo upload for repository https://github.com/jackh726/bigtools commit ce6b9f638ebcebcad5a5b10219f252962f30e5cc-dirty
fubar
parents:
diff
changeset
|
201 </tool> |
c71db540eb38
planemo upload for repository https://github.com/jackh726/bigtools commit ce6b9f638ebcebcad5a5b10219f252962f30e5cc-dirty
fubar
parents:
diff
changeset
|
202 |