diff homer_findMotifsGenome.xml @ 2:a8f207b43f64 draft

"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/homer commit 186b72f369eb2a11d92f4d63cac2e8ebe386b9bd"
author iuc
date Mon, 13 Dec 2021 15:14:25 +0000
parents 3126da33847c
children 4fe92af4542b
line wrap: on
line diff
--- a/homer_findMotifsGenome.xml	Sun Sep 26 12:29:15 2021 +0000
+++ b/homer_findMotifsGenome.xml	Mon Dec 13 15:14:25 2021 +0000
@@ -115,20 +115,24 @@
     $advanced.homer12.quickMask
     -minlp '$advanced.homer12.minlp'
 #elif str( $advanced.homer12.version ) == "homer1":
+    -homer1
     -depth '$advanced.homer12.depth'
 #end if
 #if str( $background.use ) == "none":
     #if not $nomotif:
-        && cp '${output}'/homerResults.html outputHomer.html
+        && cp '${output}/homerResults.html' outputHomer.html
         && cp -r '${output}' '${html_homer_file.files_path}'
+        && cp -r '${output}/homerResults' homerResults
     #end if
     #if not $motif_options.noknown:
-        && cp '${output}'/knownResults.html outputKnown.html
+        && cp '${output}/knownResults.html' outputKnown.html
         && cp -r '${output}' '${html_file.files_path}'
+        && cp -r '${output}/knownResults' knownResults
     #end if
 #else
-   && cp '${output}'/homerResults.html outputHomer.html
+   && cp '${output}/homerResults.html' outputHomer.html
    && cp -r '${output}' '${html_homer_file.files_path}'
+   && cp -r '${output}/homerResults' homerResults
 #end if
         ]]></command>
     <inputs>
@@ -255,12 +259,21 @@
             <filter>motif_options['noknown'] is False</filter>
             <filter>background['use'] == "none"</filter>
         </data>
+        <collection name="output_collection_known" type="list" label="${tool.name} on ${on_string}: Known motifs files">
+            <discover_datasets directory="knownResults" pattern="(?P&lt;designation&gt;.+)\.motif" format="txt" visible="false"/>
+            <filter>motif_options['noknown'] is False</filter>
+            <filter>background['use'] == "none"</filter>
+        </collection>
         <data format="html" name="html_homer_file" from_work_dir="outputHomer.html" label="${tool.name} on ${on_string}: De novo motifs">
             <filter>nomotif is False</filter>
         </data>
+        <collection name="output_collection_de_novo" type="list" label="${tool.name} on ${on_string}: De novo motifs files">
+            <discover_datasets directory="homerResults" pattern="(?P&lt;designation&gt;.+)\.motif" format="txt" visible="false"/>
+            <filter>nomotif is False</filter>
+        </collection>
     </outputs>
     <tests>
-        <test expect_num_outputs="2">
+        <test expect_num_outputs="4">
             <param name="input" value="fake_phix_peaks.bed"/>
             <conditional name="genome">
                 <param name="source" value="installed"/>
@@ -271,58 +284,97 @@
                 <assert_contents>
                     <has_text text="fake_phix_peaks_bed_motif/ - Homer de novo Motif Results"/>
                     <has_text text="Total target sequences = 1"/>
-                    <has_text text="Jaspar"/>
+                    <!-- This is too much impredictible -->
+                    <!-- <has_text text="Jaspar"/> -->
                 </assert_contents>
             </output>
+            <output_collection name="output_collection_known" type="list" count="0">
+            </output_collection>
+            <output_collection name="output_collection_de_novo" type="list">
+                <element name="motif1">
+                    <assert_contents>
+                        <has_text text=">"/>
+                    </assert_contents>
+                </element>
+            </output_collection>
         </test>
-        <test expect_num_outputs="2">
+        <test expect_num_outputs="4">
             <param name="input" value="CTCF_peaks_shifted.bed"/>
             <conditional name="genome">
                 <param name="source" value="history"/>
-                <param name="fasta" value="chr2_subset.fa"/>
+                <param name="fasta" value="chr2_subset.fa.gz"/>
             </conditional>
             <output name="html_file">
                 <assert_contents>
                     <has_text text="CTCF_peaks_shifted_bed_motif - Homer Known Motif Enrichment Results"/>
-                    <has_text text="Total Target Sequences = 40"/>
+                    <has_text text="Total Target Sequences = 24"/>
                     <has_text text="CTCF(Zf)/CD4+-CTCF-ChIP-Seq(Barski_et_al.)/Homer"/>
                 </assert_contents>
             </output>
             <output name="html_homer_file">
                 <assert_contents>
                     <has_text text="CTCF_peaks_shifted_bed_motif/ - Homer de novo Motif Results"/>
-                    <has_text text="Total target sequences = 40"/>
+                    <has_text text="Total target sequences = 24"/>
                     <has_text_matching expression="CTCF(Zf)|CTCF/MA|BORIS|CTCFL"/>
                 </assert_contents>
             </output>
+            <output_collection name="output_collection_known" type="list">
+                <element name="known1">
+                    <assert_contents>
+                        <has_text text=">"/>
+                    </assert_contents>
+                </element>
+            </output_collection>
+            <output_collection name="output_collection_de_novo" type="list">
+                <element name="motif1">
+                    <assert_contents>
+                        <has_text text=">"/>
+                    </assert_contents>
+                </element>
+            </output_collection>
         </test>
-        <test expect_num_outputs="2">
+        <test expect_num_outputs="4">
             <param name="input" value="CTCF_peaks_shifted.bed"/>
             <param name="mask" value="true"/>
             <conditional name="genome">
                 <param name="source" value="history"/>
-                <param name="fasta" value="chr2_subset.fa"/>
+                <param name="fasta" value="chr2_subset.fa.gz"/>
             </conditional>
             <output name="html_file">
                 <assert_contents>
                     <has_text text="CTCF_peaks_shifted_bed_motif - Homer Known Motif Enrichment Results"/>
-                    <has_text text="Total Target Sequences = 34"/>
+                    <has_text text="Total Target Sequences = 18"/>
                     <has_text text="CTCF(Zf)/CD4+-CTCF-ChIP-Seq(Barski_et_al.)/Homer"/>
                 </assert_contents>
             </output>
             <output name="html_homer_file">
                 <assert_contents>
                     <has_text text="CTCF_peaks_shifted_bed_motif/ - Homer de novo Motif Results"/>
-                    <has_text text="Total target sequences = 34"/>
-                    <has_text_matching expression="CTCF(Zf)|CTCF/MA|BORIS|CTCFL"/>
+                    <has_text text="Total target sequences = 18"/>
+                    <!-- This is too much impredictible -->
+                    <!-- <has_text_matching expression="CTCF(Zf)|CTCF/MA|BORIS|CTCFL|NFATC2"/> -->
                 </assert_contents>
             </output>
+            <output_collection name="output_collection_known" type="list">
+                <element name="known1">
+                    <assert_contents>
+                        <has_text text=">"/>
+                    </assert_contents>
+                </element>
+            </output_collection>
+            <output_collection name="output_collection_de_novo" type="list">
+                <element name="motif1">
+                    <assert_contents>
+                        <has_text text=">"/>
+                    </assert_contents>
+                </element>
+            </output_collection>
         </test>
-        <test expect_num_outputs="1">
+        <test expect_num_outputs="2">
             <param name="input" value="CTCF_peaks_shifted.bed"/>
             <conditional name="genome">
                 <param name="source" value="history"/>
-                <param name="fasta" value="chr2_subset.fa"/>
+                <param name="fasta" value="chr2_subset.fa.gz"/>
             </conditional>
             <section name="motif_options">
                 <param name="mset" value="plants"/>
@@ -331,13 +383,14 @@
             <output name="html_file">
                 <assert_contents>
                     <has_text text="CTCF_peaks_shifted_bed_motif - Homer Known Motif Enrichment Results"/>
-                    <has_text text="Total Target Sequences = 40"/>
-                    <has_text text="RAP26"/>
+                    <has_text text="Total Target Sequences = 24"/>
                 </assert_contents>
             </output>
+            <output_collection name="output_collection_known" type="list" count="0">
+            </output_collection>
         </test>
         <!-- background tests -->
-        <test expect_num_outputs="1">
+        <test expect_num_outputs="2">
             <param name="input" value="fake_phix_peaks.bed"/>
             <conditional name="genome">
                 <param name="source" value="installed"/>
@@ -353,8 +406,15 @@
                     <has_text text="Yeast"/>
                 </assert_contents>
             </output>
+            <output_collection name="output_collection_de_novo" type="list">
+                <element name="motif1">
+                    <assert_contents>
+                        <has_text text=">"/>
+                    </assert_contents>
+                </element>
+            </output_collection>
         </test>
-        <test expect_num_outputs="1">
+        <test expect_num_outputs="2">
             <param name="input" value="fake_phix_peaks.bed"/>
             <conditional name="genome">
                 <param name="source" value="installed"/>
@@ -370,6 +430,13 @@
                     <has_text text="YAP5"/>
                 </assert_contents>
             </output>
+            <output_collection name="output_collection_de_novo" type="list">
+                <element name="motif1">
+                    <assert_contents>
+                        <has_text text=">"/>
+                    </assert_contents>
+                </element>
+            </output_collection>
         </test>
     </tests>
     <help><![CDATA[