Struct lightmotif_py::ScoringMatrix
source · pub struct ScoringMatrix { /* private fields */ }
Implementations§
source§impl ScoringMatrix
impl ScoringMatrix
sourcepub fn calculate(
slf: PyRef<'_, Self>,
sequence: &mut StripedSequence
) -> PyResult<StripedScores>
pub fn calculate( slf: PyRef<'_, Self>, sequence: &mut StripedSequence ) -> PyResult<StripedScores>
Return the PSSM score for all positions of the given sequence.
Trait Implementations§
source§impl Clone for ScoringMatrix
impl Clone for ScoringMatrix
source§fn clone(&self) -> ScoringMatrix
fn clone(&self) -> ScoringMatrix
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 ScoringMatrix
impl Debug for ScoringMatrix
source§impl From<ScoringMatrix<Dna>> for ScoringMatrix
impl From<ScoringMatrix<Dna>> for ScoringMatrix
source§fn from(data: ScoringMatrix<Dna>) -> Self
fn from(data: ScoringMatrix<Dna>) -> Self
Converts to this type from the input type.
source§impl PyClassImpl for ScoringMatrix
impl PyClassImpl for ScoringMatrix
source§const IS_BASETYPE: bool = false
const IS_BASETYPE: bool = false
#[pyclass(subclass)]
source§const IS_SUBCLASS: bool = false
const IS_SUBCLASS: bool = false
#[pyclass(extends=…)]
source§const IS_MAPPING: bool = false
const IS_MAPPING: bool = false
#[pyclass(mapping)]
source§const IS_SEQUENCE: bool = false
const IS_SEQUENCE: bool = false
#[pyclass(sequence)]
§type Layout = PyCell<ScoringMatrix>
type Layout = PyCell<ScoringMatrix>
Layout
§type ThreadChecker = ThreadCheckerStub<ScoringMatrix>
type ThreadChecker = ThreadCheckerStub<ScoringMatrix>
This handles following two situations: Read more
§type PyClassMutability = <<PyAny as PyClassBaseType>::PyClassMutability as PyClassMutability>::MutableChild
type PyClassMutability = <<PyAny as PyClassBaseType>::PyClassMutability as PyClassMutability>::MutableChild
Immutable or mutable
§type BaseNativeType = PyAny
type BaseNativeType = PyAny
The closest native ancestor. This is
PyAny
by default, and when you declare
#[pyclass(extends=PyDict)]
, it’s PyDict
.fn items_iter() -> PyClassItemsIter
fn lazy_type_object() -> &'static LazyTypeObject<Self>
fn dict_offset() -> Option<isize>
fn weaklist_offset() -> Option<isize>
source§impl<'a, 'py> PyFunctionArgument<'a, 'py> for &'a ScoringMatrix
impl<'a, 'py> PyFunctionArgument<'a, 'py> for &'a ScoringMatrix
source§impl<'a, 'py> PyFunctionArgument<'a, 'py> for &'a mut ScoringMatrix
impl<'a, 'py> PyFunctionArgument<'a, 'py> for &'a mut ScoringMatrix
source§impl PyMethods<ScoringMatrix> for PyClassImplCollector<ScoringMatrix>
impl PyMethods<ScoringMatrix> for PyClassImplCollector<ScoringMatrix>
fn py_methods(self) -> &'static PyClassItems
source§impl PyTypeInfo for ScoringMatrix
impl PyTypeInfo for ScoringMatrix
§type AsRefTarget = PyCell<ScoringMatrix>
type AsRefTarget = PyCell<ScoringMatrix>
Utility type to make Py::as_ref work.
source§fn type_object_raw(py: Python<'_>) -> *mut PyTypeObject
fn type_object_raw(py: Python<'_>) -> *mut PyTypeObject
Returns the PyTypeObject instance for this type.
source§fn type_object(py: Python<'_>) -> &PyType
fn type_object(py: Python<'_>) -> &PyType
Returns the safe abstraction over the type object.
source§fn is_type_of(object: &PyAny) -> bool
fn is_type_of(object: &PyAny) -> bool
Checks if
object
is an instance of this type or a subclass of this type.source§fn is_exact_type_of(object: &PyAny) -> bool
fn is_exact_type_of(object: &PyAny) -> bool
Checks if
object
is an instance of this type.Auto Trait Implementations§
impl RefUnwindSafe for ScoringMatrix
impl Send for ScoringMatrix
impl Sync for ScoringMatrix
impl Unpin for ScoringMatrix
impl UnwindSafe for ScoringMatrix
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