enum Chem::Protein::SecondaryStructureType

Overview

Members are similar to simplified or reduced secondary structure classification:

Defined in:

chem/protein/secondary_structure.cr

Enum Members

Coil = 0
Extended = 1
Helical = 2

Instance Method Summary

Instance Method Detail

def code : Char #

Returns one-letter secondary structure type code.

Assignment codes are similar to those of simplified DSSP:

  • 'H' : Helical
  • 'E' : Extended
  • 'C' : Coil

[View source]
def coil? #

[View source]
def extended? #

[View source]
def helical? #

[View source]
def min_size : Int32 #

Returns nominal secondary structure type's minimum size.


[View source]
def regular? : Bool #

Returns true if it's a regular secondary structure type, otherwise false.

SecondaryStructureType::Helical.regular?  # => true
SecondaryStructureType::Extended.regular? # => true
SecondaryStructureType::Coil.regular?     # => false

[View source]