Enum google_api_proto::google::genomics::v1::cigar_unit::Operation
source · #[repr(i32)]pub enum Operation {
Unspecified = 0,
AlignmentMatch = 1,
Insert = 2,
Delete = 3,
Skip = 4,
ClipSoft = 5,
ClipHard = 6,
Pad = 7,
SequenceMatch = 8,
SequenceMismatch = 9,
}
Expand description
Describes the different types of CIGAR alignment operations that exist. Used wherever CIGAR alignments are used.
Variants§
Unspecified = 0
AlignmentMatch = 1
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 = 2
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 = 3
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 = 4
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 = 5
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 = 6
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 = 7
The pad operator indicates that there is padding in an alignment. This
operator is equivalent to SAM’s P
.
SequenceMatch = 8
This operator indicates that this portion of the aligned sequence exactly
matches the reference. This operator is equivalent to SAM’s =
.
SequenceMismatch = 9
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§
source§impl Operation
impl Operation
sourcepub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
sourcepub fn from_str_name(value: &str) -> Option<Self>
pub fn from_str_name(value: &str) -> Option<Self>
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementations§
source§impl Ord for Operation
impl Ord for Operation
source§impl PartialEq for Operation
impl PartialEq for Operation
source§impl PartialOrd for Operation
impl PartialOrd for Operation
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moresource§impl TryFrom<i32> for Operation
impl TryFrom<i32> for Operation
§type Error = UnknownEnumValue
type Error = UnknownEnumValue
impl Copy for Operation
impl Eq for Operation
impl StructuralPartialEq for Operation
Auto Trait Implementations§
impl Freeze for Operation
impl RefUnwindSafe for Operation
impl Send for Operation
impl Sync for Operation
impl Unpin for Operation
impl UnwindSafe for Operation
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request