pub struct Fragment {
pub bases: Vec<u8>,
pub ref_positions: Vec<u32>,
pub ref_start: u32,
pub is_forward: bool,
pub haplotype_index: usize,
}Expand description
A simulated fragment extracted from a haplotype.
Contains the fragment bases and reference coordinate mapping, plus metadata about the source haplotype and strand.
Fields§
§bases: Vec<u8>Fragment bases in the forward orientation (5’ to 3’).
ref_positions: Vec<u32>Reference position for each base in the fragment.
ref_start: u320-based reference start position of the fragment.
is_forward: boolWhether the fragment is on the forward strand.
haplotype_index: usizeIndex of the haplotype this fragment came from.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Fragment
impl RefUnwindSafe for Fragment
impl Send for Fragment
impl Sync for Fragment
impl Unpin for Fragment
impl UnsafeUnpin for Fragment
impl UnwindSafe for Fragment
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