comparison hicPCA.xml @ 14:3b5b54ed6392 draft

"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hicexplorer commit 2a0943e78bdc8ebb13f181399206a9eea37ed78f"
author iuc
date Tue, 16 Mar 2021 15:05:22 +0000
parents c435572f7cf1
children 41dbf4d162a2
comparison
equal deleted inserted replaced
13:0ba4f56a3613 14:3b5b54ed6392
1 <tool id="hicexplorer_hicpca" name="@BINARY@" version="@WRAPPER_VERSION@.0"> 1 <tool id="hicexplorer_hicpca" name="@BINARY@" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@">
2 <description>compute the principal components for A / B compartment analysis</description> 2 <description>compute the principal components for A / B compartment analysis</description>
3 <macros> 3 <macros>
4 <token name="@BINARY@">hicPCA</token> 4 <token name="@BINARY@">hicPCA</token>
5 <import>macros.xml</import> 5 <import>macros.xml</import>
6 </macros> 6 </macros>
56 <option value="bedgraph">bedgraph</option> 56 <option value="bedgraph">bedgraph</option>
57 </param> 57 </param>
58 58
59 <expand macro="chromosome_list" /> 59 <expand macro="chromosome_list" />
60 60
61 <param name='ligation_factor' type='boolean' truevalue='--ligation_factor' label='Multiplies a scaling factor to each entry of the expected matrix to take care of the proximity ligation'/> 61 <param name='ligation_factor' type='boolean' truevalue='--ligation_factor' label='Multiplies a scaling factor to each entry of the expected matrix to take care of the proximity ligation' />
62 <param name='ignoreMaskedBins' type='boolean' truevalue='--ignoreMaskedBins' label='This option removes the masked bins before the PCA is computed'/> 62 <param name='ignoreMaskedBins' type='boolean' truevalue='--ignoreMaskedBins' label='This option removes the masked bins before the PCA is computed' />
63 63
64 <conditional name="extra_track_conditional"> 64 <conditional name="extra_track_conditional">
65 <param name='extra_track_selection' label='Extra track type' type='select'> 65 <param name='extra_track_selection' label='Extra track type' type='select'>
66 <option value='' selected='true'>No track</option> 66 <option value='' selected='true'>No track</option>
67 <option value='gene_density'>Gene density</option> 67 <option value='gene_density'>Gene density</option>
68 <option value='histon_mark'>Histon mark coverage</option> 68 <option value='histon_mark'>Histon mark coverage</option>
69 </param> 69 </param>
70 <when value='gene_density' > 70 <when value='gene_density' >
71 <param name='extraTrack' type='data' format='bed' label='Correlate PCA with e.g. gene density or histon marks to flip sign'/> 71 <param name='extraTrack' type='data' format='bed' label='Correlate PCA with e.g. gene density or histon marks to flip sign' />
72 </when> 72 </when>
73 <when value='histon_mark'> 73 <when value='histon_mark'>
74 <param name='extraTrack' type='data' format='bed' label='Correlate PCA with e.g. gene density or histon marks to flip sign'/> 74 <param name='extraTrack' type='data' format='bed,bigwig' label='Correlate PCA with e.g. gene density or histon marks to flip sign' />
75 <param name='histonMarkType' type='select' label="Histon mark type"> 75 <param name='histonMarkType' type='select' label="Histon mark type">
76 <option value='active' selected="true">active</option> 76 <option value='active' selected="true">active</option>
77 <option value="inactive">inactive</option> 77 <option value="inactive">inactive</option>
78 </param> 78 </param>
79 </when> 79 </when>
80 <when value='' /> 80 <when value='' />
81 </conditional> 81 </conditional>
82 82 <param argument='--pearsonMatrix' type='boolean' truevalue='--pearsonMatrix' falsevalue='' label='Return internally used Pearson matrix' />
83 <param name='pearsonMatrix' type='boolean' truevalue='--pearsonMatrix' falsevalue='' label='Return internally used Pearson matrix'/> 83 <param argument='--obsexpMatrix' type='boolean' truevalue='--obsexpMatrix' falsevalue='' label='Return internally used observed / expected matrix' />
84 <param name='obsexpMatrix' type='boolean' truevalue='--obsexpMatrix' falsevalue='' label='Return internally used observed / expected matrix'/>
85 84
86 </inputs> 85 </inputs>
87 <outputs> 86 <outputs>
88 <data name="pca1" from_work_dir="pca1" format="bigwig" label="${tool.name} on ${matrix_h5_cooler.name} [${on_string}]: PC1"> 87 <data name="pca1" from_work_dir="pca1" format="bigwig" label="${tool.name} on ${matrix_h5_cooler.name} [${on_string}]: PC1">
89 <change_format> 88 <change_format>
90 <when input="outputFormat" value="bedgraph" format="bedgraph" /> 89 <when input="outputFormat" value="bedgraph" format="bedgraph" />
91 </change_format> 90 </change_format>
92 </data> 91 </data>
93 <data name="pca2" from_work_dir="pca2" format="bigwig" label="${tool.name} on ${matrix_h5_cooler.name} [${on_string}]: PC2"> 92 <data name="pca2" from_work_dir="pca2" format="bigwig" label="${tool.name} on ${matrix_h5_cooler.name} [${on_string}]: PC2">
94 <change_format> 93 <change_format>
95 <when input="outputFormat" value="bedgraph" format="bedgraph" /> 94 <when input="outputFormat" value="bedgraph" format="bedgraph" />
96 </change_format> 95 </change_format>
97 </data> 96 </data>
98 97
99 <data name="pearson_outfile" from_work_dir="pearson" format="cool"> 98 <data name="pearson_outfile" from_work_dir="pearson" format="cool">
100 <filter>pearsonMatrix</filter> 99 <filter>pearsonMatrix</filter>
101 <change_format> 100 <change_format>
102 <when input_dataset="matrix_h5_cooler" attribute="ext" value="h5" format="h5"/> 101 <when input_dataset="matrix_h5_cooler" attribute="ext" value="h5" format="h5" />
103 </change_format> 102 </change_format>
104 </data> 103 </data>
105 <data name="obsexp_outfile" from_work_dir="obsexp" format="cool"> 104 <data name="obsexp_outfile" from_work_dir="obsexp" format="cool">
106 <filter>obsexpMatrix</filter> 105 <filter>obsexpMatrix</filter>
107 <change_format> 106 <change_format>
108 <when input_dataset="matrix_h5_cooler" attribute="ext" value="h5" format="h5"/> 107 <when input_dataset="matrix_h5_cooler" attribute="ext" value="h5" format="h5" />
109 </change_format> 108 </change_format>
110 </data> 109 </data>
111 </outputs> 110 </outputs>
112 <tests> 111 <tests>
113 <test> 112 <test>
114 <param name="matrix_h5_cooler" value="small_test_matrix.cool"/> 113 <param name="matrix_h5_cooler" value="small_test_matrix.cool" />
115 <param name="outputFormat" value="bigwig" /> 114 <param name="outputFormat" value="bigwig" />
116 <conditional name="extra_track_conditional"> 115 <conditional name="extra_track_conditional">
117 <param name="extra_track_selection" value=""/> 116 <param name="extra_track_selection" value="" />
118 </conditional> 117 </conditional>
119 118
120 <output name="pca1" file="hicPCA/pca1_test1.bw" ftype="bigwig" compare="sim_size" delta='40000'/> 119 <output name="pca1" file="hicPCA/pca1_test1.bw" ftype="bigwig" compare="sim_size" delta='40000' />
121 <output name="pca2" file="hicPCA/pca2_test1.bw" ftype="bigwig" compare="sim_size" delta='40000'/> 120 <output name="pca2" file="hicPCA/pca2_test1.bw" ftype="bigwig" compare="sim_size" delta='40000' />
122 </test> 121 </test>
123 <test> 122 <test>
124 <param name="matrix_h5_cooler" value="small_test_matrix.cool"/> 123 <param name="matrix_h5_cooler" value="small_test_matrix.cool" />
125 <param name="outputFormat" value="bigwig" /> 124 <param name="outputFormat" value="bigwig" />
126 <param name="ligation_factor" value="True" /> 125 <param name="ligation_factor" value="True" />
127 126
128 <conditional name="extra_track_conditional"> 127 <conditional name="extra_track_conditional">
129 <param name="extra_track_selection" value=""/> 128 <param name="extra_track_selection" value="" />
130 </conditional> 129 </conditional>
131 130
132 <output name="pca1" file="hicPCA/pca1_test1.bw" ftype="bigwig" compare="sim_size" delta='40000'/> 131 <output name="pca1" file="hicPCA/pca1_test1.bw" ftype="bigwig" compare="sim_size" delta='40000' />
133 <output name="pca2" file="hicPCA/pca2_test1.bw" ftype="bigwig" compare="sim_size" delta='40000'/> 132 <output name="pca2" file="hicPCA/pca2_test1.bw" ftype="bigwig" compare="sim_size" delta='40000' />
134 </test> 133 </test>
135 <test> 134 <test>
136 <param name="matrix_h5_cooler" value="small_test_matrix.cool"/> 135 <param name="matrix_h5_cooler" value="small_test_matrix.cool" />
137 <param name="outputFormat" value="bigwig" /> 136 <param name="outputFormat" value="bigwig" />
138 <param name="ignoreMaskedBins" value="True" /> 137 <param name="ignoreMaskedBins" value="True" />
139 138
140 <conditional name="extra_track_conditional"> 139 <conditional name="extra_track_conditional">
141 <param name="extra_track_selection" value=""/> 140 <param name="extra_track_selection" value="" />
142 </conditional> 141 </conditional>
143 142
144 <output name="pca1" file="hicPCA/pca1_test1.bw" ftype="bigwig" compare="sim_size" delta='60000'/> 143 <output name="pca1" file="hicPCA/pca1_test1.bw" ftype="bigwig" compare="sim_size" delta='60000' />
145 <output name="pca2" file="hicPCA/pca2_test1.bw" ftype="bigwig" compare="sim_size" delta='60000'/> 144 <output name="pca2" file="hicPCA/pca2_test1.bw" ftype="bigwig" compare="sim_size" delta='60000' />
146 </test> 145 </test>
147 <test> 146 <test>
148 <param name="matrix_h5_cooler" value="small_test_matrix.h5"/> 147 <param name="matrix_h5_cooler" value="small_test_matrix.h5" />
149 <param name="outputFormat" value="bigwig" /> 148 <param name="outputFormat" value="bigwig" />
150 <conditional name="extra_track_conditional"> 149 <conditional name="extra_track_conditional">
151 <param name="extra_track_selection" value="gene_density"/> 150 <param name="extra_track_selection" value="gene_density" />
152 <param name="extraTrack" value="dm3_genes.bed.gz" /> 151 <param name="extraTrack" value="dm3_genes.bed.gz" />
153 </conditional> 152 </conditional>
154 153
155 <repeat name="chromosome_list"> 154 <repeat name="chromosome_list">
156 <param name="chromosomes" value="chrX"/> 155 <param name="chromosomes" value="chrX" />
157 </repeat> 156 </repeat>
158 <repeat name="chromosome_list"> 157 <repeat name="chromosome_list">
159 <param name="chromosomes" value="chrXHet"/> 158 <param name="chromosomes" value="chrXHet" />
160 </repeat> 159 </repeat>
161 160
162 <output name="pca1" file="hicPCA/pca1_test2.bw" ftype="bigwig" compare="sim_size" delta='40000'/> 161 <output name="pca1" file="hicPCA/pca1_test2.bw" ftype="bigwig" compare="sim_size" delta='40000' />
163 <output name="pca2" file="hicPCA/pca2_test2.bw" ftype="bigwig" compare="sim_size" delta='40000'/> 162 <output name="pca2" file="hicPCA/pca2_test2.bw" ftype="bigwig" compare="sim_size" delta='40000' />
164 </test> 163 </test>
165 <test> 164 <test>
166 <param name="matrix_h5_cooler" value="small_test_matrix.h5"/> 165 <param name="matrix_h5_cooler" value="small_test_matrix.h5" />
167 166
168 <param name="outputFormat" value="bigwig" /> 167 <param name="outputFormat" value="bigwig" />
169 <conditional name="extra_track_conditional"> 168 <conditional name="extra_track_conditional">
170 <param name="extra_track_selection" value=""/> 169 <param name="extra_track_selection" value="" />
171 </conditional> 170 </conditional>
172 <param name='pearsonMatrix' value='True'/> 171 <param name='pearsonMatrix' value='True' />
173 <param name='obsexpMatrix' value='True'/> 172 <param name='obsexpMatrix' value='True' />
174 173
175 <repeat name="chromosome_list"> 174 <repeat name="chromosome_list">
176 <param name="chromosomes" value="chrX"/> 175 <param name="chromosomes" value="chrX" />
177 </repeat> 176 </repeat>
178 <repeat name="chromosome_list"> 177 <repeat name="chromosome_list">
179 <param name="chromosomes" value="chrXHet"/> 178 <param name="chromosomes" value="chrXHet" />
180 </repeat> 179 </repeat>
181 180
182 <output name="pca1" file="hicPCA/pca1_test3.bw" ftype="bigwig" compare="sim_size" delta='40000'/> 181 <output name="pca1" file="hicPCA/pca1_test3.bw" ftype="bigwig" compare="sim_size" delta='40000' />
183 <output name="pca2" file="hicPCA/pca2_test3.bw" ftype="bigwig" compare="sim_size" delta='40000'/> 182 <output name="pca2" file="hicPCA/pca2_test3.bw" ftype="bigwig" compare="sim_size" delta='40000' />
184 183
185 <output name="pearson_outfile" ftype="h5"> 184 <output name="pearson_outfile" ftype="h5">
186 <assert_contents> 185 <assert_contents>
187 <has_h5_keys keys='intervals,matrix'/> 186 <has_h5_keys keys='intervals,matrix' />
188 </assert_contents> 187 </assert_contents>
189 </output> 188 </output>
190 <output name="obsexp_outfile" ftype="h5"> 189 <output name="obsexp_outfile" ftype="h5">
191 <assert_contents> 190 <assert_contents>
192 <has_h5_keys keys='intervals,matrix'/> 191 <has_h5_keys keys='intervals,matrix' />
193 </assert_contents> 192 </assert_contents>
194 </output> 193 </output>
195 </test> 194 </test>
196 </tests> 195 </tests>
197 <help><![CDATA[ 196 <help><![CDATA[
197
198 Principal component analysis 198 Principal component analysis
199 ============================ 199 ============================
200 200
201 `Lieberman-Aiden et al. (2009)`_ demonstrated that open and closed chromatin domains throughout the genome occupy different spatial compartments in the nucleus, defined as A (activate) and B (inactive) compartments. 201 `Lieberman-Aiden et al. (2009)`_ demonstrated that open and closed chromatin domains throughout the genome occupy different spatial compartments in the nucleus, defined as A (activate) and B (inactive) compartments.
202 202
227 227
228 | For more information about HiCExplorer please consider our documentation on readthedocs.io_ 228 | For more information about HiCExplorer please consider our documentation on readthedocs.io_
229 229
230 .. _readthedocs.io: http://hicexplorer.readthedocs.io/en/latest/index.html 230 .. _readthedocs.io: http://hicexplorer.readthedocs.io/en/latest/index.html
231 .. _`Lieberman-Aiden et al. (2009)`: https://doi.org/10.1126%2Fscience.1181369 231 .. _`Lieberman-Aiden et al. (2009)`: https://doi.org/10.1126%2Fscience.1181369
232 ]]></help> 232 ]]> </help>
233 <expand macro="citations" /> 233 <expand macro="citations" />
234 </tool> 234 </tool>