Normalization/Scaling with sctransform in RStudio of scRNASeq data
0
0
Entering edit mode
3.4 years ago

Hey quick question,

I am trying to re-doing some scRNA-Seq pre-processing from a paper.

Some background information: The authors gave the cell ranger output as H5 files, which I have downloaded and loaded up in RStudio via Read10X_h5. I have created a SeuratObject out of the H5 matrix, added "percent.mt" via PercentageFeatureSet(SeuratObject, pattern = "^MT-") and then filtered after the standards of the paper: subset(SeuratObject, subset = nFeature_RNA > 1500 & nFeature_RNA < 9000 & percent.mt < 30)

Now, in paper they have written that the UMI counts were normalized/scaled using regularized negative binominal regression with the sctransform-package. If I add my SeuratObject in the function vst() I get this error:

Calculating cell attributes from input UMI matrix: log_umi Error in h(simpleError(msg, call)) : Error evaluating argument 'x' in method selection for function 'rowSums': comparison (5) is only possible for atomic and list types

Can someone explain this error to me? I don't find any helpful information if I google this error.

vst normalization sctransform scRNASeq scaling • 1.6k views
ADD COMMENT
0
Entering edit mode

vst (FindVariableFeatures(x, selection.method = "vst", nfeatures = 2000)) requires the log normalisation, which you are not doing as you are following the SCT workflow. In you case, you need to call SCTransform after CreateSeuratObject. SCTransform wraps the normalisation and scaling (using sctranform) in one command.

ADD REPLY
0
Entering edit mode

I did not see/know that Seurat had also a SCTransform. Thank you for your fast answer.

ADD REPLY

Login before adding your answer.

Traffic: 1819 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6