Export h5Seurat Expression Matrix
For export in h5Seurat format (h5seurat), a number of options can be specified:
- Cell format. Can be specified to include both the sample and barcode. Hover the mouse over this setting to see the possible options. Often the barcode in itself is sufficient as a unique identifier of cells. However, when an expression matrix contains multiple samples, the cell format must also include the sample, otherwise the export will fail.
- Clusters. A Cell Clusters () element to be exported with the matrix.
- Cell annotations. A Cell Annotations () element to be exported with the matrix.
- Use compression. Select among gzip, zip or no compression which is default.
- Output file name. Shows the name of the file. This can be customized by changing the default pattern in Custom file name.
The h5Seurat exporter creates a h5seurat file format version 4.0.0, see https://mojaveazure.github.io/seurat-disk/articles/h5Seurat-spec.html for details. In particular:
- A single assay at
assays/RNA
is created. - The feature names are written at
assays/RNA/features
. - The raw counts are written as a sparse matrix at
assays/RNA/counts
. - The cell ID, composed of sample and barcode, as specified by Cell format, is written at
cell.names
. - The cells' samples are written at
meta.data/orig.ident
. - Any exported clusters and annotations are written as additional HDF5 groups at
meta.data
.