pub struct Filter<'a> { /* private fields */ }Expand description
Provides filtering functionality on datasets and proteins
Implementations§
Source§impl<'a> Filter<'a>
impl<'a> Filter<'a>
Sourcepub fn add_protein_filter(self, filter: ProteinFilter) -> Self
pub fn add_protein_filter(self, filter: ProteinFilter) -> Self
Add a new ProteinFilter to the Filter object.
This follows the Builder pattern
Sourcepub fn add_peptide_filter(self, filter: PeptideFilter<'a>) -> Self
pub fn add_peptide_filter(self, filter: PeptideFilter<'a>) -> Self
Add a new PeptideFilter to the Filter object.
This follows the Builder pattern
pub fn tryptic_regex() -> Regex
Sourcepub fn filter_dataset(&self, dataset: Dataset) -> Dataset
pub fn filter_dataset(&self, dataset: Dataset) -> Dataset
Return a new Dataset that only contains filtered Protein’s
Sourcepub fn filter_protein(
&self,
protein: Protein,
tryptic_regex: &Regex,
) -> Option<Protein>
pub fn filter_protein( &self, protein: Protein, tryptic_regex: &Regex, ) -> Option<Protein>
Filter a Protein, returning Some if it passes any
ProteinFilters that need to be applied or None if the protein
fails a given ProteinFilter.
The peptides associated with the returned Protein object aree those
that passed any given PeptideFilters.
Trait Implementations§
Source§impl<'a> PartialOrd for Filter<'a>
impl<'a> PartialOrd for Filter<'a>
impl<'a> StructuralPartialEq for Filter<'a>
Auto Trait Implementations§
impl<'a> Freeze for Filter<'a>
impl<'a> RefUnwindSafe for Filter<'a>
impl<'a> Send for Filter<'a>
impl<'a> Sync for Filter<'a>
impl<'a> Unpin for Filter<'a>
impl<'a> UnwindSafe for Filter<'a>
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