# `class pdb.PdbSecondary`

Available on all platforms

Secondary structure information written in pdb files. Available secondary structure names are listed in `SecondaryType.hx`.

## Class Fields

### `static function readHelixFromText(text:String):PdbSecondary`

read HELIX record from text and parse it.

### `static function readStrandFromText(text:String):PdbSecondary`

read SHEET record from text and parse it.

## Instance Fields

### `var chainid:String`

chain id of this secondary structure

### `var init:Int`

first index of this secondary structure

### `var last:Int`

last index of this secondary structure

### `var sectype:Int`

secondary structure type. See `SecondaryType.hx` for details.

### `function new(i:Int, l:Int, c:String, st:Int):Void`

Constructor.

- i: first residue index of this secondary structure
- l: last residue index of this secondary structure
- c: chain id of this secondary structure
- st: secondary structure type

### `function get_chainid():String`

getter of `chainid`

### `function get_init():Int`

getter of `init`

### `function get_last():Int`

getter of `last`

### `function get_sectype():Int`

getter of `sectype`

### `function set_chainid(i:String):String`

setter of `chainid`

### `function set_init(i:Int):Int`

setter of `init`

### `function set_last(l:Int):Int`

setter of `last`

### `function set_sectype(t:Int):Int`

setter of `sectype`