Question: DESeq2 ComputeSumFactors extract normalized counts
0
gravatar for herrmannmaria94
19 months ago by
herrmannmaria940 wrote:

I have a single cell RNA-dataset and I used the deconvolution method for normalization. Now I want to extract the matrix with all normalized counts but it is not working. I tried the following: 

sce <- computeSumFactors(sce, sizes=c(20, 40, 60, 400))

#Computing separate size factors for spike-in transcripts
sce <- computeSpikeFactors(sce, type="ERCC", general.use=FALSE)

#Applying the size factors to normalize gene expression
sce <- normalise(sce)
NormCounts = counts(sce, normalised = TRUE)

and the following error comes up:

> error in .local(object, ...) : unused argument (normalised = TRUE) 

it is also not working with normalized = TRUE.
Where is my mistake? Does someone have a solution for this?
Thank you in advance!

 

 

 

 

 

normalization deseq2 counts • 401 views
ADD COMMENTlink modified 19 months ago by Michael Love23k • written 19 months ago by herrmannmaria940
Answer: DESeq2 ComputeSumFactors extract normalized counts
0
gravatar for herrmannmaria94
19 months ago by
herrmannmaria940 wrote:

I would like to only extract normalized counts, not log-normalized counts. Afterwards I want to use my TPM and logTPM calculation.

ADD COMMENTlink written 19 months ago by herrmannmaria940
Answer: DESeq2 ComputeSumFactors extract normalized counts
0
gravatar for Michael Love
19 months ago by
Michael Love23k
United States
Michael Love23k wrote:
A few things: This isn't a function in DESeq2. The counts() function in DESeq2 has argument "normalized". And you don't need the function at all here if you just want to divide the columns by factors. You can use for example sweep().
ADD COMMENTlink written 19 months ago by Michael Love23k

I am so sorry! I was so wiped out yesterday by a cold that I couldn't think of the obvious solution. Thank you for your answer! :)

ADD REPLYlink written 19 months ago by herrmannmaria940
Please log in to add an answer.

Help
Access

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 16.09
Traffic: 156 users visited in the last hour