Struct checkm::CheckMResult

source ·
pub struct CheckMResult<T: GenomeQuality> {
    pub genome_to_quality: BTreeMap<String, T>,
}

Fields§

§genome_to_quality: BTreeMap<String, T>

Implementations§

source§

impl<T: GenomeQuality + Copy + Debug> CheckMResult<T>

source

pub fn order_genomes_by_completeness_minus_4contamination(&self) -> Vec<&String>

source

pub fn order_genomes_by_completeness_minus_5contamination(&self) -> Vec<&String>

source

pub fn order_fasta_paths_by_completeness_minus_4contamination<'a>( &self, genome_fasta_files: &[&'a str], min_completeness: Option<f32>, max_contamination: Option<f32> ) -> Result<Vec<&'a str>, String>

Map paths to FASTA paths to CheckM qualities, and return paths ordered by their quality, where quality is completeness - 4*contamination. If not None, min_completeness and max_contamination specify thresholds as fractions e.g. 0.8 not 80.

source

pub fn order_fasta_paths_by_completeness_minus_5contamination<'a>( &self, genome_fasta_files: &[&'a str], min_completeness: Option<f32>, max_contamination: Option<f32> ) -> Result<Vec<&'a str>, String>

Map paths to FASTA paths to CheckM qualities, and return paths ordered by their quality, where quality is completeness - 5*contamination. If not None, min_completeness and max_contamination specify thresholds as fractions e.g. 0.8 not 80.

source

pub fn filter( &self, min_completeness: f32, max_contamination: f32 ) -> CheckMResult<T>

source

pub fn retrieve_via_fasta_path( &self, fasta_path: &str ) -> Result<T, CheckMRetrievalError>

Auto Trait Implementations§

§

impl<T> RefUnwindSafe for CheckMResult<T>where T: RefUnwindSafe,

§

impl<T> Send for CheckMResult<T>where T: Send,

§

impl<T> Sync for CheckMResult<T>where T: Sync,

§

impl<T> Unpin for CheckMResult<T>

§

impl<T> UnwindSafe for CheckMResult<T>where T: RefUnwindSafe,

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.