diff small_rna_maps.py @ 28:14adf24603b6 draft

planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/small_rna_maps commit ebb322e2ed6989d2a7520e8c5ffc7a7477907aef
author artbio
date Thu, 25 Apr 2019 12:49:05 -0400
parents fe1a9cfaf5c3
children 8b5695592784
line wrap: on
line diff
--- a/small_rna_maps.py	Wed Apr 24 11:18:24 2019 -0400
+++ b/small_rna_maps.py	Thu Apr 25 12:49:05 2019 -0400
@@ -89,12 +89,8 @@
             else:
                 for read in bam_object.fetch(chrom):
                     positions = read.positions  # a list of covered positions
-                    if read.is_reverse:
-                        map_dictionary[(chrom, positions[-1]+1, 'F')].append(
-                                        read.query_alignment_length)
-                    else:
-                        map_dictionary[(chrom, positions[0]+1, 'F')].append(
-                                        read.query_alignment_length)
+                    map_dictionary[(chrom, positions[0]+1, 'F')].append(
+                                    read.query_alignment_length)
         return map_dictionary
 
     def grouper(self, iterable, clust_distance):