]> git.donarmstrong.com Git - biopieces.git/commitdiff
added xy-coord extraction code to sff.rb
authormartinahansen <martinahansen@74ccb610-7750-0410-82ae-013aeee3265d>
Fri, 11 Feb 2011 11:09:21 +0000 (11:09 +0000)
committermartinahansen <martinahansen@74ccb610-7750-0410-82ae-013aeee3265d>
Fri, 11 Feb 2011 11:09:21 +0000 (11:09 +0000)
git-svn-id: http://biopieces.googlecode.com/svn/trunk@1268 74ccb610-7750-0410-82ae-013aeee3265d

code_ruby/Maasha/lib/sff.rb

index cb1fa2360da133ac83b290a083079056bc207179..f8b1110219c1adfe7dd552e2e72fb700627f9782 100644 (file)
@@ -202,10 +202,10 @@ class Read
     hash[:SEQ_NAME]           = self.name
     hash[:SEQ]                = self.bases
     hash[:SEQ_LEN]            = self.bases.length
-    hash[:CLIP_QUAL_LEFT]     = self.clip_qual_left  - 1
-    hash[:CLIP_QUAL_RIGHT]    = self.clip_qual_right - 1
-    hash[:CLIP_ADAPTOR_LEFT]  = self.clip_adapter_left
-    hash[:CLIP_ADAPTOR_RIGHT] = self.clip_adaptor_right
+    hash[:CLIP_QUAL_LEFT]     = self.clip_qual_left     - 1
+    hash[:CLIP_QUAL_RIGHT]    = self.clip_qual_right    - 1
+    hash[:CLIP_ADAPTOR_LEFT]  = self.clip_adapter_left  - 1
+    hash[:CLIP_ADAPTOR_RIGHT] = self.clip_adaptor_right - 1
     hash[:SCORES]             = self.quality_scores.map { |i| (i += 64).chr }.join ""
     hash[:X_POS]              = self.x_pos
     hash[:Y_POS]              = self.y_pos