Struct noodles_sam::alignment::record::data::field::tag::Tag

source ·
pub struct Tag(/* private fields */);
Expand description

An alignment record data field tag.

Implementations§

source§

impl Tag

source

pub const MIN_MAPPING_QUALITY: Self = _

The smallest template-independent mapping quality in the template (AM).

source

pub const ALIGNMENT_SCORE: Self = _

Alignment score generated by aligner (AS).

source

pub const SAMPLE_BARCODE_SEQUENCE: Self = _

Barcode sequence identifying the sample (BC).

source

pub const BASE_ALIGNMENT_QUALITY_OFFSETS: Self = _

Offset to base alignment quality (BAQ) (BQ).

source

pub const ORIGINAL_UMI_QUALITY_SCORES: Self = _

Phred quality of the unique molecular barcode bases in the OX tag (BZ).

source

pub const CELL_BARCODE_ID: Self = _

Cell identifier (CB).

source

pub const NEXT_HIT_REFERENCE_SEQUENCE_NAME: Self = _

Reference name of the next hit (CC).

source

pub const CIGAR: Self = _

BAM only: CIGAR in BAM’s binary encoding if (and only if) it consists of > 65535 operators (CG).

source

pub const COLOR_EDIT_DISTANCE: Self = _

Edit distance between the color sequence and the color reference (see also NM) (CM).

source

pub const COMMENT: Self = _

Free-text comments (CO).

source

pub const NEXT_HIT_POSITION: Self = _

Leftmost coordinate of the next hit (CP).

source

pub const COLOR_QUALITY_SCORES: Self = _

Color read base qualities (CQ).

source

pub const CELL_BARCODE_SEQUENCE: Self = _

Cellular barcode sequence bases (uncorrected) (CR).

source

pub const COLOR_SEQUENCE: Self = _

Color read sequence (CS).

source

pub const COMPLETE_READ_ANNOTATIONS: Self = _

Complete read annotation tag, used for consensus annotation dummy features (CT).

source

pub const CELL_BARCODE_QUALITY_SCORES: Self = _

Phred quality of the cellular barcode sequence in the CR tag (CY).

source

pub const NEXT_HIT_SEQUENCE: Self = _

The 2nd most likely base calls (E2).

source

pub const SEGMENT_INDEX: Self = _

The index of segment in the template (FI).

source

pub const SEGMENT_SUFFIX: Self = _

Segment suffix (FS).

source

pub const ALTERNATIVE_SEQUENCE: Self = _

Flow signal intensities (FZ).

source

pub const RESERVED_GC: Self = _

Reserved for backwards compatibility reasons (GC).

source

pub const RESERVED_GQ: Self = _

Reserved for backwards compatibility reasons (GQ).

source

pub const RESERVED_GS: Self = _

Reserved for backwards compatibility reasons (GS).

source

pub const PERFECT_HIT_COUNT: Self = _

Number of perfect hits (H0).

source

pub const ONE_DIFFERENCE_HIT_COUNT: Self = _

Number of 1-difference hits (see also NM) (H1).

source

pub const TWO_DIFFERENCE_HIT_COUNT: Self = _

Number of 2-difference hits (H2).

source

pub const HIT_INDEX: Self = _

Query hit index (HI).

source

pub const TOTAL_HIT_COUNT: Self = _

Query hit total count (IH).

source

pub const LIBRARY: Self = _

Library (LB).

source

pub const MATE_CIGAR: Self = _

CIGAR string for mate/next segment (MC).

source

pub const MISMATCHED_POSITIONS: Self = _

String encoding mismatched and deleted reference bases (MD).

source

pub const RESERVED_MF: Self = _

Reserved for backwards compatibility reasons (MF).

source

pub const UMI_ID: Self = _

Molecular identifier (MI).

A string that uniquely identifies the molecule from which the record was derived.

source

pub const BASE_MODIFICATION_PROBABILITIES: Self = _

Base modification probabilities (ML).

source

pub const BASE_MODIFICATIONS: Self = _

Base modifications / methylation (MM).

source

pub const BASE_MODIFICATION_SEQUENCE_LENGTH: Self = _

Length of sequence at the time MM and ML were produced (MN).

source

pub const MATE_MAPPING_QUALITY: Self = _

Mapping quality of the mate/next segment (MQ).

source

pub const ALIGNMENT_HIT_COUNT: Self = _

Number of reported alignments that contain the query in the current record (NH).

source

pub const EDIT_DISTANCE: Self = _

Edit distance to the reference (NM).

source

pub const ORIGINAL_ALIGNMENT: Self = _

Original alignment (OA).

source

pub const ORIGINAL_CIGAR: Self = _

Original CIGAR (deprecated; use OA instead) (OC).

source

pub const ORIGINAL_POSITION: Self = _

Original mapping position (deprecated; use OA instead) (OP).

source

pub const ORIGINAL_QUALITY_SCORES: Self = _

Original base quality (OQ).

source

pub const ORIGINAL_UMI_BARCODE_SEQUENCE: Self = _

Original unique molecular barcode bases (OX).

source

pub const PROGRAM: Self = _

Program (PG).

source

pub const TEMPLATE_LIKELIHOOD: Self = _

Phred likelihood of the template (PQ).

source

pub const PADDED_READ_ANNOTATIONS: Self = _

Read annotations for parse of the padded read sequence (PT).

source

pub const PLATFORM_UNIT: Self = _

Platform unit (PU).

source

pub const MATE_QUALITY_SCORES: Self = _

Phred quality of the mate/next segment sequence in the R2 tag (Q2).

source

pub const SAMPLE_BARCODE_QUALITY_SCORES: Self = _

Phred quality of the sample barcode sequence in the BC tag (QT).

source

pub const UMI_QUALITY_SCORES: Self = _

Quality score of the unique molecular identifier in the RX tag (QX).

source

pub const MATE_SEQUENCE: Self = _

Sequence of the mate/next segment in the template (R2).

source

pub const READ_GROUP: Self = _

Read group (RG).

source

pub const RESERVED_RT: Self = _

Reserved for backwards compatibility reasons (RT).

source

pub const UMI_SEQUENCE: Self = _

Sequence bases of the (possibly corrected) unique molecular identifier (RX).

source

pub const RESERVED_S2: Self = _

Reserved for backwards compatibility reasons (S2).

source

pub const OTHER_ALIGNMENTS: Self = _

Other canonical alignments in a chimeric alignment (SA).

source

pub const TEMPLATE_MAPPING_QUALITY: Self = _

Template-independent mapping quality (SM).

source

pub const RESERVED_SQ: Self = _

Reserved for backwards compatibility reasons (SQ).

source

pub const SEGMENT_COUNT: Self = _

The number of segments in the template (TC).

source

pub const TRANSCRIPT_STRAND: Self = _

Transcript strand (TS).

source

pub const NEXT_HIT_QUALITY_SCORES: Self = _

Phred probability of the 2nd call being wrong conditional on the best being wrong (U2).

source

pub const SEGMENT_LIKELIHOOD: Self = _

Phred likelihood of the segment, conditional on the mapping being correct (UQ).

source

pub const fn new(a: u8, b: u8) -> Self

Creates a tag.

§Examples
use noodles_sam::alignment::record::data::field::Tag;
let tag = Tag::new(b'x', b'n');

Trait Implementations§

source§

impl AsRef<[u8; 2]> for Tag

source§

fn as_ref(&self) -> &[u8; 2]

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl Borrow<[u8; 2]> for Tag

source§

fn borrow(&self) -> &[u8; 2]

Immutably borrows from an owned value. Read more
source§

impl Clone for Tag

source§

fn clone(&self) -> Tag

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for Tag

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl From<[u8; 2]> for Tag

source§

fn from(buf: [u8; 2]) -> Self

Converts to this type from the input type.
source§

impl From<Tag> for [u8; 2]

source§

fn from(tag: Tag) -> Self

Converts to this type from the input type.
source§

impl Hash for Tag

source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
source§

impl Ord for Tag

source§

fn cmp(&self, other: &Tag) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · source§

fn clamp(self, min: Self, max: Self) -> Self
where Self: Sized + PartialOrd,

Restrict a value to a certain interval. Read more
source§

impl PartialEq<[u8; 2]> for Tag

source§

fn eq(&self, other: &[u8; 2]) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq for Tag

source§

fn eq(&self, other: &Tag) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialOrd for Tag

source§

fn partial_cmp(&self, other: &Tag) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

fn lt(&self, other: &Rhs) -> bool

This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

fn le(&self, other: &Rhs) -> bool

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · source§

fn gt(&self, other: &Rhs) -> bool

This method tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

fn ge(&self, other: &Rhs) -> bool

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
source§

impl Copy for Tag

source§

impl Eq for Tag

source§

impl StructuralPartialEq for Tag

Auto Trait Implementations§

§

impl Freeze for Tag

§

impl RefUnwindSafe for Tag

§

impl Send for Tag

§

impl Sync for Tag

§

impl Unpin for Tag

§

impl UnwindSafe for Tag

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<Q, K> Comparable<K> for Q
where Q: Ord + ?Sized, K: Borrow<Q> + ?Sized,

source§

fn compare(&self, key: &K) -> Ordering

Compare self to key and return their ordering.
source§

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

source§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
source§

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

source§

fn equivalent(&self, key: &K) -> bool

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

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

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

fn clone_into(&self, target: &mut T)

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

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

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

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more