pub struct SampleMetadata {
pub data: RecordBatch,
}Expand description
Sample metadata as Arrow RecordBatch
Columns: gsm_accession, title, characteristic_key,
characteristic_value One row per characteristic per sample
Fields§
§data: RecordBatchArrow RecordBatch with sample metadata
Implementations§
Source§impl SampleMetadata
impl SampleMetadata
Sourcepub fn from_soft<R>(reader: SoftReader<R>) -> Result<Self>where
R: BufRead,
pub fn from_soft<R>(reader: SoftReader<R>) -> Result<Self>where
R: BufRead,
Build sample metadata from SOFT reader
Creates a RecordBatch with columns:
gsm_accession: Sample GSM accession IDtitle: Sample titlecharacteristic_key: Characteristic name (e.g., “tissue”, “cell type”)characteristic_value: Characteristic value
§Errors
Returns an error if the SOFT data cannot be parsed or if Arrow data construction fails.
Sourcepub fn from_samples(samples: &[GsmRecord]) -> Result<Self>
pub fn from_samples(samples: &[GsmRecord]) -> Result<Self>
Build sample metadata from a slice of already-collected GsmRecords.
Adds a channel_index column (UInt8) to distinguish characteristics
from different channels in multi-channel (e.g. two-colour) samples.
§Errors
Returns an error if Arrow data construction fails.
Trait Implementations§
Source§impl Clone for SampleMetadata
impl Clone for SampleMetadata
Source§fn clone(&self) -> SampleMetadata
fn clone(&self) -> SampleMetadata
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for SampleMetadata
impl !RefUnwindSafe for SampleMetadata
impl Send for SampleMetadata
impl Sync for SampleMetadata
impl Unpin for SampleMetadata
impl UnsafeUnpin for SampleMetadata
impl !UnwindSafe for SampleMetadata
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