pub struct PlatformAnnotation {
pub data: RecordBatch,
}Expand description
Platform annotation as Arrow RecordBatch
Columns: probe_id, gene_symbol, entrez_id, description
Fields§
§data: RecordBatchArrow RecordBatch with platform annotation
Implementations§
Source§impl PlatformAnnotation
impl PlatformAnnotation
Sourcepub fn from_platform(platform: &GplRecord) -> Result<Option<Self>>
pub fn from_platform(platform: &GplRecord) -> Result<Option<Self>>
Build platform annotation directly from a GplRecord.
Returns None if the record has no annotation_table.
§Errors
Returns an error if the probe ID column is missing or Arrow data construction fails.
Sourcepub fn from_soft<R>(reader: SoftReader<R>) -> Result<Option<Self>>where
R: BufRead,
pub fn from_soft<R>(reader: SoftReader<R>) -> Result<Option<Self>>where
R: BufRead,
Build platform annotation from a SOFT reader (first platform found).
Returns None if no platform record with an annotation table is found.
§Errors
Returns an error if the SOFT data cannot be parsed or if Arrow data construction fails.
Trait Implementations§
Source§impl Clone for PlatformAnnotation
impl Clone for PlatformAnnotation
Source§fn clone(&self) -> PlatformAnnotation
fn clone(&self) -> PlatformAnnotation
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 PlatformAnnotation
impl !RefUnwindSafe for PlatformAnnotation
impl Send for PlatformAnnotation
impl Sync for PlatformAnnotation
impl Unpin for PlatformAnnotation
impl UnsafeUnpin for PlatformAnnotation
impl !UnwindSafe for PlatformAnnotation
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