changeset 15:82fedc576024 draft

planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/small_rna_maps commit c1d96f7f028512aa4d8fcae3dd5f967cd445708e
author artbio
date Sat, 06 Oct 2018 05:24:15 -0400
parents cd75c72e1d75
children 600e2498bd21
files small_rna_maps.py small_rna_maps.xml test-data/input1_input2new_norm_1_2_counts.tab test-data/input1_input2new_norm_1_2_single_plot_counts.pdf test-data/input1_min20_max30_single_plot_size.pdf test-data/input1_min20_max30_size.tab test-data/input_new2.bam
diffstat 7 files changed, 661 insertions(+), 28 deletions(-) [+]
line wrap: on
line diff
--- a/small_rna_maps.py	Tue Apr 10 10:13:04 2018 -0400
+++ b/small_rna_maps.py	Sat Oct 06 05:24:15 2018 -0400
@@ -54,15 +54,13 @@
             map_dictionary[(chrom, 1, 'F')] = []
             map_dictionary[(chrom, self.chromosomes[chrom], 'F')] = []
             for read in bam_object.fetch(chrom):
-                if (read.query_alignment_length >= minsize and
-                        read.query_alignment_length <= maxsize):
-                    positions = read.positions  # a list of covered positions
-                    if read.is_reverse:
-                        map_dictionary[(chrom, positions[-1]+1, 'R')].append(
-                                        read.query_alignment_length)
-                    else:
-                        map_dictionary[(chrom, positions[0]+1, 'F')].append(
-                                        read.query_alignment_length)
+                positions = read.positions  # a list of covered positions
+                if read.is_reverse:
+                    map_dictionary[(chrom, positions[-1]+1, 'R')].append(
+                                    read.query_alignment_length)
+                else:
+                    map_dictionary[(chrom, positions[0]+1, 'F')].append(
+                                    read.query_alignment_length)
         return map_dictionary
 
     def grouper(self, iterable, clust_distance):
--- a/small_rna_maps.xml	Tue Apr 10 10:13:04 2018 -0400
+++ b/small_rna_maps.xml	Sat Oct 06 05:24:15 2018 -0400
@@ -1,4 +1,4 @@
-<tool id="small_rna_maps" name="small_rna_maps" version="2.5.2">
+<tool id="small_rna_maps" name="small_rna_maps" version="2.6.0">
   <description></description>
   <requirements>
         <requirement type="package" version="1.11.2=py27_0">numpy</requirement>
@@ -7,19 +7,20 @@
         <requirement type="package" version="0.6_28=r3.3.2_0">r-latticeextra</requirement>
         <requirement type="package" version="2.2.1=r3.3.2_0">r-gridextra</requirement>
         <requirement type="package" version="1.4.2=r3.3.2_0">r-reshape2</requirement>
-        
+        <requirement type="package" version="0.6.6">sambamba</requirement>
   </requirements>
   <stdio>
       <exit_code range="1:" level="fatal" description="Tool exception" />
   </stdio>
   <command detect_errors="exit_code"><![CDATA[
           #for $file in $series
-              samtools index '$file.inputs';
+              sambamba view -t \${GALAXY_SLOTS} -F "not unmapped and sequence_length >= ${minsize} and sequence_length <= ${maxsize}" -f bam '$file.inputs' >'$file.inputs.name';
+              samtools index '$file.inputs.name';
           #end for
-          python '$__tool_directory__'/small_rna_maps.py 
+          python '$__tool_directory__'/small_rna_maps.py
               --inputs
           #for $file in $series
-              '$file.inputs'
+              '$file.inputs.name'
           #end for
               --sample_names
           #for $sample in $series
@@ -39,9 +40,9 @@
           --outputs '$output_tab' ;
       #end if
       Rscript '$__tool_directory__'/small_rna_maps.r
-          --first_dataframe '$output_tab' 
+          --first_dataframe '$output_tab'
           --extra_dataframe '$extra_output_tab'
-          --normalization 
+          --normalization
           #set $norm = ""
           #for $file in $series
                  #set $norm += str($file.normalization)+' '
@@ -83,29 +84,29 @@
         <param name="plots_options_selector" type="select" display="radio" label="Plot Options">
             <option value="one_plot">Just one plot per chromosome</option>
             <option value="two_plot" selected="True">Two plots per chromosome</option>
-            <option value="global">Global read size distributions of aligned reads</option> 
+            <option value="global">Global read size distributions of aligned reads</option>
         </param>
         <when value="two_plot">
             <param name="first_plot" type="select" display="radio" label="Select the type of the top plot">
-                <option value="Counts">Counts</option> 
-                <option value="Coverage">Coverage</option> 
-                <option value="Mean">Mean Sizes</option> 
+                <option value="Counts">Counts</option>
+                <option value="Coverage">Coverage</option>
+                <option value="Mean">Mean Sizes</option>
                 <option value="Median">Median Sizes</option>
                 <option value="Size">Size Distributions</option>
             </param>
             <param name="extra_plot" type="select" display="radio" label="Select the type of the bottom plot">
-                <option value="Counts">Counts</option> 
-                <option value="Coverage">Coverage</option> 
-                <option value="Mean">Mean Sizes</option> 
+                <option value="Counts">Counts</option>
+                <option value="Coverage">Coverage</option>
+                <option value="Mean">Mean Sizes</option>
                 <option value="Median">Median Sizes</option>
                 <option value="Size">Size Distributions</option>
             </param>
         </when>
         <when value="one_plot">
             <param name="first_plot" type="select" display="radio" label="select the type of plot">
-                <option value="Counts">Counts</option> 
-                <option value="Coverage">Coverage</option> 
-                <option value="Mean">Mean Sizes</option> 
+                <option value="Counts">Counts</option>
+                <option value="Coverage">Coverage</option>
+                <option value="Mean">Mean Sizes</option>
                 <option value="Median">Median Sizes</option>
                 <option value="Size">Size Distributions</option>
             </param>
@@ -134,7 +135,7 @@
     <data format="tabular" name="output_tab" label="$plots_options.first_plot dataframe" />
     <data format="tabular" name="extra_output_tab" label="$plots_options.extra_plot dataframe">
         <filter>plots_options['plots_options_selector'] == 'two_plot'</filter>
-    </data> 
+    </data>
     <data format="pdf" name="output_pdf" label="small RNA maps" />
 </outputs>
 
@@ -144,6 +145,23 @@
                 <param name="inputs" value="input1.bam" ftype="bam" />
                 <param name="normalization" value="1.0" />
             </repeat>
+            <repeat name="series">
+                <param name="inputs" value="input_new2.bam" ftype="bam" />
+                <param name="normalization" value="2.0" />
+            </repeat>
+            <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" />
+            <output file="input1_input2new_norm_1_2_counts.tab" name="output_tab" />
+            <output file="input1_input2new_norm_1_2_single_plot_counts.pdf" name="output_pdf" />
+        </test>
+        <test>
+            <repeat name="series">
+                <param name="inputs" value="input1.bam" ftype="bam" />
+                <param name="normalization" value="1.0" />
+            </repeat>
             <param name="minsize" value="0" />
             <param name="maxsize" value="10000" />
             <param name="cluster" value="0" />
@@ -377,4 +395,3 @@
   }</citation>
 </citations>
 </tool>
-
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/test-data/input1_input2new_norm_1_2_counts.tab	Sat Oct 06 05:24:15 2018 -0400
@@ -0,0 +1,616 @@
+Dataset	Chromosome	Chrom_length	Coordinate	Polarity	Counts
+input1.bam	FBtr0070001	72	1	F	1
+input1.bam	FBtr0070001	72	7	F	6
+input1.bam	FBtr0070001	72	8	F	3
+input1.bam	FBtr0070001	72	11	F	2
+input1.bam	FBtr0070001	72	16	F	1
+input1.bam	FBtr0070001	72	17	F	1
+input1.bam	FBtr0070001	72	18	F	1
+input1.bam	FBtr0070001	72	27	F	2
+input1.bam	FBtr0070001	72	30	F	1
+input1.bam	FBtr0070001	72	31	F	11
+input1.bam	FBtr0070001	72	32	F	27
+input1.bam	FBtr0070001	72	34	F	1
+input1.bam	FBtr0070001	72	72	F	0
+input1.bam	FBtr0070533	72	1	F	1
+input1.bam	FBtr0070533	72	12	F	2
+input1.bam	FBtr0070533	72	15	F	1
+input1.bam	FBtr0070533	72	19	F	5
+input1.bam	FBtr0070533	72	20	F	1
+input1.bam	FBtr0070533	72	21	F	1
+input1.bam	FBtr0070533	72	22	F	1
+input1.bam	FBtr0070533	72	25	F	1
+input1.bam	FBtr0070533	72	26	F	1
+input1.bam	FBtr0070533	72	28	F	1
+input1.bam	FBtr0070533	72	32	F	4
+input1.bam	FBtr0070533	72	35	F	1
+input1.bam	FBtr0070533	72	37	F	2
+input1.bam	FBtr0070533	72	38	F	2
+input1.bam	FBtr0070533	72	72	F	0
+input1.bam	FBtr0070603	72	1	F	2
+input1.bam	FBtr0070603	72	3	F	1
+input1.bam	FBtr0070603	72	4	F	1
+input1.bam	FBtr0070603	72	6	F	1
+input1.bam	FBtr0070603	72	7	F	7
+input1.bam	FBtr0070603	72	8	F	4
+input1.bam	FBtr0070603	72	9	F	7
+input1.bam	FBtr0070603	72	12	F	2
+input1.bam	FBtr0070603	72	13	F	1
+input1.bam	FBtr0070603	72	15	F	2
+input1.bam	FBtr0070603	72	16	F	2
+input1.bam	FBtr0070603	72	17	F	3
+input1.bam	FBtr0070603	72	18	F	1
+input1.bam	FBtr0070603	72	19	F	9
+input1.bam	FBtr0070603	72	20	F	3
+input1.bam	FBtr0070603	72	21	F	1
+input1.bam	FBtr0070603	72	22	F	3
+input1.bam	FBtr0070603	72	24	F	2
+input1.bam	FBtr0070603	72	25	F	1
+input1.bam	FBtr0070603	72	26	F	6
+input1.bam	FBtr0070603	72	27	F	3
+input1.bam	FBtr0070603	72	32	F	1
+input1.bam	FBtr0070603	72	34	F	3
+input1.bam	FBtr0070603	72	38	F	1
+input1.bam	FBtr0070603	72	42	F	1
+input1.bam	FBtr0070603	72	51	F	1
+input1.bam	FBtr0070603	72	56	F	1
+input1.bam	FBtr0070603	72	72	F	0
+input1.bam	FBtr0070604	72	1	F	1
+input1.bam	FBtr0070604	72	18	F	1
+input1.bam	FBtr0070604	72	22	F	1
+input1.bam	FBtr0070604	72	30	F	2
+input1.bam	FBtr0070604	72	31	F	10
+input1.bam	FBtr0070604	72	32	F	24
+input1.bam	FBtr0070604	72	57	F	1
+input1.bam	FBtr0070604	72	72	F	0
+input1.bam	FBtr0070911	73	1	F	0
+input1.bam	FBtr0070911	73	15	F	1
+input1.bam	FBtr0070911	73	38	F	1
+input1.bam	FBtr0070911	73	73	F	0
+input1.bam	FBtr0078490	72	1	F	0
+input1.bam	FBtr0078490	72	13	F	2
+input1.bam	FBtr0078490	72	17	F	1
+input1.bam	FBtr0078490	72	18	F	1
+input1.bam	FBtr0078490	72	25	F	1
+input1.bam	FBtr0078490	72	28	F	2
+input1.bam	FBtr0078490	72	38	F	1
+input1.bam	FBtr0078490	72	72	F	0
+input1.bam	FBtr0078580	72	1	F	1041
+input1.bam	FBtr0078580	72	3	F	3
+input1.bam	FBtr0078580	72	4	F	4
+input1.bam	FBtr0078580	72	5	F	5
+input1.bam	FBtr0078580	72	6	F	4
+input1.bam	FBtr0078580	72	7	F	1
+input1.bam	FBtr0078580	72	8	F	2
+input1.bam	FBtr0078580	72	11	F	1
+input1.bam	FBtr0078580	72	12	F	13
+input1.bam	FBtr0078580	72	14	F	7
+input1.bam	FBtr0078580	72	15	F	1
+input1.bam	FBtr0078580	72	16	F	4
+input1.bam	FBtr0078580	72	17	F	1
+input1.bam	FBtr0078580	72	19	F	1
+input1.bam	FBtr0078580	72	20	F	2
+input1.bam	FBtr0078580	72	21	F	5
+input1.bam	FBtr0078580	72	24	F	3
+input1.bam	FBtr0078580	72	25	F	2
+input1.bam	FBtr0078580	72	29	F	1
+input1.bam	FBtr0078580	72	31	F	1
+input1.bam	FBtr0078580	72	52	F	2
+input1.bam	FBtr0078580	72	72	F	0
+input1.bam	FBtr0078790	73	1	F	1
+input1.bam	FBtr0078790	73	17	F	2
+input1.bam	FBtr0078790	73	33	F	1
+input1.bam	FBtr0078790	73	42	F	4
+input1.bam	FBtr0078790	73	44	F	2
+input1.bam	FBtr0078790	73	46	F	1
+input1.bam	FBtr0078790	73	47	F	1
+input1.bam	FBtr0078790	73	52	F	1
+input1.bam	FBtr0078790	73	69	R	1
+input1.bam	FBtr0078790	73	73	F	0
+input1.bam	FBtr0079064	72	1	F	1
+input1.bam	FBtr0079064	72	3	F	1
+input1.bam	FBtr0079064	72	33	F	1
+input1.bam	FBtr0079064	72	52	F	1
+input1.bam	FBtr0079064	72	72	F	0
+input1.bam	FBtr0079090	72	1	F	2
+input1.bam	FBtr0079090	72	26	F	1
+input1.bam	FBtr0079090	72	33	F	1
+input1.bam	FBtr0079090	72	53	F	1
+input1.bam	FBtr0079090	72	56	R	1
+input1.bam	FBtr0079090	72	72	F	0
+input1.bam	FBtr0079338	73	1	F	0
+input1.bam	FBtr0079338	73	12	F	1
+input1.bam	FBtr0079338	73	13	F	2
+input1.bam	FBtr0079338	73	14	F	1
+input1.bam	FBtr0079338	73	17	F	1
+input1.bam	FBtr0079338	73	25	F	1
+input1.bam	FBtr0079338	73	42	F	8
+input1.bam	FBtr0079338	73	43	F	1
+input1.bam	FBtr0079338	73	46	F	1
+input1.bam	FBtr0079338	73	73	F	0
+input1.bam	FBtr0079528	71	1	F	19
+input1.bam	FBtr0079528	71	3	F	55
+input1.bam	FBtr0079528	71	4	F	2
+input1.bam	FBtr0079528	71	8	F	4
+input1.bam	FBtr0079528	71	10	F	1
+input1.bam	FBtr0079528	71	11	F	2
+input1.bam	FBtr0079528	71	13	F	1
+input1.bam	FBtr0079528	71	14	F	4
+input1.bam	FBtr0079528	71	16	F	1
+input1.bam	FBtr0079528	71	17	F	4
+input1.bam	FBtr0079528	71	18	F	4
+input1.bam	FBtr0079528	71	28	F	1
+input1.bam	FBtr0079528	71	35	F	1
+input1.bam	FBtr0079528	71	36	F	1
+input1.bam	FBtr0079528	71	37	F	1
+input1.bam	FBtr0079528	71	51	F	5
+input1.bam	FBtr0079528	71	71	F	0
+input1.bam	FBtr0079596	73	1	F	13
+input1.bam	FBtr0079596	73	3	F	13
+input1.bam	FBtr0079596	73	4	F	31
+input1.bam	FBtr0079596	73	5	F	2
+input1.bam	FBtr0079596	73	6	F	11
+input1.bam	FBtr0079596	73	8	F	9
+input1.bam	FBtr0079596	73	9	F	12
+input1.bam	FBtr0079596	73	10	F	3
+input1.bam	FBtr0079596	73	11	F	19
+input1.bam	FBtr0079596	73	12	F	1
+input1.bam	FBtr0079596	73	13	F	20
+input1.bam	FBtr0079596	73	14	F	6
+input1.bam	FBtr0079596	73	15	F	1
+input1.bam	FBtr0079596	73	16	F	3
+input1.bam	FBtr0079596	73	17	F	2
+input1.bam	FBtr0079596	73	18	F	1
+input1.bam	FBtr0079596	73	19	F	1
+input1.bam	FBtr0079596	73	53	F	2
+input1.bam	FBtr0079596	73	54	F	2
+input1.bam	FBtr0079596	73	73	F	0
+input1.bam	FBtr0079677	72	1	F	1
+input1.bam	FBtr0079677	72	5	F	1
+input1.bam	FBtr0079677	72	52	F	1
+input1.bam	FBtr0079677	72	53	F	1
+input1.bam	FBtr0079677	72	72	F	0
+input1.bam	FBtr0079690	72	1	F	1
+input1.bam	FBtr0079690	72	22	F	1
+input1.bam	FBtr0079690	72	27	F	1
+input1.bam	FBtr0079690	72	33	F	2
+input1.bam	FBtr0079690	72	72	F	0
+input1.bam	FBtr0079692	73	1	F	3
+input1.bam	FBtr0079692	73	18	F	1
+input1.bam	FBtr0079692	73	25	F	1
+input1.bam	FBtr0079692	73	32	F	1
+input1.bam	FBtr0079692	73	73	F	0
+input1.bam	FBtr0079693	72	1	F	5
+input1.bam	FBtr0079693	72	25	F	1
+input1.bam	FBtr0079693	72	72	F	0
+input1.bam	FBtr0079694	72	1	F	5
+input1.bam	FBtr0079694	72	18	F	1
+input1.bam	FBtr0079694	72	52	F	1
+input1.bam	FBtr0079694	72	72	F	0
+input1.bam	FBtr0079702	72	1	F	1
+input1.bam	FBtr0079702	72	19	F	2
+input1.bam	FBtr0079702	72	56	F	1
+input1.bam	FBtr0079702	72	72	F	0
+input1.bam	FBtr0079728	72	1	F	2
+input1.bam	FBtr0079728	72	8	F	1
+input1.bam	FBtr0079728	72	19	F	1
+input1.bam	FBtr0079728	72	33	F	3
+input1.bam	FBtr0079728	72	56	F	1
+input1.bam	FBtr0079728	72	72	F	0
+input1.bam	FBtr0079729	72	1	F	1
+input1.bam	FBtr0079729	72	13	F	1
+input1.bam	FBtr0079729	72	52	F	1
+input1.bam	FBtr0079729	72	57	F	1
+input1.bam	FBtr0079729	72	72	F	0
+input1.bam	FBtr0079752	72	1	F	2
+input1.bam	FBtr0079752	72	7	F	1
+input1.bam	FBtr0079752	72	12	F	1
+input1.bam	FBtr0079752	72	33	F	2
+input1.bam	FBtr0079752	72	52	F	2
+input1.bam	FBtr0079752	72	72	F	0
+input1.bam	FBtr0079820	74	1	F	0
+input1.bam	FBtr0079820	74	45	F	1
+input1.bam	FBtr0079820	74	46	F	2
+input1.bam	FBtr0079820	74	48	F	1
+input1.bam	FBtr0079820	74	49	F	1
+input1.bam	FBtr0079820	74	51	F	1
+input1.bam	FBtr0079820	74	54	F	4
+input1.bam	FBtr0079820	74	55	F	1
+input1.bam	FBtr0079820	74	56	F	2
+input1.bam	FBtr0079820	74	74	F	0
+input1.bam	FBtr0080609	72	1	F	13
+input1.bam	FBtr0080609	72	3	F	2
+input1.bam	FBtr0080609	72	4	F	10
+input1.bam	FBtr0080609	72	5	F	2
+input1.bam	FBtr0080609	72	7	F	19
+input1.bam	FBtr0080609	72	8	F	4
+input1.bam	FBtr0080609	72	9	F	3
+input1.bam	FBtr0080609	72	12	F	1
+input1.bam	FBtr0080609	72	15	F	1
+input1.bam	FBtr0080609	72	16	F	1
+input1.bam	FBtr0080609	72	17	F	2
+input1.bam	FBtr0080609	72	19	F	1
+input1.bam	FBtr0080609	72	20	F	1
+input1.bam	FBtr0080609	72	42	F	1
+input1.bam	FBtr0080609	72	51	F	1
+input1.bam	FBtr0080609	72	52	F	1
+input1.bam	FBtr0080609	72	72	F	0
+input1.bam	FBtr0080644	72	1	F	1
+input1.bam	FBtr0080644	72	4	F	2
+input1.bam	FBtr0080644	72	7	F	1
+input1.bam	FBtr0080644	72	12	F	2
+input1.bam	FBtr0080644	72	72	F	0
+input1.bam	FBtr0080646	72	1	F	1
+input1.bam	FBtr0080646	72	6	F	1
+input1.bam	FBtr0080646	72	7	F	1
+input1.bam	FBtr0080646	72	72	F	0
+input1.bam	FBtr0080647	72	1	F	3
+input1.bam	FBtr0080647	72	3	F	1
+input1.bam	FBtr0080647	72	6	F	2
+input1.bam	FBtr0080647	72	8	F	1
+input1.bam	FBtr0080647	72	11	F	2
+input1.bam	FBtr0080647	72	12	F	1
+input1.bam	FBtr0080647	72	72	F	0
+input1.bam	FBtr0080660	72	1	F	0
+input1.bam	FBtr0080660	72	4	F	4
+input1.bam	FBtr0080660	72	7	F	3
+input1.bam	FBtr0080660	72	72	F	0
+input1.bam	FBtr0080663	71	1	F	22
+input1.bam	FBtr0080663	71	3	F	56
+input1.bam	FBtr0080663	71	4	F	4
+input1.bam	FBtr0080663	71	7	F	1
+input1.bam	FBtr0080663	71	8	F	4
+input1.bam	FBtr0080663	71	12	F	2
+input1.bam	FBtr0080663	71	14	F	2
+input1.bam	FBtr0080663	71	15	F	1
+input1.bam	FBtr0080663	71	16	F	3
+input1.bam	FBtr0080663	71	17	F	7
+input1.bam	FBtr0080663	71	26	F	1
+input1.bam	FBtr0080663	71	32	F	2
+input1.bam	FBtr0080663	71	50	F	1
+input1.bam	FBtr0080663	71	51	F	9
+input1.bam	FBtr0080663	71	71	F	0
+input1.bam	FBtr0080664	71	1	F	16
+input1.bam	FBtr0080664	71	3	F	56
+input1.bam	FBtr0080664	71	4	F	4
+input1.bam	FBtr0080664	71	6	F	1
+input1.bam	FBtr0080664	71	7	F	1
+input1.bam	FBtr0080664	71	8	F	4
+input1.bam	FBtr0080664	71	9	F	1
+input1.bam	FBtr0080664	71	11	F	3
+input1.bam	FBtr0080664	71	12	F	3
+input1.bam	FBtr0080664	71	13	F	2
+input1.bam	FBtr0080664	71	14	F	3
+input1.bam	FBtr0080664	71	16	F	2
+input1.bam	FBtr0080664	71	17	F	10
+input1.bam	FBtr0080664	71	18	F	1
+input1.bam	FBtr0080664	71	21	F	1
+input1.bam	FBtr0080664	71	28	F	2
+input1.bam	FBtr0080664	71	32	F	1
+input1.bam	FBtr0080664	71	33	F	1
+input1.bam	FBtr0080664	71	34	F	1
+input1.bam	FBtr0080664	71	35	F	1
+input1.bam	FBtr0080664	71	36	F	1
+input1.bam	FBtr0080664	71	37	F	1
+input1.bam	FBtr0080664	71	38	F	1
+input1.bam	FBtr0080664	71	50	F	2
+input1.bam	FBtr0080664	71	51	F	7
+input1.bam	FBtr0080664	71	52	F	1
+input1.bam	FBtr0080664	71	56	F	1
+input1.bam	FBtr0080664	71	71	F	0
+input_new2.bam	FBtr0070001	72	1	F	1
+input_new2.bam	FBtr0070001	72	12	F	1
+input_new2.bam	FBtr0070001	72	13	F	1
+input_new2.bam	FBtr0070001	72	18	F	1
+input_new2.bam	FBtr0070001	72	19	F	1
+input_new2.bam	FBtr0070001	72	28	F	1
+input_new2.bam	FBtr0070001	72	32	F	3
+input_new2.bam	FBtr0070001	72	53	F	2
+input_new2.bam	FBtr0070001	72	56	F	2
+input_new2.bam	FBtr0070001	72	57	F	1
+input_new2.bam	FBtr0070001	72	58	F	10
+input_new2.bam	FBtr0070001	72	72	F	0
+input_new2.bam	FBtr0070533	72	1	F	0
+input_new2.bam	FBtr0070533	72	15	F	1
+input_new2.bam	FBtr0070533	72	16	F	2
+input_new2.bam	FBtr0070533	72	17	F	2
+input_new2.bam	FBtr0070533	72	19	F	1
+input_new2.bam	FBtr0070533	72	20	F	1
+input_new2.bam	FBtr0070533	72	21	F	4
+input_new2.bam	FBtr0070533	72	22	F	20
+input_new2.bam	FBtr0070533	72	23	F	1
+input_new2.bam	FBtr0070533	72	24	F	6
+input_new2.bam	FBtr0070533	72	25	F	5
+input_new2.bam	FBtr0070533	72	27	F	1
+input_new2.bam	FBtr0070533	72	39	F	1
+input_new2.bam	FBtr0070533	72	72	F	0
+input_new2.bam	FBtr0070603	72	1	F	0
+input_new2.bam	FBtr0070603	72	12	F	2
+input_new2.bam	FBtr0070603	72	17	F	6
+input_new2.bam	FBtr0070603	72	19	F	3
+input_new2.bam	FBtr0070603	72	20	F	2
+input_new2.bam	FBtr0070603	72	21	F	1
+input_new2.bam	FBtr0070603	72	22	F	21
+input_new2.bam	FBtr0070603	72	25	F	1
+input_new2.bam	FBtr0070603	72	27	F	2
+input_new2.bam	FBtr0070603	72	28	F	2
+input_new2.bam	FBtr0070603	72	30	F	2
+input_new2.bam	FBtr0070603	72	31	F	2
+input_new2.bam	FBtr0070603	72	34	F	4
+input_new2.bam	FBtr0070603	72	35	F	2
+input_new2.bam	FBtr0070603	72	37	F	2
+input_new2.bam	FBtr0070603	72	38	F	2
+input_new2.bam	FBtr0070603	72	41	F	3
+input_new2.bam	FBtr0070603	72	51	F	2
+input_new2.bam	FBtr0070603	72	53	F	2
+input_new2.bam	FBtr0070603	72	72	F	0
+input_new2.bam	FBtr0070604	72	1	F	0
+input_new2.bam	FBtr0070604	72	3	F	1
+input_new2.bam	FBtr0070604	72	31	F	1
+input_new2.bam	FBtr0070604	72	32	F	5
+input_new2.bam	FBtr0070604	72	40	F	1
+input_new2.bam	FBtr0070604	72	53	F	3
+input_new2.bam	FBtr0070604	72	56	F	4
+input_new2.bam	FBtr0070604	72	57	F	18
+input_new2.bam	FBtr0070604	72	58	F	22
+input_new2.bam	FBtr0070604	72	72	F	0
+input_new2.bam	FBtr0070911	73	1	F	0
+input_new2.bam	FBtr0070911	73	11	F	1
+input_new2.bam	FBtr0070911	73	32	F	1
+input_new2.bam	FBtr0070911	73	48	F	1
+input_new2.bam	FBtr0070911	73	73	F	0
+input_new2.bam	FBtr0078490	72	1	F	3
+input_new2.bam	FBtr0078490	72	13	F	2
+input_new2.bam	FBtr0078490	72	14	F	4
+input_new2.bam	FBtr0078490	72	20	F	1
+input_new2.bam	FBtr0078490	72	30	F	1
+input_new2.bam	FBtr0078490	72	38	F	2
+input_new2.bam	FBtr0078490	72	41	F	1
+input_new2.bam	FBtr0078490	72	72	F	0
+input_new2.bam	FBtr0078580	72	1	F	146
+input_new2.bam	FBtr0078580	72	11	F	1
+input_new2.bam	FBtr0078580	72	13	F	1
+input_new2.bam	FBtr0078580	72	15	F	3
+input_new2.bam	FBtr0078580	72	16	F	5
+input_new2.bam	FBtr0078580	72	17	F	2
+input_new2.bam	FBtr0078580	72	18	F	9
+input_new2.bam	FBtr0078580	72	19	F	20
+input_new2.bam	FBtr0078580	72	20	F	21
+input_new2.bam	FBtr0078580	72	21	F	55
+input_new2.bam	FBtr0078580	72	22	F	1
+input_new2.bam	FBtr0078580	72	23	F	11
+input_new2.bam	FBtr0078580	72	24	F	24
+input_new2.bam	FBtr0078580	72	25	F	20
+input_new2.bam	FBtr0078580	72	26	F	19
+input_new2.bam	FBtr0078580	72	27	F	9
+input_new2.bam	FBtr0078580	72	28	F	2
+input_new2.bam	FBtr0078580	72	29	F	9
+input_new2.bam	FBtr0078580	72	30	F	2
+input_new2.bam	FBtr0078580	72	31	F	1
+input_new2.bam	FBtr0078580	72	40	F	5
+input_new2.bam	FBtr0078580	72	43	F	1
+input_new2.bam	FBtr0078580	72	52	F	3
+input_new2.bam	FBtr0078580	72	72	F	0
+input_new2.bam	FBtr0078790	73	1	F	0
+input_new2.bam	FBtr0078790	73	17	F	1
+input_new2.bam	FBtr0078790	73	41	F	2
+input_new2.bam	FBtr0078790	73	42	F	1
+input_new2.bam	FBtr0078790	73	46	F	1
+input_new2.bam	FBtr0078790	73	51	F	1
+input_new2.bam	FBtr0078790	73	52	F	2
+input_new2.bam	FBtr0078790	73	54	F	2
+input_new2.bam	FBtr0078790	73	73	F	0
+input_new2.bam	FBtr0079064	72	1	F	0
+input_new2.bam	FBtr0079064	72	72	F	0
+input_new2.bam	FBtr0079090	72	1	F	1
+input_new2.bam	FBtr0079090	72	16	F	1
+input_new2.bam	FBtr0079090	72	20	F	1
+input_new2.bam	FBtr0079090	72	33	F	1
+input_new2.bam	FBtr0079090	72	35	F	1
+input_new2.bam	FBtr0079090	72	52	F	2
+input_new2.bam	FBtr0079090	72	72	F	0
+input_new2.bam	FBtr0079338	73	1	F	0
+input_new2.bam	FBtr0079338	73	12	F	2
+input_new2.bam	FBtr0079338	73	13	F	4
+input_new2.bam	FBtr0079338	73	14	F	6
+input_new2.bam	FBtr0079338	73	16	F	4
+input_new2.bam	FBtr0079338	73	17	F	2
+input_new2.bam	FBtr0079338	73	18	F	1
+input_new2.bam	FBtr0079338	73	39	F	1
+input_new2.bam	FBtr0079338	73	41	F	2
+input_new2.bam	FBtr0079338	73	42	F	1
+input_new2.bam	FBtr0079338	73	73	F	0
+input_new2.bam	FBtr0079528	71	1	F	2
+input_new2.bam	FBtr0079528	71	3	F	1
+input_new2.bam	FBtr0079528	71	10	F	4
+input_new2.bam	FBtr0079528	71	11	F	3
+input_new2.bam	FBtr0079528	71	13	F	4
+input_new2.bam	FBtr0079528	71	14	F	17
+input_new2.bam	FBtr0079528	71	15	F	19
+input_new2.bam	FBtr0079528	71	16	F	10
+input_new2.bam	FBtr0079528	71	17	F	12
+input_new2.bam	FBtr0079528	71	18	F	13
+input_new2.bam	FBtr0079528	71	19	F	6
+input_new2.bam	FBtr0079528	71	20	F	7
+input_new2.bam	FBtr0079528	71	21	F	13
+input_new2.bam	FBtr0079528	71	22	F	5
+input_new2.bam	FBtr0079528	71	23	F	1
+input_new2.bam	FBtr0079528	71	30	F	1
+input_new2.bam	FBtr0079528	71	31	F	2
+input_new2.bam	FBtr0079528	71	32	F	39
+input_new2.bam	FBtr0079528	71	33	F	4
+input_new2.bam	FBtr0079528	71	34	F	27
+input_new2.bam	FBtr0079528	71	35	F	122
+input_new2.bam	FBtr0079528	71	36	F	6
+input_new2.bam	FBtr0079528	71	37	F	21
+input_new2.bam	FBtr0079528	71	38	F	12
+input_new2.bam	FBtr0079528	71	43	F	1
+input_new2.bam	FBtr0079528	71	46	F	1
+input_new2.bam	FBtr0079528	71	50	F	2
+input_new2.bam	FBtr0079528	71	51	F	4
+input_new2.bam	FBtr0079528	71	53	F	1
+input_new2.bam	FBtr0079528	71	56	F	2
+input_new2.bam	FBtr0079528	71	57	F	3
+input_new2.bam	FBtr0079528	71	71	F	0
+input_new2.bam	FBtr0079596	73	1	F	22
+input_new2.bam	FBtr0079596	73	2	F	1
+input_new2.bam	FBtr0079596	73	3	F	8
+input_new2.bam	FBtr0079596	73	4	F	5
+input_new2.bam	FBtr0079596	73	5	F	9
+input_new2.bam	FBtr0079596	73	6	F	1
+input_new2.bam	FBtr0079596	73	8	F	2
+input_new2.bam	FBtr0079596	73	9	F	2
+input_new2.bam	FBtr0079596	73	11	F	18
+input_new2.bam	FBtr0079596	73	12	F	44
+input_new2.bam	FBtr0079596	73	13	F	40
+input_new2.bam	FBtr0079596	73	14	F	36
+input_new2.bam	FBtr0079596	73	15	F	81
+input_new2.bam	FBtr0079596	73	16	F	13
+input_new2.bam	FBtr0079596	73	17	F	11
+input_new2.bam	FBtr0079596	73	18	F	12
+input_new2.bam	FBtr0079596	73	19	F	4
+input_new2.bam	FBtr0079596	73	22	F	2
+input_new2.bam	FBtr0079596	73	42	F	1
+input_new2.bam	FBtr0079596	73	53	F	3
+input_new2.bam	FBtr0079596	73	59	R	1
+input_new2.bam	FBtr0079596	73	73	F	0
+input_new2.bam	FBtr0079677	72	1	F	2
+input_new2.bam	FBtr0079677	72	15	F	1
+input_new2.bam	FBtr0079677	72	24	F	1
+input_new2.bam	FBtr0079677	72	43	F	1
+input_new2.bam	FBtr0079677	72	52	F	1
+input_new2.bam	FBtr0079677	72	54	F	1
+input_new2.bam	FBtr0079677	72	72	F	0
+input_new2.bam	FBtr0079690	72	1	F	1
+input_new2.bam	FBtr0079690	72	15	F	1
+input_new2.bam	FBtr0079690	72	17	F	1
+input_new2.bam	FBtr0079690	72	19	F	1
+input_new2.bam	FBtr0079690	72	21	F	1
+input_new2.bam	FBtr0079690	72	72	F	0
+input_new2.bam	FBtr0079692	73	1	F	0
+input_new2.bam	FBtr0079692	73	4	F	1
+input_new2.bam	FBtr0079692	73	7	F	1
+input_new2.bam	FBtr0079692	73	12	F	1
+input_new2.bam	FBtr0079692	73	15	F	1
+input_new2.bam	FBtr0079692	73	73	F	0
+input_new2.bam	FBtr0079693	72	1	F	3
+input_new2.bam	FBtr0079693	72	17	F	2
+input_new2.bam	FBtr0079693	72	20	F	1
+input_new2.bam	FBtr0079693	72	45	F	1
+input_new2.bam	FBtr0079693	72	52	F	1
+input_new2.bam	FBtr0079693	72	54	F	1
+input_new2.bam	FBtr0079693	72	72	F	0
+input_new2.bam	FBtr0079694	72	1	F	2
+input_new2.bam	FBtr0079694	72	16	F	1
+input_new2.bam	FBtr0079694	72	17	F	1
+input_new2.bam	FBtr0079694	72	18	F	1
+input_new2.bam	FBtr0079694	72	52	F	1
+input_new2.bam	FBtr0079694	72	72	F	0
+input_new2.bam	FBtr0079702	72	1	F	2
+input_new2.bam	FBtr0079702	72	52	F	2
+input_new2.bam	FBtr0079702	72	72	F	0
+input_new2.bam	FBtr0079728	72	1	F	3
+input_new2.bam	FBtr0079728	72	20	F	1
+input_new2.bam	FBtr0079728	72	52	F	2
+input_new2.bam	FBtr0079728	72	72	F	0
+input_new2.bam	FBtr0079729	72	1	F	1
+input_new2.bam	FBtr0079729	72	19	F	1
+input_new2.bam	FBtr0079729	72	33	F	1
+input_new2.bam	FBtr0079729	72	53	F	1
+input_new2.bam	FBtr0079729	72	72	F	0
+input_new2.bam	FBtr0079752	72	1	F	0
+input_new2.bam	FBtr0079752	72	49	F	1
+input_new2.bam	FBtr0079752	72	52	F	1
+input_new2.bam	FBtr0079752	72	72	F	0
+input_new2.bam	FBtr0079820	74	1	F	0
+input_new2.bam	FBtr0079820	74	39	F	1
+input_new2.bam	FBtr0079820	74	52	F	1
+input_new2.bam	FBtr0079820	74	53	F	28
+input_new2.bam	FBtr0079820	74	54	F	26
+input_new2.bam	FBtr0079820	74	55	F	10
+input_new2.bam	FBtr0079820	74	56	F	2
+input_new2.bam	FBtr0079820	74	57	F	6
+input_new2.bam	FBtr0079820	74	58	F	5
+input_new2.bam	FBtr0079820	74	59	F	11
+input_new2.bam	FBtr0079820	74	60	F	19
+input_new2.bam	FBtr0079820	74	74	F	0
+input_new2.bam	FBtr0080609	72	1	F	0
+input_new2.bam	FBtr0080609	72	20	F	1
+input_new2.bam	FBtr0080609	72	21	F	2
+input_new2.bam	FBtr0080609	72	22	F	1
+input_new2.bam	FBtr0080609	72	33	F	1
+input_new2.bam	FBtr0080609	72	39	F	1
+input_new2.bam	FBtr0080609	72	52	F	1
+input_new2.bam	FBtr0080609	72	53	F	1
+input_new2.bam	FBtr0080609	72	72	F	0
+input_new2.bam	FBtr0080644	72	1	F	0
+input_new2.bam	FBtr0080644	72	57	F	1
+input_new2.bam	FBtr0080644	72	58	F	7
+input_new2.bam	FBtr0080644	72	72	F	0
+input_new2.bam	FBtr0080646	72	1	F	0
+input_new2.bam	FBtr0080646	72	51	F	1
+input_new2.bam	FBtr0080646	72	57	F	2
+input_new2.bam	FBtr0080646	72	58	F	9
+input_new2.bam	FBtr0080646	72	72	F	0
+input_new2.bam	FBtr0080647	72	1	F	1
+input_new2.bam	FBtr0080647	72	57	F	4
+input_new2.bam	FBtr0080647	72	58	F	7
+input_new2.bam	FBtr0080647	72	72	F	0
+input_new2.bam	FBtr0080660	72	1	F	0
+input_new2.bam	FBtr0080660	72	58	F	11
+input_new2.bam	FBtr0080660	72	72	F	0
+input_new2.bam	FBtr0080663	71	1	F	2
+input_new2.bam	FBtr0080663	71	11	F	1
+input_new2.bam	FBtr0080663	71	12	F	4
+input_new2.bam	FBtr0080663	71	13	F	4
+input_new2.bam	FBtr0080663	71	14	F	22
+input_new2.bam	FBtr0080663	71	15	F	14
+input_new2.bam	FBtr0080663	71	16	F	5
+input_new2.bam	FBtr0080663	71	17	F	12
+input_new2.bam	FBtr0080663	71	18	F	5
+input_new2.bam	FBtr0080663	71	19	F	6
+input_new2.bam	FBtr0080663	71	20	F	6
+input_new2.bam	FBtr0080663	71	21	F	13
+input_new2.bam	FBtr0080663	71	22	F	3
+input_new2.bam	FBtr0080663	71	31	F	1
+input_new2.bam	FBtr0080663	71	50	F	2
+input_new2.bam	FBtr0080663	71	51	F	1
+input_new2.bam	FBtr0080663	71	52	F	2
+input_new2.bam	FBtr0080663	71	57	F	3
+input_new2.bam	FBtr0080663	71	71	F	0
+input_new2.bam	FBtr0080664	71	1	F	1
+input_new2.bam	FBtr0080664	71	3	F	2
+input_new2.bam	FBtr0080664	71	10	F	1
+input_new2.bam	FBtr0080664	71	11	F	2
+input_new2.bam	FBtr0080664	71	12	F	3
+input_new2.bam	FBtr0080664	71	13	F	11
+input_new2.bam	FBtr0080664	71	14	F	11
+input_new2.bam	FBtr0080664	71	15	F	17
+input_new2.bam	FBtr0080664	71	16	F	15
+input_new2.bam	FBtr0080664	71	17	F	13
+input_new2.bam	FBtr0080664	71	18	F	10
+input_new2.bam	FBtr0080664	71	19	F	8
+input_new2.bam	FBtr0080664	71	20	F	1
+input_new2.bam	FBtr0080664	71	21	F	15
+input_new2.bam	FBtr0080664	71	22	F	6
+input_new2.bam	FBtr0080664	71	24	F	1
+input_new2.bam	FBtr0080664	71	30	F	1
+input_new2.bam	FBtr0080664	71	31	F	3
+input_new2.bam	FBtr0080664	71	32	F	39
+input_new2.bam	FBtr0080664	71	33	F	4
+input_new2.bam	FBtr0080664	71	34	F	37
+input_new2.bam	FBtr0080664	71	35	F	135
+input_new2.bam	FBtr0080664	71	36	F	8
+input_new2.bam	FBtr0080664	71	37	F	25
+input_new2.bam	FBtr0080664	71	38	F	8
+input_new2.bam	FBtr0080664	71	39	F	1
+input_new2.bam	FBtr0080664	71	42	F	1
+input_new2.bam	FBtr0080664	71	47	F	1
+input_new2.bam	FBtr0080664	71	50	F	2
+input_new2.bam	FBtr0080664	71	52	F	1
+input_new2.bam	FBtr0080664	71	53	F	1
+input_new2.bam	FBtr0080664	71	56	F	1
+input_new2.bam	FBtr0080664	71	57	F	2
+input_new2.bam	FBtr0080664	71	62	R	1
+input_new2.bam	FBtr0080664	71	71	F	0
+input_new2.bam	FBtr0080664	71	71	R	1
Binary file test-data/input1_input2new_norm_1_2_single_plot_counts.pdf has changed
Binary file test-data/input1_min20_max30_single_plot_size.pdf has changed
--- a/test-data/input1_min20_max30_size.tab	Tue Apr 10 10:13:04 2018 -0400
+++ b/test-data/input1_min20_max30_size.tab	Sat Oct 06 05:24:15 2018 -0400
@@ -153,6 +153,8 @@
 input1.bam	FBtr0079694	R	23	0
 input1.bam	FBtr0079694	R	24	0
 input1.bam	FBtr0079694	R	25	0
+input1.bam	FBtr0079702	F	10	0
+input1.bam	FBtr0079702	R	10	0
 input1.bam	FBtr0079728	F	20	1
 input1.bam	FBtr0079728	F	21	0
 input1.bam	FBtr0079728	F	22	0
Binary file test-data/input_new2.bam has changed