[−][src]Struct nom_pdb::secondary_structure::HelixParser
Overview
HELIX records are used to identify the position of helices in the molecule. Helices are named, numbered, and classified by type. The residues where the helix begins and ends are noted, as well as the total length.
Record Format
COLUMNS | DATA TYPE | FIELD | DEFINITION |
---|---|---|---|
1 - 6 | Record name | "HELIX " | |
8 - 10 | Integer | serNum | Serial number of the helix. This starts |
at 1 and increases incrementally. | |||
12 - 14 | LString(3) | helixID | Helix identifier. In addition to a serial |
number, each helix is given an | |||
alphanumeric character helix identifier. | |||
16 - 18 | Residue name | initResName | Name of the initial residue. |
20 | Character | initChainID | Chain identifier for the chain containing |
this helix. | |||
22 - 25 | Integer | initSeqNum | Sequence number of the initial residue. |
26 | AChar | initICode | Insertion code of the initial residue. |
28 - 30 | Residue name | endResName | Name of the terminal residue of the helix. |
32 | Character | endChainID | Chain identifier for the chain containing |
this helix. | |||
34 - 37 | Integer | endSeqNum | Sequence number of the terminal residue. |
38 | AChar | endICode | Insertion code of the terminal residue. |
39 - 40 | Integer | helixClass | Helix class (see below). |
41 - 70 | String | comment | Comment about this helix. |
72 - 76 | Integer | length | Length of this helix. |
Details
Additional HELIX records with different serial numbers and identifiers occur if more than one helix is present. The initial residue of the helix is the N-terminal residue. Helices are classified as follows:
| | CLASS NUMBER | |TYPE OF HELIX | (COLUMNS 39 - 40) | |--------------------------------|------------------------------| |Right-handed alpha (default) | 1 | |Right-handed omega | 2 | |Right-handed pi | 3 | |Right-handed gamma | 4 | |Right-handed 3 - 10 | 5 | |Left-handed alpha | 6 | |Left-handed omega | 7 | |Left-handed gamma | 8 | |2 - 7 ribbon/helix | 9 | |Polyproline | 10 |
Implementations
impl HelixParser
[src]
pub fn parse_helix_class(inp: &[u8]) -> IResult<&[u8], HelixClass>
[src]
Trait Implementations
impl FieldParser for HelixParser
[src]
type Output = Helix
fn parse(inp: &[u8]) -> IResult<&[u8], Self::Output>
[src]
fn parse_into<'a, 'b>(inp: &'a [u8], dst: &'b mut Self::Output) -> &'a [u8]
[src]
fn parse_into_vec<'a>(inp: &'a [u8], dst: &mut Vec<Self::Output>) -> &'a [u8]
[src]
fn parse_into_option<'a>(
inp: &'a [u8],
dst: &mut Option<Self::Output>
) -> &'a [u8]
[src]
inp: &'a [u8],
dst: &mut Option<Self::Output>
) -> &'a [u8]
Auto Trait Implementations
impl RefUnwindSafe for HelixParser
impl Send for HelixParser
impl Sync for HelixParser
impl Unpin for HelixParser
impl UnwindSafe for HelixParser
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,