Hi, I have a “strategy” question.
I searched the documentation and forums and think it's not possible to filter by attributes that don’t come up using the listFilters function (eg. GO description). (If it’s not clear what I want to do, I essentially want to follow this example, but filter the GO description using the value “MAP kinase activity”, rather than GO IDs using the value “GO:0004707”)
My current solution is to download all the GO IDs and GO descriptions in a mart, search that table to get unique GO IDs, then use biomaRt. Is this the recommended way to do it? I think I would really only need the unique GO IDs and descriptions (vs. downloading everything from each mart), but I'm not confident the data in eg. Go.db would match the data in biomaRt.
I would appreciate any advice/comments. Thank you in advance for your help!
Hi Mike,
thank you so much for the detailed answer and so so sorry about the very late reply (I'm not sure what I did to my notifications)!
I see where I went wrong now: I didn’t realise that’s what
go_parent_name
/"Parent term name" meant..searchFilters
definitely sounds very useful!For anyone else who might find this useful, note the difference between
go_parent_name
(which can only be used as a filter) vsname_1006
(which can only be used as an attribute):Created on 2019-03-27 by the reprex package (v0.2.1)
For my particular use case, I’d prefer making the search case insensitive and to detect a word/phrase vs. looking for an exact match. In case someone else has a similar use case, this is what I’m using (any feedback is always welcomed!):
Created on 2019-03-27 by the reprex package (v0.2.1)