diff qualimap_bamqc.xml @ 1:4a89c6f84425 draft

"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/qualimap commit 08beeabf7a8e91d0e95f5cdb71249dd6efe2bd46"
author iuc
date Tue, 29 Oct 2019 09:14:20 -0400
parents ac607906f10a
children 5f8e69cc4c6e
line wrap: on
line diff
--- a/qualimap_bamqc.xml	Thu Oct 10 17:42:04 2019 -0400
+++ b/qualimap_bamqc.xml	Tue Oct 29 09:14:20 2019 -0400
@@ -1,4 +1,4 @@
-<tool id="qualimap_bamqc" name="QualiMap BamQC" version="@VERSION@">
+<tool id="qualimap_bamqc" name="QualiMap BamQC" version="@VERSION@+galaxy1">
     <macros>
         <import>qualimap_macros.xml</import>
     </macros>
@@ -21,11 +21,12 @@
         ## from $out_dir.
         #set $per_base_coverage_target = $coverage_file
 
-        qualimap bamqc
-        -bam '$input1' -outdir results -outformat html
-        --collect-overlap-pairs
         #if str($stats_regions.region_select) == 'custom_regions':
-            -gff ${stats_regions.regions}
+            ## Have qualimap detect file format by suffix
+            ## since its autodetection is unreliable.
+            #set $regions_file = '.'.join(['regions', str($stats_regions.regions.ext)])
+            ln -s '${stats_regions.regions}' ${regions_file} &&
+
             #if $stats_regions.outside_stats:
                 #set $report_name = 'qualimapReportOutsideRegions'
                 #set $summary_report = 'outside_results.txt'
@@ -35,9 +36,15 @@
                 #if $per_base_coverage:
                     #set $per_base_coverage_target = '/dev/null'
                 #end if
-                ${stats_regions.outside_stats}
             #end if
         #end if
+
+        qualimap bamqc
+        -bam '$input1' -outdir results -outformat html
+        --collect-overlap-pairs
+        #if str($stats_regions.region_select) == 'custom_regions':
+            -gff ${regions_file} ${stats_regions.outside_stats}
+        #end if
         #if $per_base_coverage:
             $per_base_coverage $per_base_coverage_target
         #end if