From: martinahansen Date: Fri, 11 Feb 2011 11:09:21 +0000 (+0000) Subject: added xy-coord extraction code to sff.rb X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=f144f1cd41f47ad47f9021a6db79381fe05ede25;p=biopieces.git added xy-coord extraction code to sff.rb git-svn-id: http://biopieces.googlecode.com/svn/trunk@1268 74ccb610-7750-0410-82ae-013aeee3265d --- diff --git a/code_ruby/Maasha/lib/sff.rb b/code_ruby/Maasha/lib/sff.rb index cb1fa23..f8b1110 100644 --- a/code_ruby/Maasha/lib/sff.rb +++ b/code_ruby/Maasha/lib/sff.rb @@ -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