pub struct PafRecord { /* private fields */ }Expand description
Struct representing a PAF record.
Implementations§
Source§impl PafRecord
impl PafRecord
Sourcepub 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
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.
Sourcepub fn query_name(&self) -> &str
pub fn query_name(&self) -> &str
Get the query name.
Sourcepub fn query_start(&self) -> u32
pub fn query_start(&self) -> u32
Get the query start position.
Sourcepub fn target_name(&self) -> &str
pub fn target_name(&self) -> &str
Get the target name.
Sourcepub fn target_len(&self) -> u32
pub fn target_len(&self) -> u32
Get the target length.
Sourcepub fn target_start(&self) -> u32
pub fn target_start(&self) -> u32
Get the target start position.
Sourcepub fn target_end(&self) -> u32
pub fn target_end(&self) -> u32
Get the target end position.
Sourcepub fn residue_matches(&self) -> u32
pub fn residue_matches(&self) -> u32
Get the number of residue matches.
Sourcepub fn alignment_block_len(&self) -> u32
pub fn alignment_block_len(&self) -> u32
Get the alignment block length.
Sourcepub fn mapping_quality(&self) -> u8
pub fn mapping_quality(&self) -> u8
Get the mapping quality.
Sourcepub fn optional_fields(&self) -> &HashMap<String, Tag>
pub fn optional_fields(&self) -> &HashMap<String, Tag>
Get all the optional fields.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PafRecord
impl RefUnwindSafe for PafRecord
impl Send for PafRecord
impl Sync for PafRecord
impl Unpin for PafRecord
impl UnwindSafe for PafRecord
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
Mutably borrows from an owned value. Read more