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