Package 'cosmxscan'

Title: Rust Byte Scanner for CosMx Expression Matrices
Description: Streams a gzipped CosMx exprMat CSV and emits nonzero triplets.
Authors: Veronica Jarzabek [aut, cre]
Maintainer: Veronica Jarzabek <[email protected]>
License: MIT + file LICENSE
Version: 0.1.0
Built: 2026-10-14 22:49:34 UTC
Source: https://github.com/drieslab/cosmxscan

Help Index


Streaming reader over a wide CosMx exprMat CSV (.csv or .csv.gz).

Description

'#[extendr]' is required on the STRUCT as well as on the impl block below. Without it extendr generates no external-pointer conversions and the impl fails to compile with "the trait bound 'CosmxReader: ToVectorValue' is not satisfied" – it falls back to treating the struct as a value to coerce into an R vector. See extendr-api's own altrep_tests.rs: "need to make the object '.into_robj()'-able".

Usage

CosmxReader

Methods

Method 'new'

Open a scanner. '.gz' is detected by extension and inflated inline.

Method 'next_chunk'

Scan up to 'max_rows' data rows, returning their nonzero triplets.

Method 'close'

Release the file handle.

Method 'rows_done'

Data rows consumed so far.