Entering edit mode
10.1 years ago
Parham
★
1.6k
Hi,
I am learning goseq and I know a bit of R. I just can read the codes and understand them but not very creative to type what I want to do. So I need to prepare data from deseq2res. One vector containing all genes (column 1) and the other vector containing all DE genes (padj < 0.05
). Can anyone do the favor? Any lines of code is appreciated!
Random comment re: R style: In this case, you should avoid the call to
which
, ie. instead ofdo
because sometimes funny things happen when indexing with a 0 length vector (i.e. which would be what is returned from
which
if there were no results withpadj < 0.05
... and it's redundant here, anyway ;-)That'll pick up
NA
s, which will be present in DESeq2's output due to independent filtering.Thanks for mentioning it!
Thanks a million Devon.