I have an input gene. I want to get all the pathways that the input gene participates in.
Once I get the pathway name/id, I want to get all other genes and gene interactions involved in that particular pathway. How can I obtain this information using the PaxtoolsR?
results <- topPathways(q="TP53", organism='9606')
uri <- results$uri[1][1]
xml <- traverse(uri = uri, path = "Pathway/pathwayComponent:Interaction/participant*/displayName")
xml_list <- xmlToList(xml)
However, I am not sure about the path parameter in traverse(). What is the correct input for path to get the pathway components and the interactions. Also, how can I convert the xml to a dataframe in R?
Thank you very much. However, when I use the PathwayCommons12.All.hgnc.txt file. It is throwing the following error:
Error in checkInputFilePc(inputFile) :
ERROR: A maximum file size limit of 1GB has been placed on files being read. Reading larger files with this function may be very slow. Please contact package author for workarounds.
Could you please let me know if there is any solution for this?
I see that when I run this script for a large number of genes, it's taking a very long time to get the interactions using getPc(). I tried to use the 'PathwayCommons12.All.hgnc.txt' file to get the interactions. However, the delimiters in it doesn't seem to be correctly places because of which I am finding it difficult to load it as a table in R. Could you please let me know if there is any other way to get the interactions faster?
What did you try?
I tried the following:
However, I am not sure about the path parameter in traverse(). What is the correct input for path to get the pathway components and the interactions. Also, how can I convert the xml to a dataframe in R?
Thanks