Struct sce::SingleCellExperiment
source · 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,
impl<T: MatrixValueTrait> SingleCellExperiment<T>where for<'n> Displayable<&'n T>: Display,
pub fn cols(&self) -> usize
pub fn rows(&self) -> usize
pub fn shape(&self) -> (usize, usize)
pub fn nnz(&self) -> usize
pub fn row_names(&self) -> &Vec<String>
pub fn get_row_name(&self, index: usize) -> Option<&String>
pub fn col_names(&self) -> &Vec<String>
pub fn counts(&self) -> &CsMat<T>
pub fn transpose_into(self) -> SingleCellExperiment<T>
pub fn from_csr( counts: CsMat<T>, rows: Vec<String>, cols: Vec<String> ) -> Result<SingleCellExperiment<T>, String>
pub fn from_csv( file_path: &str, rows: Vec<String>, cols: Vec<String> ) -> Result<SingleCellExperiment<T>, Box<dyn Error>>where T: FromStr + Num + Clone,
pub fn to_mtx(&self, file_path: &str) -> Result<(), Box<dyn Error>>where T: Display + Copy + PrimitiveKind,
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,
impl<T> SingleCellExperiment<T>where T: Neg<Output = T> + MatrixValueTrait, for<'n> Displayable<&'n T>: Display,
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>,
pub fn from_tenx_v2( cr_out: PathBuf ) -> Result<SingleCellExperiment<T>, Box<dyn Error>>where T: Copy + Num + NumCast,
pub fn from_tenx_v3( cr_out: PathBuf ) -> Result<SingleCellExperiment<T>, Box<dyn Error>>where T: Copy + Num + NumCast,
source§impl SingleCellExperiment<f32>
impl SingleCellExperiment<f32>
pub fn from_eds( file_path: &str, rows: Vec<String>, cols: Vec<String> ) -> Result<SingleCellExperiment<f32>, Box<dyn Error>>
pub fn to_eds(&self, file_path: &str) -> Result<(), Box<dyn Error>>
pub fn from_alevin( alv_out: PathBuf ) -> Result<SingleCellExperiment<f32>, Box<dyn Error>>
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,
impl<T: MatrixValueTrait> Debug for SingleCellExperiment<T>where for<'n> Displayable<&'n T>: Display,
source§impl<'a, T: MatrixValueTrait> IntoIterator for &'a SingleCellExperiment<T>where
for<'n> Displayable<&'n T>: Display,
impl<'a, T: MatrixValueTrait> IntoIterator for &'a SingleCellExperiment<T>where for<'n> Displayable<&'n T>: Display,
source§impl<T: PartialEq + MatrixValueTrait> PartialEq<SingleCellExperiment<T>> for SingleCellExperiment<T>where
for<'n> Displayable<&'n T>: Display,
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
fn eq(&self, other: &SingleCellExperiment<T>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.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> 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<T> Pointable for T
impl<T> Pointable for T
§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere SS: SubsetOf<SP>,
§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 more§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).§unsafe fn to_subset_unchecked(&self) -> SS
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
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self
to the equivalent element of its superset.