Class: Bio::Transmembrane::ConfidencedTransmembraneDomain
- Inherits:
-
TransmembraneDomainDefinition
- Object
- TransmembraneDomainDefinition
- Bio::Transmembrane::ConfidencedTransmembraneDomain
- Defined in:
- lib/bio/transmembrane.rb
Instance Attribute Summary collapse
-
#confidence ⇒ Object
Returns the value of attribute confidence.
Attributes inherited from TransmembraneDomainDefinition
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
#confidence ⇒ Object
Returns the value of attribute confidence.
168 169 170 |
# File 'lib/bio/transmembrane.rb', line 168 def confidence @confidence end |
Instance Method Details
#<=>(other) ⇒ Object
170 171 172 173 174 |
# File 'lib/bio/transmembrane.rb', line 170 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
176 177 178 179 180 |
# File 'lib/bio/transmembrane.rb', line 176 def ==(other) start == other.start and stop == other.stop and confidence == other.confidence end |