thor.analy.adata_to_mtx_conversion
- thor.analy.adata_to_mtx_conversion(adata: AnnData, save_path: str | None = None, layer: str | None = None) None
Convert AnnData object to matrix market format.
- Parameters:
adata (AnnData) – Annotated data matrix.
save_path (str or None, optional) – Directory to save the output files. Default is None. If None, data will be saved in the current working directory.
layer (str or None, optional) – Name of the layer in adata to use as input data. Default is None. If None, the X layer will be used.
- Returns:
Results are saved in the current working directory.
- matrix.mtxfile
Matrix market format file containing gene expression data.
- genes.tsvfile
Gene names file.
- barcodes.tsvfile
Cell barcode names file.
- Return type:
None