This is a test version of Biostars. For the public version, visit https://www.biostars.org.
extracting a gene from a gmt file

Dear all,

Starting from a conversation at : https://bioinformatics.stackexchange.com/questions/5400/how-to-convert-data-in-gmt-format-to-dataframe, would you please advise:

Given a gmt file, how could extract the pathways that are associated with a specific gene?

Thank you very much!

Bogdan

gmt pathway

Link posted in SE (msigdb-BI) needs a registration and login. Please post example data.

Please use sensible tags that highlight the subject matter of your post. The current tags are nonsensical and show no effort.

1 answer

Considering the format of the gmt file, I guess the easiest way will be to do

grep -f <file with gene> -w <gmt file>

Log in to answer this question.