Struct d4::D4FileBuilder
source · pub struct D4FileBuilder { /* private fields */ }
Expand description
The builder that is used to build a D4 file
Implementations§
source§impl D4FileBuilder
impl D4FileBuilder
sourcepub fn new<P: AsRef<Path>>(path: P) -> D4FileBuilder
pub fn new<P: AsRef<Path>>(path: P) -> D4FileBuilder
Create a new D4 file builder
pub fn set_denominator(&mut self, value: f64) -> &mut Self
sourcepub fn set_filter<T: Fn(&str, usize) -> bool + 'static>(
&mut self,
filter: T
) -> &mut Self
pub fn set_filter<T: Fn(&str, usize) -> bool + 'static>( &mut self, filter: T ) -> &mut Self
Set a chromosome filter lambda, this will be used to determine if the chromosome should be in the output
sourcepub fn append_chrom<I: Iterator<Item = Chrom>>(
&mut self,
chrom_it: I
) -> &mut Self
pub fn append_chrom<I: Iterator<Item = Chrom>>( &mut self, chrom_it: I ) -> &mut Self
Append chromosomes to the chrom list
sourcepub fn load_chrom_info_from_bam<P: AsRef<Path>>(
&mut self,
path: P
) -> Result<&mut Self>
pub fn load_chrom_info_from_bam<P: AsRef<Path>>( &mut self, path: P ) -> Result<&mut Self>
Load the chromosome information from a input BAM file
sourcepub fn set_dictionary(&mut self, dict: Dictionary) -> &mut Self
pub fn set_dictionary(&mut self, dict: Dictionary) -> &mut Self
Set the file’s dictionary
sourcepub fn dictionary(&self) -> &Dictionary
pub fn dictionary(&self) -> &Dictionary
Get a reference to the dictionary
sourcepub fn create<PT: PrimaryTableWriter, ST: SecondaryTableWriter>(
&mut self
) -> Result<D4FileWriter<PT, ST>>
pub fn create<PT: PrimaryTableWriter, ST: SecondaryTableWriter>( &mut self ) -> Result<D4FileWriter<PT, ST>>
Create the D4 file writer for this file
Auto Trait Implementations§
impl !RefUnwindSafe for D4FileBuilder
impl !Send for D4FileBuilder
impl !Sync for D4FileBuilder
impl Unpin for D4FileBuilder
impl !UnwindSafe for D4FileBuilder
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