Entering edit mode
Hello,
I am trying to understand why Dseq2 gives me the same result if I set my condition differently ? I use Raw count values
First way to do
condition <- factor(c(rep("Normal", 10),rep("Tumor", 11))) dds <- DESeqDataSetFromMatrix(dfm, DataFrame(condition), ~ condition) keep <- rowSums(counts(dds)) >= 1 dds <- dds[keep,] dds <- DESeq(dds)
Second way to do
condition <- factor(c(rep("Tumor", 11),rep("Normal", 10))) dds <- DESeqDataSetFromMatrix(dfm, DataFrame(condition), ~ condition) keep <- rowSums(counts(dds)) >= 1 dds <- dds[keep,] dds <- DESeq(dds)
They both give me the same LogFold change???? how is that possible ?
Probably because it is reordering it internally alphabetically or something like that. You could check the source code.