paf

Struct PafRecord

Source
pub struct PafRecord { /* private fields */ }
Expand description

Struct representing a PAF record.

Implementations§

Source§

impl PafRecord

Source

pub fn new( query_name: String, query_len: u32, query_start: u32, query_end: u32, strand: char, target_name: String, target_len: u32, target_start: u32, target_end: u32, residue_matches: u32, alignment_block_len: u32, mapping_quality: u8, optional: HashMap<String, Tag>, ) -> PafRecord

Create a new PAF record.

Source

pub fn query_name(&self) -> &str

Get the query name.

Source

pub fn query_len(&self) -> u32

Get the query length.

Source

pub fn query_start(&self) -> u32

Get the query start position.

Source

pub fn query_end(&self) -> u32

Get the query end position.

Source

pub fn target_name(&self) -> &str

Get the target name.

Source

pub fn target_len(&self) -> u32

Get the target length.

Source

pub fn target_start(&self) -> u32

Get the target start position.

Source

pub fn target_end(&self) -> u32

Get the target end position.

Source

pub fn residue_matches(&self) -> u32

Get the number of residue matches.

Source

pub fn alignment_block_len(&self) -> u32

Get the alignment block length.

Source

pub fn mapping_quality(&self) -> u8

Get the mapping quality.

Source

pub fn strand(&self) -> char

Get the strand.

Source

pub fn optional_fields(&self) -> &HashMap<String, Tag>

Get all the optional fields.

Source

pub fn tp(&self) -> Option<&char>

Get type of aln: P/primary, S/secondary and I,i/inversion.

Source

pub fn cm(&self) -> Option<&i64>

Get number of minimizers on the chain

Source

pub fn s1(&self) -> Option<&i64>

Get chaining score.

Source

pub fn s2(&self) -> Option<&i64>

Get chaining score of the best secondary chain.

Source

pub fn nm(&self) -> Option<&i64>

Get total number of mismatches and gaps in the alignment.

Source

pub fn md(&self) -> Option<&String>

Get the ref sequence in the alignment.

Source

pub fn as_(&self) -> Option<&i64>

Get DP alignment score.

Source

pub fn sa(&self) -> Option<&String>

Get a list of other supplementary alignments.

Source

pub fn ms(&self) -> Option<&i64>

Get DP score of the max scoring segment in the alignment.

Source

pub fn nn(&self) -> Option<&i64>

Get number of ambiguous bases in the alignment.

Source

pub fn ts(&self) -> Option<&char>

Get transcript strand (splice mode only).

Source

pub fn cg(&self) -> Option<&String>

Get CIGAR string (only in PAF).

Source

pub fn cs(&self) -> Option<&String>

Get difference string.

Source

pub fn dv(&self) -> Option<&f64>

Get approximate per-base sequence divergence.

Source

pub fn de(&self) -> Option<&f64>

Get gap-compressed per-base sequence divergence.

Source

pub fn rl(&self) -> Option<&i64>

Get length of query regions harboring repetitive seeds.

Trait Implementations§

Source§

impl Debug for PafRecord

Source§

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

Formats the value using the given formatter. Read more

Auto Trait Implementations§

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<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

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, U> TryFrom<U> for T
where U: Into<T>,

Source§

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>,

Source§

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.