Entering edit mode
Hi,
I have combined the three metadata cloumn into one and now extracting differential expressed genes using deseq2.
I need to understand two things; here which one is acting as reference or control Aman_Ash_Root or Aman_farmer.pract._Root?
and how I can filter two fold above and down regulated genes from data? how should I modify below command to get both up and down regulated in single sheet with above two fold?
up <- subset(res1, foldChange > 0)
SampleInfo$geno_treatment_tissue <- as.factor(paste(SampleInfo$Genotypes, SampleInfo$Treatment,SampleInfo$Tissue, sep="_"))
dds <- DESeqDataSetFromMatrix(countData = count, colData = SampleInfo, design = ~ geno_treatment_tissue)
keep <- rowSums(counts(dds)) >= 10
dds <- dds[keep,]
dds <- DESeq(dds)
resultsNames(dds)
res1 <- (dds, contrast=c("geno_treatment_tissue", "Aman_Ash_Root", "Aman_farmer.pract._Root"),alpha = 0.05)
summary (res1)
out of 29097 with nonzero total read count
adjusted p-value < 0.05
LFC > 0 (up) : 10, 0.034%
LFC < 0 (down) : 6, 0.021%
outliers [1] : 19, 0.065%
low counts [2] : 0, 0%
Many thanks nabiyogesh
Hi Michael,
I had a view on vignette but not able to understand these queries: if I do head(res1); still not getting which one is reference?
Thanks for your quick response.
thanks Michael,
I need to do multiple comparison; I understand that I need to set reference level each time as I have three different conditions;
from your vignette: By default, R will choose a reference level for factors based on alphabetical order. Then, if you never tell the DESeq2 functions which level you want to compare against (e.g. which level represents the control group).
and how to filter above and below 2 logfold genes?
thanks nabiyogesh
You don't need to relevel each time, that's not what the vignette says.
I'm sorry but a lot of these questions would be handled by just reading the documentation, and I'm pretty busy and don't have time to copy paste the relevant sections here. Literally searching the docs for "threshold" would have gotten you information. Please be more considerate of the time of the developers. I may not answer future questions here if they are directly answered by the documentation.
See also the per-function documentation, e.g.
?results
.