pub struct ImModel { /* private fields */ }Implementations§
Source§impl ImModel
impl ImModel
pub fn fingerprint(&self) -> &str
Sourcepub fn bundled() -> Result<Self>
pub fn bundled() -> Result<Self>
The default charge-aware model needs no model path or Python runtime.
Sourcepub fn load(path: impl AsRef<Path>) -> Result<Self>
pub fn load(path: impl AsRef<Path>) -> Result<Self>
Load by content: UIMC sequence CNN, sequoia tree, or legacy gbdt.
pub fn cnn_info(&self) -> Option<&Value>
Sourcepub fn predict_many_cached(&self, items: &[(&str, u8)]) -> Vec<f64>
pub fn predict_many_cached(&self, items: &[(&str, u8)]) -> Vec<f64>
Raw predictions shared across calibration attempts and search runs.
Sourcepub fn precompute_library(&self, seqs: &[&str], charges: &[u8])
pub fn precompute_library(&self, seqs: &[&str], charges: &[u8])
Prime every target/decoy library sequence at the supplied observed charges. Bounded query batches avoid materializing the full Cartesian product.
Auto Trait Implementations§
impl !Freeze for ImModel
impl RefUnwindSafe for ImModel
impl Send for ImModel
impl Sync for ImModel
impl Unpin for ImModel
impl UnsafeUnpin for ImModel
impl UnwindSafe for ImModel
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
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.