Class: Read

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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_endObject

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_startObject

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

#bsObject

Returns the value of attribute bs.



7
8
9
# File 'lib/scbi_ace/read.rb', line 7

def bs
  @bs
end

#fastaObject

Returns the value of attribute fasta.



7
8
9
# File 'lib/scbi_ace/read.rb', line 7

def fasta
  @fasta
end

#item_numObject

Returns the value of attribute item_num.



8
9
10
# File 'lib/scbi_ace/read.rb', line 8

def item_num
  @item_num
end

#nameObject

Returns the value of attribute name.



7
8
9
# File 'lib/scbi_ace/read.rb', line 7

def name
  @name
end

#orientationObject

Returns the value of attribute orientation.



7
8
9
# File 'lib/scbi_ace/read.rb', line 7

def orientation
  @orientation
end

#padded_bases_numObject

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_endObject

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_startObject

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_consensusObject

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_numObject

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