Skip to content
Discussion options

You must be logged in to vote

Hi,

I've actually been analysing that same dataset! I got over this issue by moving the already normalised data into the "data" layer (removes need for normalisation as you shouldn't renormalise), then for scaling you can set scaling and centring to false so it moves into the correct scale.data layer so PCA and downstream analyses can run as normal. My code reads:

  # move counts data into the data layer (without performing normalisation)
  subset <- SetAssayData(object = subset, layer = "data", new.data = subset@assays$RNA@layers$counts, assay = "RNA")
  
  # move data to the correct scale.data layer (without actually scaling)
  all_genes <- rownames(subset)
  subset <- ScaleData(subset,…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@acunha92
Comment options

Answer selected by acunha92
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants