msigdbr
msigdbr copied to clipboard
Add functions update_GO_names, cap_names
update_GO_names
pulls official GO term descriptions from the appropriate OBO file from the Gene Ontology Consortium. Uses data.table
for fast replacement of values while merging, but can easily be rewritten with dplyr
to remove that import. cap_names
capitalizes the first letter of each term description unless there is special capitalization (e.g., "mRNA" would not be capitalized); improves visualizations.
@igordot This addresses issue #19 . I thought this might be helpful, but feel free to scrap this if you don't think it is necessary.
Thank you for doing this. This is a really nice enhancement and I am glad you shared the code. I still feel like this is outside the scope of the package and adds some extra dependencies, so I am not ready to merge it, but it's definitely helpful to have it here in case anyone is looking for such functionality.
@igordot No worries. I'll probably make a helper package, then, that has some helper functions for this and the fgsea
package. I'll let you know when I've had time to do that.
A helper package is a great idea. I thought about suggesting that, but it seemed like an overkill for one function. Makes more sense as you add more functionality.