Closed karissawhiting closed 2 years ago
@carokos let me know if you are interested in working on this, thanks!
Need to test and add custom pathway function.
@carokos I expanded this function a bit, allowing for custom pathways and also allowing annotation by gene or specific alteration. Please give it a test run if you can.
Thanks for your work on this! <3
I found a typo in the file I was using with the possible pathway alterations. When I get a minute, I'll update and push the corrected file.
closed by #163
I removed the pathways argument from the binary matrix function, but we still have the
custom_pathway()
function. I'm thinking we should remove this as well and have one unified function calledadd_pathway()
that can annotate pre-set pathways included in the package, or allow you to pass a custom pathway. It could be used as follows:Where the
pathway
argument would be "all" be default, allowing you to annotate all package-included pathways. (seegnomeR::pathways
). Otherwise you could specify a specificpathway_id
like "RTK-RAS".Additionally, you could add a custom pathway with:
First step of this will be updating the
gnomeR::pathways
internal data which is currently incorrect. See pathways.R which pulls data from pathways.csv to create this internal data frame. You can update pathways.csv directly.