changeset 11:a561a71bd7d7 draft

planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/small_rna_maps commit c24bbb6d53574eb1c1eb8d219cf2a39a9ed5b3ff
author artbio
date Tue, 06 Mar 2018 06:11:55 -0500
parents c3fb2a864526
children d33263e6e812
files small_rna_maps.r small_rna_maps.xml test-data/count-coverage.pdf test-data/count-mean-20-30.pdf test-data/count-mean.pdf test-data/count-median.pdf test-data/count-size.pdf test-data/count.pdf test-data/count_1.pdf test-data/count_1_chr.tab test-data/count_5_chr.tab test-data/count_cluster_5.pdf test-data/count_single_chr.tab test-data/counts_coverage_1.pdf test-data/counts_coverage_5.pdf test-data/coverage.pdf test-data/coverage_1_chr.tab test-data/coverage_5_chr.tab test-data/coverage_normed.pdf test-data/doubled_count-mean.pdf test-data/input_5_chr.bam test-data/input_single_chr.bam test-data/single_chr-count-size.pdf test-data/size-count.pdf test-data/size-count_normed.pdf test-data/size.pdf test-data/size_single_chr.tab
diffstat 27 files changed, 561 insertions(+), 67 deletions(-) [+]
line wrap: on
line diff
--- a/small_rna_maps.r	Tue Nov 07 17:38:39 2017 -0500
+++ b/small_rna_maps.r	Tue Mar 06 06:11:55 2018 -0500
@@ -43,7 +43,7 @@
         i = i + 1
     }
 }
-genes=unique(levels(Table$Chromosome))
+genes=unique(Table$Chromosome)
 per_gene_readmap=lapply(genes, function(x) subset(Table, Chromosome==x))
 per_gene_limit=lapply(genes, function(x) c(1, unique(subset(Table, Chromosome==x)$Chrom_length)) )
 n_genes=length(per_gene_readmap)
@@ -147,62 +147,6 @@
     combineLimits(p)
 }
 
-plot_single <- function(df, method=args$first_plot_method, rows_per_page=rows_per_page, ...) {
-    if (method == 'Counts') {
-        p = xyplot(Counts~Coordinate|factor(Dataset, levels=unique(Dataset))+factor(Chromosome, levels=unique(Chromosome)),
-                   data=df,
-                   type='h',
-                   lwd=1.5,
-                   scales= list(relation="free", x=list(rot=0, cex=0.7, axs="i", tck=0.5), y=list(tick.number=4, rot=90, cex=0.7)),
-                   xlab=list(label=bottom_first_method[[args$first_plot_method]], cex=.85),
-                   ylab=list(label=legend_first_method[[args$first_plot_method]], cex=.85),
-                   main=title_first_method[[args$first_plot_method]],
-                   origin = 0,
-                   group=Polarity,
-                   col=c("red","blue"),
-                   par.strip.text = list(cex=0.7),
-                   as.table=T,
-                   ...)
-        p = update(useOuterStrips(p, strip.left=strip.custom(par.strip.text = list(cex=0.5))), layout=c(n_samples, rows_per_page))
-        return(p)
-    } else if (method != "Size") {
-        p = xyplot(eval(as.name(method))~Coordinate|factor(Dataset, levels=unique(Dataset))+factor(Chromosome, levels=unique(Chromosome)),
-                   data=df,
-                   type='p',
-                   pch=19,
-                   cex=0.35,
-                   scales= list(relation="free", x=list(rot=0, cex=0.7, axs="i", tck=0.5), y=list(tick.number=4, rot=90, cex=0.7)),
-                   xlab=list(label=bottom_first_method[[args$first_plot_method]], cex=.85),
-                   ylab=list(label=legend_first_method[[args$first_plot_method]], cex=.85),
-                   main=title_first_method[[args$first_plot_method]],
-                   origin = 0,
-                   group=Polarity,
-                   col=c("red","blue"),
-                   par.strip.text = list(cex=0.7),
-                   as.table=T,
-                   ...)
-        p = update(useOuterStrips(p, strip.left=strip.custom(par.strip.text = list(cex=0.5))), layout=c(n_samples, rows_per_page))
-        return(p)
-    } else {
-        p= barchart(Counts~as.factor(Size)|factor(Dataset, levels=unique(Dataset))+Chromosome, data = df, origin = 0,
-                    horizontal=FALSE,
-                    group=Polarity,
-                    stack=TRUE,
-                    col=c('red', 'blue'),
-                    scales=list(y=list(tick.number=4, rot=90, relation="free", cex=0.5, alternating=T), x=list(rot=0, cex=0.6, tck=0.5, alternating=c(3,3))),
-                    xlab=list(label=bottom_first_method[[args$first_plot_method]], cex=.85),
-                    ylab=list(label=legend_first_method[[args$first_plot_method]], cex=.85),
-                    main=title_first_method[[args$first_plot_method]],
-                    par.strip.text = list(cex=0.7),
-                    nrow = 8,
-                    as.table=TRUE,
-                    ...)
-          p = update(useOuterStrips(p, strip.left=strip.custom(par.strip.text = list(cex=0.5))), layout=c(n_samples, rows_per_page))
-          p = combineLimits(p, extend=TRUE)
-          return (p)
-        }
-}
-
 ## function parameters
 
 #par.settings.firstplot = list(layout.heights=list(top.padding=11, bottom.padding = -14))
@@ -220,20 +164,22 @@
 ## Plotting Functions
 
 double_plot <- function(...) {
-    if (n_genes > 5) {page_height=15; rows_per_page=10} else {
-                     rows_per_page= 2 * n_genes; page_height=1.5*n_genes}
-    if (n_samples > 4) {page_width = 8.2677*n_samples/4} else {page_width = 7 * n_samples/2}
+    page_height = 15
+    rows_per_page = 10
+    graph_heights=c(40,30,40,30,40,30,40,30,40,30,10)
+    if (n_samples > 4) {page_width = 8.2677*n_samples/4} else {page_width = 2.3*n_samples +2.5}
     pdf(file=args$output_pdf, paper="special", height=page_height, width=page_width)
     for (i in seq(1,n_genes,rows_per_page/2)) {
         start=i
         end=i+rows_per_page/2-1
         if (end>n_genes) {end=n_genes}
+        if (end-start+1 < 5) {graph_heights=c(rep(c(40,30),end-start+1),10,rep(c(40,30),5-(end-start+1)))}
         first_plot.list = lapply(per_gene_readmap[start:end], function(x) plot_unit(x, strip=FALSE, par.settings=par.settings.firstplot))
         second_plot.list = lapply(per_gene_size[start:end], function(x) plot_unit(x, method=args$extra_plot_method, par.settings=par.settings.secondplot))
         plot.list=rbind(second_plot.list, first_plot.list)
-        args_list=c(plot.list, list( nrow=rows_per_page+1, ncol=1,  heights=unit(c(40,30,40,30,40,30,40,30,40,30,10), rep("mm", 11)),
+        args_list=c(plot.list, list( nrow=rows_per_page+1, ncol=1, heights=unit(graph_heights, rep("mm", 11)),
                                     top=textGrob(paste(title_first_method[[args$first_plot_method]], "and", title_extra_method[[args$extra_plot_method]]), gp=gpar(cex=1), vjust=0, just="top"),
-                                    left=textGrob(paste(legend_first_method[[args$first_plot_method]], "/", legend_extra_method[[args$extra_plot_method]]), gp=gpar(cex=1), vjust=2, rot=90),
+                                    left=textGrob(paste(legend_first_method[[args$first_plot_method]], "/", legend_extra_method[[args$extra_plot_method]]), gp=gpar(cex=1), just=0.675*(end-start-(2.2*(4/2.7))),vjust=2, rot=90),
                                     sub=textGrob(paste(bottom_first_method[[args$first_plot_method]], "/", bottom_extra_method[[args$extra_plot_method]]), gp=gpar(cex=1), just="bottom", vjust=2)
                                     )
                    )
@@ -246,14 +192,22 @@
 single_plot <- function(...) {
     width = 8.2677 * n_samples / 2
     rows_per_page=8
-    pdf(file=args$output_pdf, paper="special", height=11.69, width=width)
+    graph_heights=c(rep(40,8),10)
+    pdf(file=args$output_pdf, paper="special", height=15, width=width)
     for (i in seq(1,n_genes,rows_per_page)) {
         start=i
         end=i+rows_per_page-1
         if (end>n_genes) {end=n_genes}
-        bunch = do.call(rbind, per_gene_readmap[start:end]) # sub dataframe from the list
-        p = plot_single(bunch, method=args$first_plot_method, par.settings=par.settings.single_plot, rows_per_page=rows_per_page)
-        plot(p)
+        if (end-start+1 < 8) {graph_heights=c(rep(c(40),end-start+1),10,rep(c(40),8-(end-start+1)))}
+        first_plot.list = lapply(per_gene_readmap[start:end], function(x) plot_unit(x, par.settings=par.settings.firstplot))
+        plot.list=rbind(first_plot.list)
+        args_list=c(plot.list, list( nrow=rows_per_page+1, ncol=1, heights=unit(graph_heights, rep("mm", 9)),
+                                    top=textGrob(title_first_method[[args$first_plot_method]], gp=gpar(cex=1), vjust=0, just="top"),
+                                    left=textGrob(legend_first_method[[args$first_plot_method]], gp=gpar(cex=1), just=(6.4/7)*(end-start-(6.2*(7/6.4))),vjust=2, rot=90),
+                                    sub=textGrob(bottom_first_method[[args$first_plot_method]], gp=gpar(cex=1), just="bottom", vjust=2)
+                                    )
+                   )
+        do.call(grid.arrange, args_list)
         }
     devname=dev.off()
 }
--- a/small_rna_maps.xml	Tue Nov 07 17:38:39 2017 -0500
+++ b/small_rna_maps.xml	Tue Mar 06 06:11:55 2018 -0500
@@ -1,4 +1,4 @@
-<tool id="small_rna_maps" name="small_rna_maps" version="2.4.1">
+<tool id="small_rna_maps" name="small_rna_maps" version="2.4.3">
   <description></description>
   <requirements>
         <requirement type="package" version="1.11.2=py27_0">numpy</requirement>
@@ -267,6 +267,43 @@
             <output file="size-count_normed.pdf" name="output_pdf" />
         </test>
         <test>
+            <param name="inputs" value="input_single_chr.bam" ftype="bam"/>
+            <param name="minsize" value="0" />
+            <param name="maxsize" value="10000" />
+            <param name="cluster" value="0" />
+            <param name="plots_options_selector" value="two_plot" />
+            <param name="first_plot" value="Counts" />
+            <param name="extra_plot" value="Coverage" />
+            <param name="normalization" value="1 1" />
+            <output file="count_1_chr.tab" name="output_tab" />
+            <output file="coverage_1_chr.tab" name="extra_output_tab" />
+            <output file="counts_coverage_1.pdf" name="output_pdf" />
+        </test>
+        <test>
+            <param name="inputs" value="input_5_chr.bam" ftype="bam"/>
+            <param name="minsize" value="0" />
+            <param name="maxsize" value="10000" />
+            <param name="cluster" value="0" />
+            <param name="plots_options_selector" value="two_plot" />
+            <param name="first_plot" value="Counts" />
+            <param name="extra_plot" value="Coverage" />
+            <param name="normalization" value="1 1" />
+            <output file="count_5_chr.tab" name="output_tab" />
+            <output file="coverage_5_chr.tab" name="extra_output_tab" />
+            <output file="counts_coverage_5.pdf" name="output_pdf" />
+        </test>
+        <test>
+            <param name="inputs" value="input_single_chr.bam" ftype="bam"/>
+            <param name="minsize" value="0" />
+            <param name="maxsize" value="10000" />
+            <param name="cluster" value="0" />
+            <param name="plots_options_selector" value="one_plot" />
+            <param name="first_plot" value="Counts" />
+            <param name="normalization" value="1 1" />
+            <output file="count_1_chr.tab" name="output_tab" />
+            <output file="count_1.pdf" name="output_pdf" />
+        </test>
+        <test>
             <param name="inputs" value="input1.bam,input2.bam" ftype="bam"/>
             <param name="minsize" value="0" />
             <param name="cluster" value="0" />
Binary file test-data/count-coverage.pdf has changed
Binary file test-data/count-mean-20-30.pdf has changed
Binary file test-data/count-mean.pdf has changed
Binary file test-data/count-median.pdf has changed
Binary file test-data/count-size.pdf has changed
Binary file test-data/count.pdf has changed
Binary file test-data/count_1.pdf has changed
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/test-data/count_1_chr.tab	Tue Mar 06 06:11:55 2018 -0500
@@ -0,0 +1,3 @@
+Dataset	Chromosome	Chrom_length	Coordinate	Polarity	Counts
+input_single_chr.bam	1	80	1	F	1
+input_single_chr.bam	1	80	80	F	0
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/test-data/count_5_chr.tab	Tue Mar 06 06:11:55 2018 -0500
@@ -0,0 +1,11 @@
+Dataset	Chromosome	Chrom_length	Coordinate	Polarity	Counts
+input_5_chr.bam	1	80	1	F	1
+input_5_chr.bam	1	80	80	F	0
+input_5_chr.bam	2	80	1	F	1
+input_5_chr.bam	2	80	80	F	0
+input_5_chr.bam	3	80	1	F	1
+input_5_chr.bam	3	80	80	F	0
+input_5_chr.bam	4	80	1	F	1
+input_5_chr.bam	4	80	80	F	0
+input_5_chr.bam	5	80	1	F	1
+input_5_chr.bam	5	80	80	F	0
Binary file test-data/count_cluster_5.pdf has changed
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/test-data/count_single_chr.tab	Tue Mar 06 06:11:55 2018 -0500
@@ -0,0 +1,4 @@
+Dataset	Chromosome	Chrom_length	Coordinate	Polarity	Counts
+input_single_chr.bam	Anopheles_C_Virus|KU169878	8919	1	F	0
+input_single_chr.bam	Anopheles_C_Virus|KU169878	8919	749	R	1
+input_single_chr.bam	Anopheles_C_Virus|KU169878	8919	8919	F	0
Binary file test-data/counts_coverage_1.pdf has changed
Binary file test-data/counts_coverage_5.pdf has changed
Binary file test-data/coverage.pdf has changed
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/test-data/coverage_1_chr.tab	Tue Mar 06 06:11:55 2018 -0500
@@ -0,0 +1,81 @@
+Dataset	Chromosome	Chrom_length	Coordinate	Polarity	Coverage
+input_single_chr.bam	1	80	1	F	1
+input_single_chr.bam	1	80	2	F	1
+input_single_chr.bam	1	80	3	F	1
+input_single_chr.bam	1	80	4	F	1
+input_single_chr.bam	1	80	5	F	1
+input_single_chr.bam	1	80	6	F	1
+input_single_chr.bam	1	80	7	F	1
+input_single_chr.bam	1	80	8	F	1
+input_single_chr.bam	1	80	9	F	1
+input_single_chr.bam	1	80	10	F	1
+input_single_chr.bam	1	80	11	F	1
+input_single_chr.bam	1	80	12	F	1
+input_single_chr.bam	1	80	13	F	1
+input_single_chr.bam	1	80	14	F	1
+input_single_chr.bam	1	80	15	F	1
+input_single_chr.bam	1	80	16	F	1
+input_single_chr.bam	1	80	17	F	1
+input_single_chr.bam	1	80	18	F	1
+input_single_chr.bam	1	80	19	F	1
+input_single_chr.bam	1	80	20	F	1
+input_single_chr.bam	1	80	21	F	1
+input_single_chr.bam	1	80	22	F	1
+input_single_chr.bam	1	80	23	F	1
+input_single_chr.bam	1	80	24	F	1
+input_single_chr.bam	1	80	25	F	1
+input_single_chr.bam	1	80	26	F	1
+input_single_chr.bam	1	80	27	F	1
+input_single_chr.bam	1	80	28	F	1
+input_single_chr.bam	1	80	29	F	1
+input_single_chr.bam	1	80	30	F	1
+input_single_chr.bam	1	80	31	F	1
+input_single_chr.bam	1	80	32	F	1
+input_single_chr.bam	1	80	33	F	1
+input_single_chr.bam	1	80	34	F	1
+input_single_chr.bam	1	80	35	F	1
+input_single_chr.bam	1	80	36	F	1
+input_single_chr.bam	1	80	37	F	1
+input_single_chr.bam	1	80	38	F	1
+input_single_chr.bam	1	80	39	F	1
+input_single_chr.bam	1	80	40	F	1
+input_single_chr.bam	1	80	41	F	1
+input_single_chr.bam	1	80	42	F	1
+input_single_chr.bam	1	80	43	F	1
+input_single_chr.bam	1	80	44	F	1
+input_single_chr.bam	1	80	45	F	1
+input_single_chr.bam	1	80	46	F	1
+input_single_chr.bam	1	80	47	F	1
+input_single_chr.bam	1	80	48	F	1
+input_single_chr.bam	1	80	49	F	1
+input_single_chr.bam	1	80	50	F	1
+input_single_chr.bam	1	80	51	F	1
+input_single_chr.bam	1	80	52	F	1
+input_single_chr.bam	1	80	53	F	1
+input_single_chr.bam	1	80	54	F	1
+input_single_chr.bam	1	80	55	F	1
+input_single_chr.bam	1	80	56	F	1
+input_single_chr.bam	1	80	57	F	1
+input_single_chr.bam	1	80	58	F	1
+input_single_chr.bam	1	80	59	F	1
+input_single_chr.bam	1	80	60	F	1
+input_single_chr.bam	1	80	61	F	1
+input_single_chr.bam	1	80	62	F	1
+input_single_chr.bam	1	80	63	F	1
+input_single_chr.bam	1	80	64	F	1
+input_single_chr.bam	1	80	65	F	1
+input_single_chr.bam	1	80	66	F	1
+input_single_chr.bam	1	80	67	F	1
+input_single_chr.bam	1	80	68	F	1
+input_single_chr.bam	1	80	69	F	1
+input_single_chr.bam	1	80	70	F	1
+input_single_chr.bam	1	80	71	F	1
+input_single_chr.bam	1	80	72	F	1
+input_single_chr.bam	1	80	73	F	1
+input_single_chr.bam	1	80	74	F	1
+input_single_chr.bam	1	80	75	F	1
+input_single_chr.bam	1	80	76	F	1
+input_single_chr.bam	1	80	77	F	1
+input_single_chr.bam	1	80	78	F	1
+input_single_chr.bam	1	80	79	F	1
+input_single_chr.bam	1	80	80	F	1
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/test-data/coverage_5_chr.tab	Tue Mar 06 06:11:55 2018 -0500
@@ -0,0 +1,401 @@
+Dataset	Chromosome	Chrom_length	Coordinate	Polarity	Coverage
+input_5_chr.bam	1	80	1	F	1
+input_5_chr.bam	1	80	2	F	1
+input_5_chr.bam	1	80	3	F	1
+input_5_chr.bam	1	80	4	F	1
+input_5_chr.bam	1	80	5	F	1
+input_5_chr.bam	1	80	6	F	1
+input_5_chr.bam	1	80	7	F	1
+input_5_chr.bam	1	80	8	F	1
+input_5_chr.bam	1	80	9	F	1
+input_5_chr.bam	1	80	10	F	1
+input_5_chr.bam	1	80	11	F	1
+input_5_chr.bam	1	80	12	F	1
+input_5_chr.bam	1	80	13	F	1
+input_5_chr.bam	1	80	14	F	1
+input_5_chr.bam	1	80	15	F	1
+input_5_chr.bam	1	80	16	F	1
+input_5_chr.bam	1	80	17	F	1
+input_5_chr.bam	1	80	18	F	1
+input_5_chr.bam	1	80	19	F	1
+input_5_chr.bam	1	80	20	F	1
+input_5_chr.bam	1	80	21	F	1
+input_5_chr.bam	1	80	22	F	1
+input_5_chr.bam	1	80	23	F	1
+input_5_chr.bam	1	80	24	F	1
+input_5_chr.bam	1	80	25	F	1
+input_5_chr.bam	1	80	26	F	1
+input_5_chr.bam	1	80	27	F	1
+input_5_chr.bam	1	80	28	F	1
+input_5_chr.bam	1	80	29	F	1
+input_5_chr.bam	1	80	30	F	1
+input_5_chr.bam	1	80	31	F	1
+input_5_chr.bam	1	80	32	F	1
+input_5_chr.bam	1	80	33	F	1
+input_5_chr.bam	1	80	34	F	1
+input_5_chr.bam	1	80	35	F	1
+input_5_chr.bam	1	80	36	F	1
+input_5_chr.bam	1	80	37	F	1
+input_5_chr.bam	1	80	38	F	1
+input_5_chr.bam	1	80	39	F	1
+input_5_chr.bam	1	80	40	F	1
+input_5_chr.bam	1	80	41	F	1
+input_5_chr.bam	1	80	42	F	1
+input_5_chr.bam	1	80	43	F	1
+input_5_chr.bam	1	80	44	F	1
+input_5_chr.bam	1	80	45	F	1
+input_5_chr.bam	1	80	46	F	1
+input_5_chr.bam	1	80	47	F	1
+input_5_chr.bam	1	80	48	F	1
+input_5_chr.bam	1	80	49	F	1
+input_5_chr.bam	1	80	50	F	1
+input_5_chr.bam	1	80	51	F	1
+input_5_chr.bam	1	80	52	F	1
+input_5_chr.bam	1	80	53	F	1
+input_5_chr.bam	1	80	54	F	1
+input_5_chr.bam	1	80	55	F	1
+input_5_chr.bam	1	80	56	F	1
+input_5_chr.bam	1	80	57	F	1
+input_5_chr.bam	1	80	58	F	1
+input_5_chr.bam	1	80	59	F	1
+input_5_chr.bam	1	80	60	F	1
+input_5_chr.bam	1	80	61	F	1
+input_5_chr.bam	1	80	62	F	1
+input_5_chr.bam	1	80	63	F	1
+input_5_chr.bam	1	80	64	F	1
+input_5_chr.bam	1	80	65	F	1
+input_5_chr.bam	1	80	66	F	1
+input_5_chr.bam	1	80	67	F	1
+input_5_chr.bam	1	80	68	F	1
+input_5_chr.bam	1	80	69	F	1
+input_5_chr.bam	1	80	70	F	1
+input_5_chr.bam	1	80	71	F	1
+input_5_chr.bam	1	80	72	F	1
+input_5_chr.bam	1	80	73	F	1
+input_5_chr.bam	1	80	74	F	1
+input_5_chr.bam	1	80	75	F	1
+input_5_chr.bam	1	80	76	F	1
+input_5_chr.bam	1	80	77	F	1
+input_5_chr.bam	1	80	78	F	1
+input_5_chr.bam	1	80	79	F	1
+input_5_chr.bam	1	80	80	F	1
+input_5_chr.bam	2	80	1	F	1
+input_5_chr.bam	2	80	2	F	1
+input_5_chr.bam	2	80	3	F	1
+input_5_chr.bam	2	80	4	F	1
+input_5_chr.bam	2	80	5	F	1
+input_5_chr.bam	2	80	6	F	1
+input_5_chr.bam	2	80	7	F	1
+input_5_chr.bam	2	80	8	F	1
+input_5_chr.bam	2	80	9	F	1
+input_5_chr.bam	2	80	10	F	1
+input_5_chr.bam	2	80	11	F	1
+input_5_chr.bam	2	80	12	F	1
+input_5_chr.bam	2	80	13	F	1
+input_5_chr.bam	2	80	14	F	1
+input_5_chr.bam	2	80	15	F	1
+input_5_chr.bam	2	80	16	F	1
+input_5_chr.bam	2	80	17	F	1
+input_5_chr.bam	2	80	18	F	1
+input_5_chr.bam	2	80	19	F	1
+input_5_chr.bam	2	80	20	F	1
+input_5_chr.bam	2	80	21	F	1
+input_5_chr.bam	2	80	22	F	1
+input_5_chr.bam	2	80	23	F	1
+input_5_chr.bam	2	80	24	F	1
+input_5_chr.bam	2	80	25	F	1
+input_5_chr.bam	2	80	26	F	1
+input_5_chr.bam	2	80	27	F	1
+input_5_chr.bam	2	80	28	F	1
+input_5_chr.bam	2	80	29	F	1
+input_5_chr.bam	2	80	30	F	1
+input_5_chr.bam	2	80	31	F	1
+input_5_chr.bam	2	80	32	F	1
+input_5_chr.bam	2	80	33	F	1
+input_5_chr.bam	2	80	34	F	1
+input_5_chr.bam	2	80	35	F	1
+input_5_chr.bam	2	80	36	F	1
+input_5_chr.bam	2	80	37	F	1
+input_5_chr.bam	2	80	38	F	1
+input_5_chr.bam	2	80	39	F	1
+input_5_chr.bam	2	80	40	F	1
+input_5_chr.bam	2	80	41	F	1
+input_5_chr.bam	2	80	42	F	1
+input_5_chr.bam	2	80	43	F	1
+input_5_chr.bam	2	80	44	F	1
+input_5_chr.bam	2	80	45	F	1
+input_5_chr.bam	2	80	46	F	1
+input_5_chr.bam	2	80	47	F	1
+input_5_chr.bam	2	80	48	F	1
+input_5_chr.bam	2	80	49	F	1
+input_5_chr.bam	2	80	50	F	1
+input_5_chr.bam	2	80	51	F	1
+input_5_chr.bam	2	80	52	F	1
+input_5_chr.bam	2	80	53	F	1
+input_5_chr.bam	2	80	54	F	1
+input_5_chr.bam	2	80	55	F	1
+input_5_chr.bam	2	80	56	F	1
+input_5_chr.bam	2	80	57	F	1
+input_5_chr.bam	2	80	58	F	1
+input_5_chr.bam	2	80	59	F	1
+input_5_chr.bam	2	80	60	F	1
+input_5_chr.bam	2	80	61	F	1
+input_5_chr.bam	2	80	62	F	1
+input_5_chr.bam	2	80	63	F	1
+input_5_chr.bam	2	80	64	F	1
+input_5_chr.bam	2	80	65	F	1
+input_5_chr.bam	2	80	66	F	1
+input_5_chr.bam	2	80	67	F	1
+input_5_chr.bam	2	80	68	F	1
+input_5_chr.bam	2	80	69	F	1
+input_5_chr.bam	2	80	70	F	1
+input_5_chr.bam	2	80	71	F	1
+input_5_chr.bam	2	80	72	F	1
+input_5_chr.bam	2	80	73	F	1
+input_5_chr.bam	2	80	74	F	1
+input_5_chr.bam	2	80	75	F	1
+input_5_chr.bam	2	80	76	F	1
+input_5_chr.bam	2	80	77	F	1
+input_5_chr.bam	2	80	78	F	1
+input_5_chr.bam	2	80	79	F	1
+input_5_chr.bam	2	80	80	F	1
+input_5_chr.bam	3	80	1	F	1
+input_5_chr.bam	3	80	2	F	1
+input_5_chr.bam	3	80	3	F	1
+input_5_chr.bam	3	80	4	F	1
+input_5_chr.bam	3	80	5	F	1
+input_5_chr.bam	3	80	6	F	1
+input_5_chr.bam	3	80	7	F	1
+input_5_chr.bam	3	80	8	F	1
+input_5_chr.bam	3	80	9	F	1
+input_5_chr.bam	3	80	10	F	1
+input_5_chr.bam	3	80	11	F	1
+input_5_chr.bam	3	80	12	F	1
+input_5_chr.bam	3	80	13	F	1
+input_5_chr.bam	3	80	14	F	1
+input_5_chr.bam	3	80	15	F	1
+input_5_chr.bam	3	80	16	F	1
+input_5_chr.bam	3	80	17	F	1
+input_5_chr.bam	3	80	18	F	1
+input_5_chr.bam	3	80	19	F	1
+input_5_chr.bam	3	80	20	F	1
+input_5_chr.bam	3	80	21	F	1
+input_5_chr.bam	3	80	22	F	1
+input_5_chr.bam	3	80	23	F	1
+input_5_chr.bam	3	80	24	F	1
+input_5_chr.bam	3	80	25	F	1
+input_5_chr.bam	3	80	26	F	1
+input_5_chr.bam	3	80	27	F	1
+input_5_chr.bam	3	80	28	F	1
+input_5_chr.bam	3	80	29	F	1
+input_5_chr.bam	3	80	30	F	1
+input_5_chr.bam	3	80	31	F	1
+input_5_chr.bam	3	80	32	F	1
+input_5_chr.bam	3	80	33	F	1
+input_5_chr.bam	3	80	34	F	1
+input_5_chr.bam	3	80	35	F	1
+input_5_chr.bam	3	80	36	F	1
+input_5_chr.bam	3	80	37	F	1
+input_5_chr.bam	3	80	38	F	1
+input_5_chr.bam	3	80	39	F	1
+input_5_chr.bam	3	80	40	F	1
+input_5_chr.bam	3	80	41	F	1
+input_5_chr.bam	3	80	42	F	1
+input_5_chr.bam	3	80	43	F	1
+input_5_chr.bam	3	80	44	F	1
+input_5_chr.bam	3	80	45	F	1
+input_5_chr.bam	3	80	46	F	1
+input_5_chr.bam	3	80	47	F	1
+input_5_chr.bam	3	80	48	F	1
+input_5_chr.bam	3	80	49	F	1
+input_5_chr.bam	3	80	50	F	1
+input_5_chr.bam	3	80	51	F	1
+input_5_chr.bam	3	80	52	F	1
+input_5_chr.bam	3	80	53	F	1
+input_5_chr.bam	3	80	54	F	1
+input_5_chr.bam	3	80	55	F	1
+input_5_chr.bam	3	80	56	F	1
+input_5_chr.bam	3	80	57	F	1
+input_5_chr.bam	3	80	58	F	1
+input_5_chr.bam	3	80	59	F	1
+input_5_chr.bam	3	80	60	F	1
+input_5_chr.bam	3	80	61	F	1
+input_5_chr.bam	3	80	62	F	1
+input_5_chr.bam	3	80	63	F	1
+input_5_chr.bam	3	80	64	F	1
+input_5_chr.bam	3	80	65	F	1
+input_5_chr.bam	3	80	66	F	1
+input_5_chr.bam	3	80	67	F	1
+input_5_chr.bam	3	80	68	F	1
+input_5_chr.bam	3	80	69	F	1
+input_5_chr.bam	3	80	70	F	1
+input_5_chr.bam	3	80	71	F	1
+input_5_chr.bam	3	80	72	F	1
+input_5_chr.bam	3	80	73	F	1
+input_5_chr.bam	3	80	74	F	1
+input_5_chr.bam	3	80	75	F	1
+input_5_chr.bam	3	80	76	F	1
+input_5_chr.bam	3	80	77	F	1
+input_5_chr.bam	3	80	78	F	1
+input_5_chr.bam	3	80	79	F	1
+input_5_chr.bam	3	80	80	F	1
+input_5_chr.bam	4	80	1	F	1
+input_5_chr.bam	4	80	2	F	1
+input_5_chr.bam	4	80	3	F	1
+input_5_chr.bam	4	80	4	F	1
+input_5_chr.bam	4	80	5	F	1
+input_5_chr.bam	4	80	6	F	1
+input_5_chr.bam	4	80	7	F	1
+input_5_chr.bam	4	80	8	F	1
+input_5_chr.bam	4	80	9	F	1
+input_5_chr.bam	4	80	10	F	1
+input_5_chr.bam	4	80	11	F	1
+input_5_chr.bam	4	80	12	F	1
+input_5_chr.bam	4	80	13	F	1
+input_5_chr.bam	4	80	14	F	1
+input_5_chr.bam	4	80	15	F	1
+input_5_chr.bam	4	80	16	F	1
+input_5_chr.bam	4	80	17	F	1
+input_5_chr.bam	4	80	18	F	1
+input_5_chr.bam	4	80	19	F	1
+input_5_chr.bam	4	80	20	F	1
+input_5_chr.bam	4	80	21	F	1
+input_5_chr.bam	4	80	22	F	1
+input_5_chr.bam	4	80	23	F	1
+input_5_chr.bam	4	80	24	F	1
+input_5_chr.bam	4	80	25	F	1
+input_5_chr.bam	4	80	26	F	1
+input_5_chr.bam	4	80	27	F	1
+input_5_chr.bam	4	80	28	F	1
+input_5_chr.bam	4	80	29	F	1
+input_5_chr.bam	4	80	30	F	1
+input_5_chr.bam	4	80	31	F	1
+input_5_chr.bam	4	80	32	F	1
+input_5_chr.bam	4	80	33	F	1
+input_5_chr.bam	4	80	34	F	1
+input_5_chr.bam	4	80	35	F	1
+input_5_chr.bam	4	80	36	F	1
+input_5_chr.bam	4	80	37	F	1
+input_5_chr.bam	4	80	38	F	1
+input_5_chr.bam	4	80	39	F	1
+input_5_chr.bam	4	80	40	F	1
+input_5_chr.bam	4	80	41	F	1
+input_5_chr.bam	4	80	42	F	1
+input_5_chr.bam	4	80	43	F	1
+input_5_chr.bam	4	80	44	F	1
+input_5_chr.bam	4	80	45	F	1
+input_5_chr.bam	4	80	46	F	1
+input_5_chr.bam	4	80	47	F	1
+input_5_chr.bam	4	80	48	F	1
+input_5_chr.bam	4	80	49	F	1
+input_5_chr.bam	4	80	50	F	1
+input_5_chr.bam	4	80	51	F	1
+input_5_chr.bam	4	80	52	F	1
+input_5_chr.bam	4	80	53	F	1
+input_5_chr.bam	4	80	54	F	1
+input_5_chr.bam	4	80	55	F	1
+input_5_chr.bam	4	80	56	F	1
+input_5_chr.bam	4	80	57	F	1
+input_5_chr.bam	4	80	58	F	1
+input_5_chr.bam	4	80	59	F	1
+input_5_chr.bam	4	80	60	F	1
+input_5_chr.bam	4	80	61	F	1
+input_5_chr.bam	4	80	62	F	1
+input_5_chr.bam	4	80	63	F	1
+input_5_chr.bam	4	80	64	F	1
+input_5_chr.bam	4	80	65	F	1
+input_5_chr.bam	4	80	66	F	1
+input_5_chr.bam	4	80	67	F	1
+input_5_chr.bam	4	80	68	F	1
+input_5_chr.bam	4	80	69	F	1
+input_5_chr.bam	4	80	70	F	1
+input_5_chr.bam	4	80	71	F	1
+input_5_chr.bam	4	80	72	F	1
+input_5_chr.bam	4	80	73	F	1
+input_5_chr.bam	4	80	74	F	1
+input_5_chr.bam	4	80	75	F	1
+input_5_chr.bam	4	80	76	F	1
+input_5_chr.bam	4	80	77	F	1
+input_5_chr.bam	4	80	78	F	1
+input_5_chr.bam	4	80	79	F	1
+input_5_chr.bam	4	80	80	F	1
+input_5_chr.bam	5	80	1	F	1
+input_5_chr.bam	5	80	2	F	1
+input_5_chr.bam	5	80	3	F	1
+input_5_chr.bam	5	80	4	F	1
+input_5_chr.bam	5	80	5	F	1
+input_5_chr.bam	5	80	6	F	1
+input_5_chr.bam	5	80	7	F	1
+input_5_chr.bam	5	80	8	F	1
+input_5_chr.bam	5	80	9	F	1
+input_5_chr.bam	5	80	10	F	1
+input_5_chr.bam	5	80	11	F	1
+input_5_chr.bam	5	80	12	F	1
+input_5_chr.bam	5	80	13	F	1
+input_5_chr.bam	5	80	14	F	1
+input_5_chr.bam	5	80	15	F	1
+input_5_chr.bam	5	80	16	F	1
+input_5_chr.bam	5	80	17	F	1
+input_5_chr.bam	5	80	18	F	1
+input_5_chr.bam	5	80	19	F	1
+input_5_chr.bam	5	80	20	F	1
+input_5_chr.bam	5	80	21	F	1
+input_5_chr.bam	5	80	22	F	1
+input_5_chr.bam	5	80	23	F	1
+input_5_chr.bam	5	80	24	F	1
+input_5_chr.bam	5	80	25	F	1
+input_5_chr.bam	5	80	26	F	1
+input_5_chr.bam	5	80	27	F	1
+input_5_chr.bam	5	80	28	F	1
+input_5_chr.bam	5	80	29	F	1
+input_5_chr.bam	5	80	30	F	1
+input_5_chr.bam	5	80	31	F	1
+input_5_chr.bam	5	80	32	F	1
+input_5_chr.bam	5	80	33	F	1
+input_5_chr.bam	5	80	34	F	1
+input_5_chr.bam	5	80	35	F	1
+input_5_chr.bam	5	80	36	F	1
+input_5_chr.bam	5	80	37	F	1
+input_5_chr.bam	5	80	38	F	1
+input_5_chr.bam	5	80	39	F	1
+input_5_chr.bam	5	80	40	F	1
+input_5_chr.bam	5	80	41	F	1
+input_5_chr.bam	5	80	42	F	1
+input_5_chr.bam	5	80	43	F	1
+input_5_chr.bam	5	80	44	F	1
+input_5_chr.bam	5	80	45	F	1
+input_5_chr.bam	5	80	46	F	1
+input_5_chr.bam	5	80	47	F	1
+input_5_chr.bam	5	80	48	F	1
+input_5_chr.bam	5	80	49	F	1
+input_5_chr.bam	5	80	50	F	1
+input_5_chr.bam	5	80	51	F	1
+input_5_chr.bam	5	80	52	F	1
+input_5_chr.bam	5	80	53	F	1
+input_5_chr.bam	5	80	54	F	1
+input_5_chr.bam	5	80	55	F	1
+input_5_chr.bam	5	80	56	F	1
+input_5_chr.bam	5	80	57	F	1
+input_5_chr.bam	5	80	58	F	1
+input_5_chr.bam	5	80	59	F	1
+input_5_chr.bam	5	80	60	F	1
+input_5_chr.bam	5	80	61	F	1
+input_5_chr.bam	5	80	62	F	1
+input_5_chr.bam	5	80	63	F	1
+input_5_chr.bam	5	80	64	F	1
+input_5_chr.bam	5	80	65	F	1
+input_5_chr.bam	5	80	66	F	1
+input_5_chr.bam	5	80	67	F	1
+input_5_chr.bam	5	80	68	F	1
+input_5_chr.bam	5	80	69	F	1
+input_5_chr.bam	5	80	70	F	1
+input_5_chr.bam	5	80	71	F	1
+input_5_chr.bam	5	80	72	F	1
+input_5_chr.bam	5	80	73	F	1
+input_5_chr.bam	5	80	74	F	1
+input_5_chr.bam	5	80	75	F	1
+input_5_chr.bam	5	80	76	F	1
+input_5_chr.bam	5	80	77	F	1
+input_5_chr.bam	5	80	78	F	1
+input_5_chr.bam	5	80	79	F	1
+input_5_chr.bam	5	80	80	F	1
Binary file test-data/coverage_normed.pdf has changed
Binary file test-data/doubled_count-mean.pdf has changed
Binary file test-data/input_5_chr.bam has changed
Binary file test-data/input_single_chr.bam has changed
Binary file test-data/single_chr-count-size.pdf has changed
Binary file test-data/size-count.pdf has changed
Binary file test-data/size-count_normed.pdf has changed
Binary file test-data/size.pdf has changed
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/test-data/size_single_chr.tab	Tue Mar 06 06:11:55 2018 -0500
@@ -0,0 +1,3 @@
+Dataset	Chromosome	Polarity	Size	Counts
+input_single_chr.bam	Anopheles_C_Virus|KU169878	F	21	0
+input_single_chr.bam	Anopheles_C_Virus|KU169878	R	21	1