Class: ProtXMLToGFFTool::CDSInfo

Inherits:
Object
  • Object
show all
Defined in:
lib/protk/protxml_to_gff_tool.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#coding_sequencesObject

Returns the value of attribute coding_sequences.



58
59
60
# File 'lib/protk/protxml_to_gff_tool.rb', line 58

def coding_sequences
  @coding_sequences
end

#endObject

Returns the value of attribute end.



57
58
59
# File 'lib/protk/protxml_to_gff_tool.rb', line 57

def end
  @end
end

#fasta_idObject

Returns the value of attribute fasta_id.



51
52
53
# File 'lib/protk/protxml_to_gff_tool.rb', line 51

def fasta_id
  @fasta_id
end

#frameObject

Returns the value of attribute frame.



53
54
55
# File 'lib/protk/protxml_to_gff_tool.rb', line 53

def frame
  @frame
end

#gene_idObject

Returns the value of attribute gene_id.



60
61
62
# File 'lib/protk/protxml_to_gff_tool.rb', line 60

def gene_id
  @gene_id
end

#is_sixframeObject

Returns the value of attribute is_sixframe.



59
60
61
# File 'lib/protk/protxml_to_gff_tool.rb', line 59

def is_sixframe
  @is_sixframe
end

#nameObject

Returns the value of attribute name.



54
55
56
# File 'lib/protk/protxml_to_gff_tool.rb', line 54

def name
  @name
end

#scaffoldObject

Returns the value of attribute scaffold.



55
56
57
# File 'lib/protk/protxml_to_gff_tool.rb', line 55

def scaffold
  @scaffold
end

#startObject

Returns the value of attribute start.



56
57
58
# File 'lib/protk/protxml_to_gff_tool.rb', line 56

def start
  @start
end

#strandObject

Returns the value of attribute strand.



52
53
54
# File 'lib/protk/protxml_to_gff_tool.rb', line 52

def strand
  @strand
end

Instance Method Details

#overlap(candidate_entry) ⇒ Object



62
63
64
65
66
67
68
# File 'lib/protk/protxml_to_gff_tool.rb', line 62

def overlap(candidate_entry)
  return false if candidate_entry.scaffold!=self.scaffold
  return false if strand!=self.strand
  return false if candidate_entry.start >= self.end
  return false if self.start <= candidate_entry.end 
  return true
end