scRNA-seq icon indicating copy to clipboard operation
scRNA-seq copied to clipboard

Accessing raw data after normalization

Open marypiper opened this issue 5 years ago • 0 comments

we should add a markdown? or some text about how we can specify whether to use raw counts or normalized. The following code will allow us to extract the raw counts after normalization:

RNA_raw_assay <- seurat_integrated@assays$RNA@counts

seurat_integrated[['RNA_raw']] <- CreateAssayObject(counts = RNA_raw_assay)

RNA_norm_assay <- seurat_integrated@assays$RNA@data

seurat_integrated[['RNA_norm']] <- CreateAssayObject(counts = RNA_norm_assay)

DefaultAssay(seurat_integrated) <- "RNA_norm"

marypiper avatar Feb 25 '20 18:02 marypiper