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.
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 |