Class: Read
- Inherits:
-
Object
- Object
- Read
- Defined in:
- lib/scbi_ace/read.rb
Overview
Description: This class provided the methods to add Reads data —- Author: Noe Fernandez Pozo —— Date: 31-May-2011
Instance Attribute Summary collapse
-
#align_clip_end ⇒ Object
Returns the value of attribute align_clip_end.
-
#align_clip_start ⇒ Object
Returns the value of attribute align_clip_start.
-
#bs ⇒ Object
Returns the value of attribute bs.
-
#fasta ⇒ Object
Returns the value of attribute fasta.
-
#item_num ⇒ Object
Returns the value of attribute item_num.
-
#name ⇒ Object
Returns the value of attribute name.
-
#orientation ⇒ Object
Returns the value of attribute orientation.
-
#padded_bases_num ⇒ Object
Returns the value of attribute padded_bases_num.
-
#qual_clip_end ⇒ Object
Returns the value of attribute qual_clip_end.
-
#qual_clip_start ⇒ Object
Returns the value of attribute qual_clip_start.
-
#start_in_consensus ⇒ Object
Returns the value of attribute start_in_consensus.
-
#tag_num ⇒ Object
Returns the value of attribute tag_num.
Instance Method Summary collapse
- #add_bs(bs) ⇒ Object
- #add_data(padded_bases_num, item_num, tag_num) ⇒ Object
- #add_fasta(fasta) ⇒ Object
- #add_qual_clipping(qual_clip_start, qual_clip_end, align_clip_start, align_clip_end) ⇒ Object
-
#initialize(name, orientation, start_in_consensus) ⇒ Read
constructor
A new instance of Read.
Constructor Details
#initialize(name, orientation, start_in_consensus) ⇒ Read
Returns a new instance of Read.
11 12 13 14 15 16 |
# File 'lib/scbi_ace/read.rb', line 11 def initialize(name,orientation,start_in_consensus) @name = name @orientation = orientation @start_in_consensus = start_in_consensus @bs = [] end |
Instance Attribute Details
#align_clip_end ⇒ Object
Returns the value of attribute align_clip_end.
9 10 11 |
# File 'lib/scbi_ace/read.rb', line 9 def align_clip_end @align_clip_end end |
#align_clip_start ⇒ Object
Returns the value of attribute align_clip_start.
9 10 11 |
# File 'lib/scbi_ace/read.rb', line 9 def align_clip_start @align_clip_start end |
#bs ⇒ Object
Returns the value of attribute bs.
7 8 9 |
# File 'lib/scbi_ace/read.rb', line 7 def bs @bs end |
#fasta ⇒ Object
Returns the value of attribute fasta.
7 8 9 |
# File 'lib/scbi_ace/read.rb', line 7 def fasta @fasta end |
#item_num ⇒ Object
Returns the value of attribute item_num.
8 9 10 |
# File 'lib/scbi_ace/read.rb', line 8 def item_num @item_num end |
#name ⇒ Object
Returns the value of attribute name.
7 8 9 |
# File 'lib/scbi_ace/read.rb', line 7 def name @name end |
#orientation ⇒ Object
Returns the value of attribute orientation.
7 8 9 |
# File 'lib/scbi_ace/read.rb', line 7 def orientation @orientation end |
#padded_bases_num ⇒ Object
Returns the value of attribute padded_bases_num.
8 9 10 |
# File 'lib/scbi_ace/read.rb', line 8 def padded_bases_num @padded_bases_num end |
#qual_clip_end ⇒ Object
Returns the value of attribute qual_clip_end.
9 10 11 |
# File 'lib/scbi_ace/read.rb', line 9 def qual_clip_end @qual_clip_end end |
#qual_clip_start ⇒ Object
Returns the value of attribute qual_clip_start.
9 10 11 |
# File 'lib/scbi_ace/read.rb', line 9 def qual_clip_start @qual_clip_start end |
#start_in_consensus ⇒ Object
Returns the value of attribute start_in_consensus.
7 8 9 |
# File 'lib/scbi_ace/read.rb', line 7 def start_in_consensus @start_in_consensus end |
#tag_num ⇒ Object
Returns the value of attribute tag_num.
8 9 10 |
# File 'lib/scbi_ace/read.rb', line 8 def tag_num @tag_num end |
Instance Method Details
#add_bs(bs) ⇒ Object
35 36 37 |
# File 'lib/scbi_ace/read.rb', line 35 def add_bs(bs) @bs.push bs end |
#add_data(padded_bases_num, item_num, tag_num) ⇒ Object
22 23 24 25 26 |
# File 'lib/scbi_ace/read.rb', line 22 def add_data(padded_bases_num,item_num,tag_num) @padded_bases_num = padded_bases_num @item_num = item_num @tag_num = tag_num end |
#add_fasta(fasta) ⇒ Object
18 19 20 |
# File 'lib/scbi_ace/read.rb', line 18 def add_fasta(fasta) @fasta = fasta end |
#add_qual_clipping(qual_clip_start, qual_clip_end, align_clip_start, align_clip_end) ⇒ Object
28 29 30 31 32 33 |
# File 'lib/scbi_ace/read.rb', line 28 def add_qual_clipping(qual_clip_start, qual_clip_end, align_clip_start, align_clip_end) @qual_clip_start = qual_clip_start @qual_clip_end = qual_clip_end @align_clip_start = align_clip_start @align_clip_end = align_clip_end end |