Open noor-albader opened 6 years ago
Thank you for reaching out. Could you maybe share a minimal working example along with sample data which would allow me to reproduce the issue?
I'm not sure though I understand why you would want to convert the normalized data matrix to DGEList
and then back to DESeqDataSet
? Can't the desired values be directly extracted from the final ps_dds_tmp
object?
Cheers, Andrzej
Hi I was trying to covert my matrix of normalized results post DESeq2 pipeline back to a DESeq object: (A) First I ran DESeq and normalization to result to a matrix (abund): dds = phyloseq_to_deseq2(ps_time1, ~treatement) ps_dds_tmp <- estimateSizeFactors(dds_2, type = "poscounts") ps_dds_tmp <- estimateDispersions(ps_dds_tmp) abund <- getVarianceStabilizedData(ps_dds_tmp) abund <- abund + abs(min(abund)) (B) Then transformed my matrix (abund) to a DGEList: dge = DGEList(abund, group = group) #this worked fine
I know they aren't integers because of the normalization but I am ultimately trying to get a DGE obj to run DESeq2's results function to get log2FC, p-values ect.
Any help would be greatly appreciated:)