| 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 |
'#[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".
CosmxReaderCosmxReader
Open a scanner. '.gz' is detected by extension and inflated inline.
Scan up to 'max_rows' data rows, returning their nonzero triplets.
Release the file handle.
Data rows consumed so far.