From 77a4393e18c67adddf60427a617499ac352bc9d8 Mon Sep 17 00:00:00 2001 From: Chen Yang Date: Thu, 17 Jan 2019 11:22:08 -0800 Subject: [PATCH] remove intermediate print --- .idea/workspace.xml | 41 +++++++++++++------------------------ src/head_align_tail_dist.py | 6 ++++++ 2 files changed, 20 insertions(+), 27 deletions(-) diff --git a/.idea/workspace.xml b/.idea/workspace.xml index 469f3cc..35cc6a6 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -3,9 +3,6 @@ - - - @@ -28,18 +25,7 @@ - - - - - - - - - - - - + @@ -91,7 +77,7 @@ - + @@ -239,7 +225,7 @@ - + @@ -328,13 +314,6 @@ - - - - - - - @@ -344,8 +323,16 @@ - - + + + + + + + + + + diff --git a/src/head_align_tail_dist.py b/src/head_align_tail_dist.py index dc112f9..86d6b26 100644 --- a/src/head_align_tail_dist.py +++ b/src/head_align_tail_dist.py @@ -83,6 +83,7 @@ def get_head_tail(cigar_string): def head_align_tail(prefix, alnm_ftype): + ''' out1 = open(prefix + "_total.txt", 'w') out2 = open(prefix + "_middle.txt", 'w') out3 = open(prefix + "_head.txt", 'w') @@ -90,6 +91,7 @@ def head_align_tail(prefix, alnm_ftype): out5 = open(prefix + "_ht.txt", 'w') out6 = open(prefix + "_ratio.txt", 'w') out7 = open(prefix + "_tail.txt", 'w') + ''' aligned_length = [] total_length = [] @@ -115,6 +117,7 @@ def head_align_tail(prefix, alnm_ftype): if ht != 0: r = float(head) / ht head_vs_ht_ratio.append(r) + ''' out1.write(query[5] + '\n') out2.write(query[3] + '\n') out3.write(query[2] + '\n') @@ -122,6 +125,7 @@ def head_align_tail(prefix, alnm_ftype): out5.write(str(ht) + '\n') out6.write(str(ratio) + '\n') out7.write(str(tail) + '\n') + ''' else: sam_reader = HTSeq.SAM_Reader alnm_file_sam = prefix + "_primary.sam" @@ -143,6 +147,7 @@ def head_align_tail(prefix, alnm_ftype): if head != 0: r = float(head) / ht head_vs_ht_ratio.append(r) + ''' out1.write(str(read_len_total) + '\n') out2.write(str(middle) + '\n') out3.write(str(alnm.read.name) + '\t' + str(head) + '\n') @@ -158,6 +163,7 @@ def head_align_tail(prefix, alnm_ftype): out5.close() out6.close() out7.close() + ''' aligned_length = numpy.array(aligned_length) total_length = numpy.array(total_length)