Repository 'msp_sr_readmap_and_size_histograms'
hg clone https://toolshed.g2.bx.psu.edu/repos/drosofff/msp_sr_readmap_and_size_histograms

Changeset 6:68f58363f1c6 (2016-02-04)
Previous changeset 5:bcc0c7093e7a (2016-02-04) Next changeset 7:c9e267cb84c0 (2016-09-18)
Commit message:
planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/msp_sr_readmap_and_size_histograms commit 78fca5d46c4554514bc51b0010a7611aaced40b9-dirty
modified:
readmap.xml
b
diff -r bcc0c7093e7a -r 68f58363f1c6 readmap.xml
--- a/readmap.xml Thu Feb 04 06:27:43 2016 -0500
+++ b/readmap.xml Thu Feb 04 08:41:48 2016 -0500
b
@@ -1,4 +1,4 @@
-<tool id="Readmap" name="Generate readmap and histograms from alignment files" version="1.1.3">
+<tool id="Readmap" name="Generate readmap and histograms from alignment files" version="1.1.5">
   <description>from sRbowtie aligment</description>
   <requirements>
         <requirement type="package" version="0.12.7">bowtie</requirement>
@@ -158,7 +158,7 @@
       ## GRAPHS
 
       if (n_genes > 7) {page_height_simple = 11.69; page_height_combi=11.69; rows_per_page=${rows_per_page}; extrarow=0 } else {
-                         rows_per_page= 8; page_height_simple = 11.69; page_height_combi=11.69; extrarow=0 }
+                         rows_per_page= n_genes; page_height_simple = 2.5*n_genes; page_height_combi=page_height_simple*2; extrarow=0 }
                          ## rows_per_page= 8; page_height_simple = 11.69/7*n_genes; page_height_combi=11.69/9*(n_genes*2); extrarow=0 }
                          ## rows_per_page= n_genes; page_height_simple = 11.69/n_genes/4; page_height_combi=11.69/(n_genes*2); extrarow=1 }
      if (n_samples > 4) {page_width = 8.2677*n_samples/4} else {page_width = 8.2677*n_samples/3} # to test
@@ -198,6 +198,7 @@
       devname=dev.off()
 
       pdf(file="${combi_PDF}", paper="special", height=page_height_combi, width=page_width)
+      if (rows_per_page %% 2 != 0) { rows_per_page = rows_per_page + 1}
       for (i in seq(1,n_genes,rows_per_page/2)) {
         start=i
         end=i+rows_per_page/2-1