Struct noodles_vcf::io::reader::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A VCF reader builder.
Implementations§
source§impl Builder
impl Builder
sourcepub fn set_compression_method(
self,
compression_method: CompressionMethod,
) -> Self
pub fn set_compression_method( self, compression_method: CompressionMethod, ) -> Self
Sets the compression method.
§Examples
use noodles_vcf::io::{reader::Builder, CompressionMethod};
let builder = Builder::default().set_compression_method(CompressionMethod::Bgzf);
sourcepub fn build_from_path<P>(self, src: P) -> Result<Reader<Box<dyn BufRead>>>
pub fn build_from_path<P>(self, src: P) -> Result<Reader<Box<dyn BufRead>>>
Builds a VCF reader from a path.
By default, the compression method will be autodetected. This can be overridden by using
Self::set_compression_method
.
§Examples
use noodles_vcf::io::reader::Builder;
let reader = Builder::default().build_from_path("sample.vcf")?;
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Builder
impl RefUnwindSafe for Builder
impl Send for Builder
impl Sync for Builder
impl Unpin for Builder
impl UnwindSafe for Builder
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