Hello Kevin, thank you for the help.
I tried what you said with this code.
cts <- read.csv(file="Counts.csv",header=TRUE,sep=",",row.names = 1)
coldata <- read.csv(file="sample_info.csv",header=TRUE,sep=",")
head(cts,2)
coldata
library("DESeq2")
dds <- DESeqDataSetFromMatrix(countData = cts,
colData = coldata,
design = ~ Drug + Gene)
keep <- rowSums(counts(dds)) >= 10
dds <- dds[keep,]
dds$Drug <- factor(dds$Drug, levels = c("Doxy","Vehicle"))
dds$Gene <- factor(dds$Gene, levels = c("PRH","Empty"))
dds <- DESeq(dds)
res <- results(dds)
res
resultsNames(dds)
##[1] "Intercept" "Drug_Vehicle_vs_Doxy" "Gene_Empty_vs_PRH"
the result in the intercept was still not what I am looking for. I need basically a 4 way comparison. I need to know that the genes changed with the inducer are due to the gene expression modification and to due to the drug itself.
Please use the formatting bar (especially the
codeoption) to present your post better. You can use backticks for inline code (`text` becomestext), or select a chunk of text and use the highlighted button to format it as a code block. I've done it for you this time.Also,
is not how one should phrase that they're new to a field in a formal/professional setting. You can simply say "I am quite new to this" without instructions on what others should do with that information.
Wait, what? I get asking people to format their posts better, but how is "Keep in mind [...]" wrong or not appropriate? Don't be so pedantic.