pub fn to_mtx(
data: &dyn SparseIo<IndexIter = Vec<usize>>,
out_dir: &str,
opts: &MtxExport,
) -> Result<Box<str>>Expand description
Export data to a 10x Genomics MEX (MatrixMarket) triplet in the
directory out_dir, created if missing, readable by scanpy / Seurat.
This is the inverse of crate::import::from_mtx; the directory is
returned.
data-beans already stores the matrix as (features x cells), which is 10x’s
orientation (features are rows, barcodes are columns), so no transpose is
needed — unlike to_h5ad. A feature named id_name is split back into
its id and name columns.