comparison build_matrix.xml @ 1:31a21ba2c5ea draft default tip

planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/episcanpy/ commit bb79cb8cad3bc1433bff7caf9d7b45e7993dd470
author iuc
date Sat, 22 Apr 2023 12:14:00 +0000
parents 1bf008d6d54e
children
comparison
equal deleted inserted replaced
0:1bf008d6d54e 1:31a21ba2c5ea
16 ]]></command> 16 ]]></command>
17 <configfiles> 17 <configfiles>
18 <configfile name="script_file"><![CDATA[ 18 <configfile name="script_file"><![CDATA[
19 @CMD_imports@ 19 @CMD_imports@
20 peaks = esc.ct.load_peaks('$peaks_file') 20 peaks = esc.ct.load_peaks('$peaks_file')
21 esc.ct.norm_peaks(peaks, extension=$extension) 21 #if $peak_size.normalize == 'yes'
22 esc.ct.norm_peaks(peaks, extension=$peak_size.extension)
23 #end if
22 esc.ct.bld_mtx_bed( 24 esc.ct.bld_mtx_bed(
23 fragment_file='fragments.gz', 25 fragment_file='fragments.gz',
24 feature_region=peaks, 26 feature_region=peaks,
25 #if $reference_chr.chr_select == 'custom' 27 #if $reference_chr.chr_select == 'custom'
26 #set $chromosomes = ([x.strip() for x in str($reference_chr.chromosomes).split(',')]) 28 #set $chromosomes = ([x.strip() for x in str($reference_chr.chromosomes).split(',')])
32 ]]></configfile> 34 ]]></configfile>
33 </configfiles> 35 </configfiles>
34 <inputs> 36 <inputs>
35 <param name="fragment_file" type="data" format="bed" label="ATAC fragments file" /> 37 <param name="fragment_file" type="data" format="bed" label="ATAC fragments file" />
36 <param name="peaks_file" type="data" format="tabular" label="Features file" help="Peaks BED file or MACS2 narrowPeak file"/> 38 <param name="peaks_file" type="data" format="tabular" label="Features file" help="Peaks BED file or MACS2 narrowPeak file"/>
37 <param name="extension" type="integer" value="0" min="0" label="Number of bases to extend both sides of peaks" /> 39 <conditional name="peak_size">
40 <param name="normalize" type="select" label="Normalize peak sizes?" >
41 <option value="no" selected="true">No, keep the peaks as they are</option>
42 <option value="yes">Yes, normalize the peaks to equal length from the center</option>
43 </param>
44 <when value="no" />
45 <when value="yes">
46 <param name="extension" type="integer" value="0" min="0" label="Number of bases to extend both sides from the center of the peak" help="All resulting peaks will have the same length"/>
47 </when>
48 </conditional>
38 <conditional name="reference_chr"> 49 <conditional name="reference_chr">
39 <param name="chr_select" type="select" label="Select the chromosomes of the species you are considering" > 50 <param name="chr_select" type="select" label="Select the chromosomes of the species you are considering" >
40 <option value="human">Human chromosomes ['1', '2', '3', ... , '22', 'X', 'Y']</option> 51 <option value="human">Human chromosomes ['1', '2', '3', ... , '22', 'X', 'Y']</option>
41 <option value="mouse">Mouse chromosomes ['1', '2', '3', ... ', '19', 'X', 'Y']</option> 52 <option value="mouse">Mouse chromosomes ['1', '2', '3', ... ', '19', 'X', 'Y']</option>
42 <option value="custom">Custom list of chromosomes</option> 53 <option value="custom">Custom list of chromosomes</option>
57 <filter>advanced_common['show_log']</filter> 68 <filter>advanced_common['show_log']</filter>
58 </data> 69 </data>
59 </outputs> 70 </outputs>
60 <tests> 71 <tests>
61 <test expect_num_outputs="2"> 72 <test expect_num_outputs="2">
62 <!-- count matrix --> 73 <!-- default params -->
63 <param name="fragment_file" value="chrY.fragments.bed" /> 74 <param name="fragment_file" value="chrY.fragments.bed" />
64 <param name="peaks_file" value="chrY.peaks.bed" /> 75 <param name="peaks_file" value="chrY.peaks.bed" />
65 <conditional name="reference_chr"> 76 <conditional name="reference_chr">
66 <param name="chr_select" value="custom" /> 77 <param name="chr_select" value="custom" />
67 <param name="chromosomes" value="Y" /> 78 <param name="chromosomes" value="Y" />
68 </conditional> 79 </conditional>
69 <section name="advanced_common"> 80 <section name="advanced_common">
70 <param name="show_log" value="true" /> 81 <param name="show_log" value="true" />
71 </section> 82 </section>
72 <output name="anndata_out" file="chrY.h5ad" ftype="h5ad" compare="sim_size"/> 83 <output name="anndata_out" file="chrY.h5ad" ftype="h5ad" compare="sim_size"/>
84 </test>
85 <test expect_num_outputs="2">
86 <!-- normalized peaks -->
87 <param name="fragment_file" value="chrY.fragments.bed" />
88 <param name="peaks_file" value="chrY.peaks.bed" />
89 <conditional name="peak_size">
90 <param name="normalize" value="yes" />
91 <param name="extension" value="250" />
92 </conditional>
93 <conditional name="reference_chr">
94 <param name="chr_select" value="custom" />
95 <param name="chromosomes" value="Y" />
96 </conditional>
97 <section name="advanced_common">
98 <param name="show_log" value="true" />
99 </section>
100 <output name="anndata_out" file="chrY_norm_peaks.h5ad" ftype="h5ad" compare="sim_size"/>
73 </test> 101 </test>
74 </tests> 102 </tests>
75 <help> 103 <help>
76 .. class:: infomark 104 .. class:: infomark
77 105