Running DESeq2 stats with one control

31 views
Skip to first unread message

Eric Gathirwa

unread,
Aug 6, 2021, 12:54:14 PM8/6/21
to SAMSA bioinformatics group
Hi Sam,

I hope you are well.
I have been doing the DESeq2 analysis with R but I have one control. This flags an error when running the following command:

baseMeanPerLvl <- sapply( levels(dds$condition), function(lvl) rowMeans( 
#  counts(dds,normalized=TRUE)[,dds$condition == lvl] ) )

error: Error in base::rowMeans(x, na.rm = na.rm, dims = dims, ...) : 
    'x' must be an array of at least two dimensions

I have tried to apply my own fixes and these files (whose link I have shared) are what I generate as my final output. Are they what you would expect, or do they have unwanted fields?

Thank you.

Warm regards,
Eric

Sam Westreich

unread,
Aug 7, 2021, 4:06:20 PM8/7/21
to Eric Gathirwa, SAMSA bioinformatics group
Hi Eric,

Unfortunately, DESeq does require at least 2 samples in each group, including the control group, in order to determine within-group versus between-group variation.  

You could certainly take the complete_table that is generated and use this to do a comparison of means of annotations between samples, but you won't be able to calculate p-values from the DESeq2 package without a second control sample.  You can see Michael Love (one of the creators of DESeq)'s answer here: https://support.bioconductor.org/p/95714/

Best,
Sam

--
You received this message because you are subscribed to the Google Groups "SAMSA bioinformatics group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to samsa-bioinformatic...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/samsa-bioinformatics-group/bd4c6c1d-d3fd-494b-a804-89ad1b7a5329n%40googlegroups.com.


--
Sam Westreich, PMP, PhD
Microbiome Scientist, DNAnexus, 

Elisa

unread,
Aug 7, 2021, 4:54:53 PM8/7/21
to SAMSA bioinformatics group
Hi Sam and Everyone, has anyone tried forming contigs with their metatranscriptome data?  I think linking small sequences into larger ones could be useful for increasing the accuracy of the annotations and linking metabolic processes to microbial genus/species.  I hope there imight be a straightforward way to incorporate a contig step in the SAMSA2 pipeline.  I am very thankful for your thoughts and advice, Elisa 

Sam Westreich

unread,
Aug 9, 2021, 2:07:10 PM8/9/21
to Elisa, SAMSA bioinformatics group
Hey Elisa, 

I'm not sure if folks have tried this before, but there are some tools for assembly that are suitable for metagenomes; metaSPAdes is one (https://github.com/ablab/spades, part of the SPAdes tool).

I've not tried using one of these assembly tools before running the annotation step, but if someone does try it, I'd be interested to hear the results!

Best,
Sam

--
You received this message because you are subscribed to the Google Groups "SAMSA bioinformatics group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to samsa-bioinformatic...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages