Struct hpo::term::InformationContent
source · pub struct InformationContent { /* private fields */ }
Expand description
The quality (in terms of specificity) of an HPO term
Information content describes how specific an HPO term is in relation to its associated genes or diseases
For more information, see Resnik P: Using information content to evaluate semantic similarity in a taxonomy. Proceedings of the 14th International Joint Conference on Artificial Intelligence: August 20-25. 1995, Morgan Kaufmann, San Francisco CA: Montreal, Canada
Implementations§
source§impl InformationContent
impl InformationContent
sourcepub fn gene_mut(&mut self) -> &mut f32
pub fn gene_mut(&mut self) -> &mut f32
A mutable reference to the Gene-specific information content
sourcepub fn omim_disease(&self) -> f32
pub fn omim_disease(&self) -> f32
The OMIM-disease-specific information content
sourcepub fn omim_disease_mut(&mut self) -> &mut f32
pub fn omim_disease_mut(&mut self) -> &mut f32
A mutable reference to the OMIM-disease-specific information content
sourcepub fn get_kind(&self, kind: &InformationContentKind) -> f32
pub fn get_kind(&self, kind: &InformationContentKind) -> f32
Returns the information content of the provided kind
Trait Implementations§
source§impl Clone for InformationContent
impl Clone for InformationContent
source§fn clone(&self) -> InformationContent
fn clone(&self) -> InformationContent
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for InformationContent
impl Debug for InformationContent
source§impl Default for InformationContent
impl Default for InformationContent
source§fn default() -> InformationContent
fn default() -> InformationContent
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for InformationContent
impl RefUnwindSafe for InformationContent
impl Send for InformationContent
impl Sync for InformationContent
impl Unpin for InformationContent
impl UnwindSafe for InformationContent
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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self
from the equivalent element of its
superset. Read moresource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self
is actually part of its subset T
(and can be converted to it).source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset
but without any property checks. Always succeeds.source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self
to the equivalent element of its superset.