Class: Bio::Transmembrane::ConfidencedTransmembraneDomain

Inherits:
TransmembraneDomainDefinition show all
Defined in:
lib/bio/transmembrane.rb

Instance Attribute Summary collapse

Attributes inherited from TransmembraneDomainDefinition

#start, #stop

Instance Method Summary collapse

Methods inherited from TransmembraneDomainDefinition

#initialize, #intersection, #length, #overlap_length, #sequence

Constructor Details

This class inherits a constructor from Bio::Transmembrane::TransmembraneDomainDefinition

Instance Attribute Details

#confidenceObject

Returns the value of attribute confidence.



126
127
128
# File 'lib/bio/transmembrane.rb', line 126

def confidence
  @confidence
end

Instance Method Details

#<=>(other) ⇒ Object



128
129
130
131
132
# File 'lib/bio/transmembrane.rb', line 128

def <=>(other)
  return start<=>other.start if start<=>other.start
  return stop<=>other.start if stop<=>other.stop
  return confidence <=> other.confidence
end

#==(other) ⇒ Object



134
135
136
137
138
# File 'lib/bio/transmembrane.rb', line 134

def ==(other)
  start == other.start and
  stop == other.stop and
  confidence == other.confidence
end