pub struct VCFRecord {
pub chromosome: U8Vec,
pub position: u64,
pub id: Vec<U8Vec>,
pub reference: U8Vec,
pub alternative: Vec<U8Vec>,
pub qual: Option<f64>,
pub filter: Vec<U8Vec>,
pub info: Vec<(U8Vec, Vec<U8Vec>)>,
pub format: Vec<U8Vec>,
pub genotype: Vec<Vec<Vec<U8Vec>>>,
/* private fields */
}
Fields
chromosome: U8Vec
position: u64
id: Vec<U8Vec>
reference: U8Vec
alternative: Vec<U8Vec>
qual: Option<f64>
filter: Vec<U8Vec>
info: Vec<(U8Vec, Vec<U8Vec>)>
format: Vec<U8Vec>
genotype: Vec<Vec<Vec<U8Vec>>>
Implementations
sourceimpl VCFRecord
impl VCFRecord
pub fn new(header: VCFHeader) -> Self
pub fn from_bytes(
line: &[u8],
line_num: u64,
header: VCFHeader
) -> Result<Self, VCFError>
pub fn parse_bytes(&mut self, line: &[u8], line_num: u64) -> Result<(), VCFError>
pub fn header(&self) -> &VCFHeader
pub fn info(&self, key: &[u8]) -> Option<&Vec<U8Vec>>
pub fn info_mut(&mut self, key: &[u8]) -> Option<&mut Vec<U8Vec>>
pub fn insert_info(
&mut self,
key: &[u8],
values: Vec<U8Vec>
) -> Option<Vec<U8Vec>>
pub fn genotype(&self, sample_name: &[u8], key: &[u8]) -> Option<&Vec<U8Vec>>
pub fn genotype_mut(
&mut self,
sample_name: &[u8],
key: &[u8]
) -> Option<&mut Vec<U8Vec>>
pub fn insert_genotype(
&mut self,
sample_name: &[u8],
key: &[u8],
values: Vec<U8Vec>
) -> Option<Vec<U8Vec>>
sourcepub fn recreate_info_and_genotype_index(&mut self)
pub fn recreate_info_and_genotype_index(&mut self)
Recreate info and genotype index cache. Please call this method if you modify info and format field manually.
Trait Implementations
impl StructuralPartialEq for VCFRecord
Auto Trait Implementations
impl RefUnwindSafe for VCFRecord
impl Send for VCFRecord
impl Sync for VCFRecord
impl Unpin for VCFRecord
impl UnwindSafe for VCFRecord
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more