I am trying to set certain criteria of choice for picking DE genes, after using limma workflow. I want to select genes that have adjusted p-value < 0.05 and absolute value of log2 fold change > 0.5. The code I used is:
significant <- topTable_result[which(topTable_result$adj.P.Val<0.05) & abs(topTable_result$logFC)>0.5,]
but I receive a warning:
Warning message:
In which(topTable_result$adj.P.Val < 0.05) & abs(topTable_result$logFC) > :
longer object length is not a multiple of shorter object length
What could I do to tackle this burden?
PS: It is now a matter of giving wrong naming in the abs( ) function. The underscore is just a typo in this section