Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Convenient function to retrieve compounds belonging to a pathway #14

Open
SergiPicart opened this issue Jun 18, 2020 · 3 comments
Open
Assignees

Comments

@SergiPicart
Copy link
Contributor

Even if the inclusion is network-based, this has been asked several times

@billy-s-lab
Copy link

Hello,
Thank you for a great package.
When conducting hypergeometric analysis, one can generate a results table using the 'generateResultsTable' function. Example output of such a table below.
image

How can I find out what the CompoundHits are? I would like to know which compounds are driving enrichment of certain pathways. Is there a function to extract this data (I couldn't find one) or could you please suggest a manual workaround for this?

I would also be interested to do this for results tables from diffusion analyses too.

Thank you very much for your help.

@SergiPicart
Copy link
Contributor Author

Dear Billy,

Please check if this question in the bioconductor forums helps listing the compounds for "hypergeom". It suggests a workaround and adds some details on how this would differ from an over representation analysis run directly on the KEGG compound-pathway tables.

Regarding diffusion, the graph is connected so every compound has an "association weight" to each pathway, expected to be very small if both are distant within the network. If you are interested in those weights, they are stored in the kernel matrix, but as the user was not expected to interact with those directly, it is only accessible with FELLA:::getMatrix(). However, the link in the first paragraph should suffice to extend the regular KEGG pathway definitions with indirect connections (i.e. metabolite A not belonging to pathway P directly, but reacting with enzyme B which is in pathway P).

Hope this helps!

@billy-s-lab
Copy link

Thank you very much. That really helped - I was able to access the relevant compound IDs for each pathway from hypergeometric analysis.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants