Entering edit mode
rkp
•
0
@rkp-10175
Last seen 6.9 years ago
Dear All,
I want to find the probe id of Common genes that are differentially expressed between all the comparisons by limma analysis. Any suggestions will be greatly appreciated.
With kind regards,
Rajesh
Dear Gordon,
Thank you very much for providing script but I have not found DEG for all contrast. It is showing NULL
> results <- decideTests(fit2)
> i <- rowSums(results != 0) == ncol(fit2)
> fit2$genes[i,]
NULL
Presumably you haven't assigned anything to
fit2$genes
. In a routine analysis, this should be a data frame containing annotation information for each row, e.g., probe IDs, gene symbols. See, for example, Section 4.8 of the limma user's guide. Otherwise, you could just usei
to subset a vector of probe IDs corresponding to each row offit2
. For example, if you had previously defined the row names to be the probe IDs, then you could dorownames(fit2)[i]
.