Extract sparse matrix with corrected counts from CellBender h5 output file.
Read_CellBender_h5_Mat(
file_name,
use.names = TRUE,
unique.features = TRUE,
h5_group_name = NULL,
feature_slot_name = "features"
)
Path to h5 file.
Label row names with feature names rather than ID numbers (default TRUE).
Make feature names unique (default TRUE).
Name of the group within H5 file that contains count data. This is only
required if H5 file contains multiple subgroups and non-default names. Default is NULL
.
Name of the slot contain feature names/ids. Must be one of: "features"(Cell Ranger v3+) or "genes" (Cell Ranger v1/v2 or STARsolo). Default is "features".
sparse matrix
Code used in function has been modified from Seurat::Read10X_h5
function of
Seurat package https://github.com/satijalab/seurat (License: GPL-3).
if (FALSE) {
mat <- Read_CellBender_h5_Mat(file_name = "/SampleA_out_filtered.h5")
}