thor.analy.adata_to_mtx_conversion
- thor.analy.adata_to_mtx_conversion(adata: AnnData, save_path: str | None = None, layer: str | None = None) None [source]
Convert AnnData object to matrix market format.
- Parameters:
adata (
anndata.AnnData
) – Annotated data matrix.save_path (
str
orNone
, optional) – Directory to save the output files. Default isNone
. IfNone
, data will be saved in the current working directory.layer (
str
orNone
, optional) – Name of the layer in adata to use as input data. Default isNone
. IfNone
, 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: