[R] Check a list of genes for a specific GO term

Rui Barradas ruipbarradas at sapo.pt
Sun Jul 7 11:28:29 CEST 2013


Hello,

Your question is not very clear, maybe if you post a data example.
To do so, use ?dput. If your data frame is named 'dat', use the following.

dput(head(dat, 50))  # paste the output of this in a post


If you want to get the rownames matching a certain pattern, maybe 
something like the following.


idx <- grep("GO:0006355", rownames(dat))
dat[idx, ]


Hope this helps,

Rui Barradas


Em 07-07-2013 07:01, Chirag Gupta escreveu:
> Hello everyone
>
> I have a dataframe with rows as probeset ID and columns as samples
> I want to check the rownames and find which are those probes are
> transcription factors. (GO:0006355 )
>
> Any suggestions?
>
> Thanks!
>



More information about the R-help mailing list