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

v5 issue with GetAssay()

Open mistrm82 opened this issue 1 year ago • 0 comments

Once you have run:

 
# Filter out low quality cells using selected thresholds - these will change with experiment
filtered_seurat <- subset(x = merged_seurat, 
                         subset= (nUMI >= 500) & 
                           (nGene >= 250) & 
                           (log10GenesPerUMI > 0.80) & 
                           (mitoRatio < 0.20))

You will need to use the JoinLayers():

filtered_seurat <- JoinLayers(filtered_seurat) Now when you run GetAssayData, it should work without an error:

# Extract counts
counts <- GetAssayData(object = filtered_seurat, slot = "counts")

mistrm82 avatar Feb 14 '24 21:02 mistrm82