pub struct MatrixBuilder { /* private fields */ }Expand description
Builder for creating expression matrices from SOFT data
Implementations§
Source§impl MatrixBuilder
impl MatrixBuilder
Sourcepub fn with_config(config: MatrixConfig) -> Self
pub fn with_config(config: MatrixConfig) -> Self
Create a new matrix builder with custom configuration
Sourcepub fn from_soft<R>(&self, reader: SoftReader<R>) -> Result<ExpressionMatrix>where
R: BufRead,
pub fn from_soft<R>(&self, reader: SoftReader<R>) -> Result<ExpressionMatrix>where
R: BufRead,
Build expression matrix from a SOFT file reader
Uses a single-pass over the reader via next_record(), collecting both
GSM samples and the GPL platform in one sweep.
§Errors
Returns an error if:
- The SOFT data cannot be parsed
- No samples with data tables are found
- Required columns (
ID_REF,VALUE) are missing - Arrow data construction fails
Sourcepub fn build_all<R>(
&self,
reader: SoftReader<R>,
) -> Result<(ExpressionMatrix, SampleMetadata, Option<PlatformAnnotation>)>where
R: BufRead,
pub fn build_all<R>(
&self,
reader: SoftReader<R>,
) -> Result<(ExpressionMatrix, SampleMetadata, Option<PlatformAnnotation>)>where
R: BufRead,
Build expression matrix, sample metadata, and platform annotation in a single pass over the SOFT reader.
Returns a tuple of (ExpressionMatrix, SampleMetadata, Option<PlatformAnnotation>).
§Errors
Returns an error if:
- The SOFT data cannot be parsed
- No samples with data tables are found
- Required columns (
ID_REF,VALUE) are missing - Arrow data construction fails
Trait Implementations§
Auto Trait Implementations§
impl Freeze for MatrixBuilder
impl RefUnwindSafe for MatrixBuilder
impl Send for MatrixBuilder
impl Sync for MatrixBuilder
impl Unpin for MatrixBuilder
impl UnsafeUnpin for MatrixBuilder
impl UnwindSafe for MatrixBuilder
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