`?goana` indicates that the function needs `an DGELRT or DGEExact object`, so that you cannot easily rebuild (if at all) from that table. Start over and be sure to save your critical elements or the entire environment after analysis, e.g. via `saveRDS` or `save.image` to always have it accessable if needed. sorry, my bad
I think you're reading ?goana.DGELRT rather than ?goana. Type methods(goana) to see the methods available. The default method supports an atomic vector of gene IDs.
In general, when I can, I try to write R code that has an entry point using base R objects as well as an object-orientated entry point.
I assume that the differential results table is complete and contains all expressed genes rather than just the 12 genes shown in your post. I also assume that there are some significantly DE genes and that FDR < 0.05 is an appropriate DE cutoff.
If you don't want to separate DE genes by direction of change then
library(limma)
Results <- read.csv("mycsvfile.csv")
Universe <- as.character(Results$ENTREZID)
DE <- Universe[ Results$FDR < 0.05 ]
g <- goana(DE, Universe)
topGO(g)
If you do want to separate genes by direction of change (recommended) then
What have you tried?
`?goana` indicates that the function needs `an DGELRT or DGEExact object`, so that you cannot easily rebuild (if at all) from that table. Start over and be sure to save your critical elements or the entire environment after analysis, e.g. via `saveRDS` or `save.image` to always have it accessable if needed.sorry, my badI think you're reading
?goana.DGELRT
rather than?goana
. Typemethods(goana)
to see the methods available. The default method supports an atomic vector of gene IDs.In general, when I can, I try to write R code that has an entry point using base R objects as well as an object-orientated entry point.