When I do colnames(fit) I get:
colnames(fitDupCor) [1] "(Intercept)" "AGE.GROUPAbove 70" "AGE.GROUPUnder 50" "SAMPLE.SITErectum" "SAMPLE.SITEsigmoid" "DIAGNOSISnone"
[7] "SEXM"
Why is SEXF not listed here? Also for diagnosis and age not all levels are listed?
In a next step I want to compare DIAGNOSISnone to DIAGNOSISadenoma, but it seems not to work:
contrasts <- makeContrasts('none-adenoma',levels=design)
contrasts <- makeContrasts('none-adenoma',levels=design) Error in makeContrasts("none-adenoma", levels = design) : The levels must by syntactically valid names in R, see help(make.names). Non-valid names: AGE.GROUPAbove 70,AGE.GROUPUnder 50 In addition: Warning message: In makeContrasts("none-adenoma", levels = design) : Renaming (Intercept) to Intercept make.names("none,adenoma") [1] "none.adenoma"
I dont understand what is the problem with none or adenoma.
lfc I assume is the log fold change. I used for other experiments in DESEQ2 a logfold change of 1.2 therefore I want to do it identical here. Why is it not good to use a fold-change cutoff? Thank you!!
It is hard to help without knowing the complete design you have, but if you have the Sex category with only two levels then your column "SEXM" refers to the comparison M-F and you do not need to make contrasts. Your
topTable()code is correct and you can use it.So that means I only need to use make contrasts when i have more than 2 levels in one category?