Enum noodles_cram::record::feature::Feature[][src]

pub enum Feature {
    Bases(i32Vec<u8>),
    Scores(i32Vec<u8>),
    ReadBase(i32u8u8),
    Substitution(i32u8),
    Insertion(i32Vec<u8>),
    Deletion(i32i32),
    InsertBase(i32u8),
    QualityScore(i32u8),
    ReferenceSkip(i32i32),
    SoftClip(i32Vec<u8>),
    Padding(i32i32),
    HardClip(i32i32),
}
Expand description

A CRAM record feature.

Variants

Bases(i32Vec<u8>)

Tuple Fields

0: i32
1: Vec<u8>

A stretch of bases (position, bases).

Scores(i32Vec<u8>)

Tuple Fields

0: i32
1: Vec<u8>

A stretch of quality scores (position, quality scores).

ReadBase(i32u8u8)

Tuple Fields

0: i32
1: u8
2: u8

A base-quality score pair (position, base, quality score).

Substitution(i32u8)

Tuple Fields

0: i32
1: u8

A base substitution (position, code).

Insertion(i32Vec<u8>)

Tuple Fields

0: i32
1: Vec<u8>

Inserted bases (position, bases).

Deletion(i32i32)

Tuple Fields

0: i32
1: i32

A number of deleted bases (position, length).

InsertBase(i32u8)

Tuple Fields

0: i32
1: u8

A single inserted base (position, base).

QualityScore(i32u8)

Tuple Fields

0: i32
1: u8

A single quality score (position, score).

ReferenceSkip(i32i32)

Tuple Fields

0: i32
1: i32

A number of skipped bases (position, length).

SoftClip(i32Vec<u8>)

Tuple Fields

0: i32
1: Vec<u8>

Soft clipped bases (position, bases).

Padding(i32i32)

Tuple Fields

0: i32
1: i32

A number of padded bases (position, length).

HardClip(i32i32)

Tuple Fields

0: i32
1: i32

A number of hard clipped bases (position, length).

Implementations

Returns the feature code.

Examples
use noodles_cram::record::{feature::Code, Feature};
let feature = Feature::InsertBase(8, b'A');
assert_eq!(feature.code(), Code::InsertBase);

Returns the feature position.

Examples
use noodles_cram::record::Feature;
let feature = Feature::InsertBase(8, b'A');
assert_eq!(feature.position(), 8);

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Compare self to key and return true if they are equal.

Performs the conversion.

Performs the conversion.

Should always be Self

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.