R/Read_&_Write_Data.R
Create_CellBender_Merged_Seurat.Rd
Enables easy creation of Seurat object which contains both cell bender data and raw count data as separate assays within the object.
Create_CellBender_Merged_Seurat(
raw_cell_bender_matrix = NULL,
raw_counts_matrix = NULL,
raw_assay_name = "RAW",
min_cells = 5,
min_features = 200,
...
)
matrix file containing the cell bender correct counts.
matrix file contain the uncorrected Cell Ranger (or other) counts.
a key value to use specifying the name of assay. Default is "RAW".
value to supply to min.cells parameter of CreateSeuratObject
.
Default is 5.
value to supply to min.features parameter of CreateSeuratObject
.
Default is 200.
Extra parameters passed to CreateSeuratObject
.
A Seurat Object contain both the Cell Bender corrected counts ("RNA" assay) and uncorrected
counts ("RAW" assay; or other name specified to raw_assay_name
).
if (FALSE) {
seurat_obj <- Create_CellBender_Merged_Seurat(raw_cell_bender_matrix = cb_matrix,
raw_counts_matrix = cr_matrix)
}