Enum gapi_grpc::google::genomics::v1::cigar_unit::Operation[][src]

#[repr(i32)]pub enum Operation {
    Unspecified,
    AlignmentMatch,
    Insert,
    Delete,
    Skip,
    ClipSoft,
    ClipHard,
    Pad,
    SequenceMatch,
    SequenceMismatch,
}

Describes the different types of CIGAR alignment operations that exist. Used wherever CIGAR alignments are used.

Variants

Unspecified
AlignmentMatch

An alignment match indicates that a sequence can be aligned to the reference without evidence of an INDEL. Unlike the SEQUENCE_MATCH and SEQUENCE_MISMATCH operators, the ALIGNMENT_MATCH operator does not indicate whether the reference and read sequences are an exact match. This operator is equivalent to SAM’s M.

Insert

The insert operator indicates that the read contains evidence of bases being inserted into the reference. This operator is equivalent to SAM’s I.

Delete

The delete operator indicates that the read contains evidence of bases being deleted from the reference. This operator is equivalent to SAM’s D.

Skip

The skip operator indicates that this read skips a long segment of the reference, but the bases have not been deleted. This operator is commonly used when working with RNA-seq data, where reads may skip long segments of the reference between exons. This operator is equivalent to SAM’s N.

ClipSoft

The soft clip operator indicates that bases at the start/end of a read have not been considered during alignment. This may occur if the majority of a read maps, except for low quality bases at the start/end of a read. This operator is equivalent to SAM’s S. Bases that are soft clipped will still be stored in the read.

ClipHard

The hard clip operator indicates that bases at the start/end of a read have been omitted from this alignment. This may occur if this linear alignment is part of a chimeric alignment, or if the read has been trimmed (for example, during error correction or to trim poly-A tails for RNA-seq). This operator is equivalent to SAM’s H.

Pad

The pad operator indicates that there is padding in an alignment. This operator is equivalent to SAM’s P.

SequenceMatch

This operator indicates that this portion of the aligned sequence exactly matches the reference. This operator is equivalent to SAM’s =.

SequenceMismatch

This operator indicates that this portion of the aligned sequence is an alignment match to the reference, but a sequence mismatch. This can indicate a SNP or a read error. This operator is equivalent to SAM’s X.

Implementations

impl Operation[src]

pub fn is_valid(value: i32) -> bool[src]

Returns true if value is a variant of Operation.

pub fn from_i32(value: i32) -> Option<Operation>[src]

Converts an i32 to a Operation, or None if value is not a valid variant.

Trait Implementations

impl Clone for Operation[src]

impl Copy for Operation[src]

impl Debug for Operation[src]

impl Default for Operation[src]

impl Eq for Operation[src]

impl From<Operation> for i32[src]

impl Hash for Operation[src]

impl Ord for Operation[src]

impl PartialEq<Operation> for Operation[src]

impl PartialOrd<Operation> for Operation[src]

impl StructuralEq for Operation[src]

impl StructuralPartialEq for Operation[src]

Auto Trait Implementations

impl RefUnwindSafe for Operation

impl Send for Operation

impl Sync for Operation

impl Unpin for Operation

impl UnwindSafe for Operation

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> IntoRequest<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]

impl<T> WithSubscriber for T[src]