pub struct SingleCellExperiment<T: MatrixValueTrait>where
    for<'n> Displayable<&'n T>: Display,{ /* private fields */ }

Implementations§

source§

impl<T: MatrixValueTrait> SingleCellExperiment<T>where for<'n> Displayable<&'n T>: Display,

source

pub fn cols(&self) -> usize

source

pub fn rows(&self) -> usize

source

pub fn shape(&self) -> (usize, usize)

source

pub fn nnz(&self) -> usize

source

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

source

pub fn get_row_name(&self, index: usize) -> Option<&String>

source

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

source

pub fn counts(&self) -> &CsMat<T>

source

pub fn transpose_into(self) -> SingleCellExperiment<T>

source

pub fn from_csr( counts: CsMat<T>, rows: Vec<String>, cols: Vec<String> ) -> Result<SingleCellExperiment<T>, String>

source

pub fn from_csv( file_path: &str, rows: Vec<String>, cols: Vec<String> ) -> Result<SingleCellExperiment<T>, Box<dyn Error>>where T: FromStr + Num + Clone,

source

pub fn to_mtx(&self, file_path: &str) -> Result<(), Box<dyn Error>>where T: Display + Copy + PrimitiveKind,

source

pub fn to_csv(&self, file_path: &str) -> Result<(), Box<dyn Error>>where T: Copy + Zero + Display,

source§

impl<T> SingleCellExperiment<T>where T: Neg<Output = T> + MatrixValueTrait, for<'n> Displayable<&'n T>: Display,

source

pub fn from_mtx( file_path: &str, rows: Vec<String>, cols: Vec<String> ) -> Result<SingleCellExperiment<T>, Box<dyn Error>>where T: Clone + Num + NumCast + Neg<Output = T>,

source

pub fn from_tenx_v2( cr_out: PathBuf ) -> Result<SingleCellExperiment<T>, Box<dyn Error>>where T: Copy + Num + NumCast,

source

pub fn from_tenx_v3( cr_out: PathBuf ) -> Result<SingleCellExperiment<T>, Box<dyn Error>>where T: Copy + Num + NumCast,

source§

impl SingleCellExperiment<f32>

source

pub fn from_eds( file_path: &str, rows: Vec<String>, cols: Vec<String> ) -> Result<SingleCellExperiment<f32>, Box<dyn Error>>

source

pub fn to_eds(&self, file_path: &str) -> Result<(), Box<dyn Error>>

source

pub fn from_alevin( alv_out: PathBuf ) -> Result<SingleCellExperiment<f32>, Box<dyn Error>>

source

pub fn from_mat_file_names( file_names: MatFileNames, is_features_compressed: bool, matrix_kind: MatrixKind ) -> Result<SingleCellExperiment<f32>, Box<dyn Error>>

Trait Implementations§

source§

impl<T: MatrixValueTrait> Debug for SingleCellExperiment<T>where for<'n> Displayable<&'n T>: Display,

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'a, T: MatrixValueTrait> IntoIterator for &'a SingleCellExperiment<T>where for<'n> Displayable<&'n T>: Display,

§

type Item = SingleCellExperimentRow<'a, T>

The type of the elements being iterated over.
§

type IntoIter = SingleCellExperimentIntoIterator<'a, T>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<T: PartialEq + MatrixValueTrait> PartialEq<SingleCellExperiment<T>> for SingleCellExperiment<T>where for<'n> Displayable<&'n T>: Display,

source§

fn eq(&self, other: &SingleCellExperiment<T>) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl<T: MatrixValueTrait> StructuralPartialEq for SingleCellExperiment<T>where for<'n> Displayable<&'n T>: Display,

Auto Trait Implementations§

§

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

§

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

§

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

§

impl<T> Unpin for SingleCellExperiment<T>where T: Unpin,

§

impl<T> UnwindSafe for SingleCellExperiment<T>where T: UnwindSafe,

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.

§

impl<T> Pointable for T

§

const ALIGN: usize = mem::align_of::<T>()

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
§

impl<SS, SP> SupersetOf<SS> for SPwhere SS: SubsetOf<SP>,

§

fn to_subset(&self) -> Option<SS>

The inverse inclusion map: attempts to construct self from the equivalent element of its superset. Read more
§

fn is_in_subset(&self) -> bool

Checks if self is actually part of its subset T (and can be converted to it).
§

unsafe fn to_subset_unchecked(&self) -> SS

Use with care! Same as self.to_subset but without any property checks. Always succeeds.
§

fn from_subset(element: &SS) -> SP

The inclusion map: converts self to the equivalent element of its superset.
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.