Enrichr : how to provide background as gene symbols or int ?
1
0
Entering edit mode
5.2 years ago
fr ▴ 210

I am using enrichr to perform some enrichment analyses. In their documentation they say that you can indicate the background list, or simply a number of genes for the background:

background (int) – BioMart dataset name for retrieving background gene information. This argument only works when gene_sets input is a gmt file or python dict. You could also specify a number by yourself, e.g. total expressed genes number. In this case, you will skip retrieving background infos from biomart.

source: https://gseapy.readthedocs.io/en/latest/run.html?highlight=background#gseapy.enrichr

  1. Is it possible to provide this background as human gene symbols? If so, how?
  2. May I provide the background myself? I want to have a smaller set of genes as background.
  3. I'm unable to provide the size for the background as well, and even though I have background=700, I still get ValueError: backgroud should be set or int object

thanks in advance

gene RNA-Seq microarray gsea • 4.0k views
ADD COMMENT
2
Entering edit mode
5.2 years ago
fr ▴ 210

1. Is it possible to provide this background as human gene symbols? If so, how?

Writing background=hsapiens_gene_ensembl allows to use gene symbols, not only ensembl ids.

2. May I provide the background myself? I want to have a smaller set of genes as background.

The latest commit (version 0.9.10) seems to allow for this, but I was unable to implement it myself. See commit

3. I'm unable to provide the size for the background as well, and even though I have background=700, I still get ValueError: backgroud should be set or int object.

The latest commit (version 0.9.10) solves this issue.

ADD COMMENT

Login before adding your answer.

Traffic: 2705 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6