Tool: Use enrichr enrichment from command line
3
gravatar for WouterDeCoster
2.8 years ago by
Belgium
WouterDeCoster41k wrote:

Yesterday I was reminded about a script I wrote a while ago, so might as well share it here. I wrote a command line script (python) to use Enrichr, based on their API and starting from their example code. So this isn't something very complicated or fancy, just convenient. I'm not affiliated to Enrichr. I just don't like leaving the command line and copy paste my gene list.

The script is available on github.
You can use it with a newline-separated list of gene symbols, or alternatively, it can read the list from stdin. This can be useful when piping the results of differential expression analysis or similar, just cut out the column containing gene symbols and pipe to the script. As of now it only accepts gene symbols and Enrichr is probably just for human genetics.

You can specify which database you want to query against, or just use a default set of databases. It's quite fast.
More detailed information is available in the README.

I welcome your feedback!

ADD COMMENTlink written 2.8 years ago by WouterDeCoster41k

It would be wonderful if you could also add plotting function ( to plot top terms ). I could work on it if you need help.

ADD REPLYlink written 2.8 years ago by geek_y9.9k

Hi Goutham Atla, sorry for the rather late response. But I guess that's justified these days. Creating plots of top terms sounds like a nice improvement, and if you got some ideas on how to implement that I certainly welcome your contribution!

ADD REPLYlink written 2.8 years ago by WouterDeCoster41k
Please log in to add an answer.

Help
Access

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 2.3.0
Traffic: 1366 users visited in the last hour