This is a test version of Biostars. For the public version, visit https://www.biostars.org.
DESeq2 vst function error

Hi everyone, I have a dataset with count reads of miRNA-Seq downloaded from TCGA: on the rows I have the miRNA names and on the columns the uuid barcodes(sample names). When I launch the vst function it gets me this error:

dd = DESeqDataSetFromMatrix(d, coldata, design= ~class) 
vst = vst(dd, blind = FALSE)

Error in vst(dd, blind = FALSE) : 
  less than 'nsub' rows with mean normalized count > 5, 
  it is recommended to use varianceStabilizingTransformation directly

This is the first attempt with this package, any suggestion? Thank you so much

deseq2 rna-seq r normalization

2 answers

Your dataset is small (< 1000 variables) and / or has a low number of expressed genes. Either way, the problem can be mitigated by using varianceStabilizingTransformation(), or just re-use vst() and set a lower value for nsub.

Type ?vst to see what is happening with the nsub parameter.

Kevin

I set a lower number, and it works, thank you! My dataset has 1800 miRNAs. This does mean that only few of them are considered for the calculation? How does the algorithm operates in this cases?

You can also use assign a value to nsub:

nsb = sum(rowMeans(counts(dds, normalized=TRUE)) > 5)
vst(dds, blind = TRUE, nsub = nsb)

Log in to answer this question.