###perform gene set enrichment using Atlas as background to find factors genes are enriched for
#load the background files for the species of interest (requires downloading)
#load("human_gene_list.RData") #human_genelist_bg
#load("human_factor_counts.RData") #human_factor_counts
###creat or load your genelist of interest
genelist <- c("ENSG00000184674", "ENSG00000138193", "ENSG00000229807", "ENSG00000254279", "ENSG00000106546",
"ENSG00000163430", "ENSG00000118260", "ENSG00000086991")
###get id for species 'human'
taxon <-getTaxonURI("human") #obo:NCBITaxon_9606
###do enrichment
#results <- doFishersEnrichmentForEnsemblIds(genelist, taxon, human_genelist_bg, human_factor_counts)
Run the code above in your browser using DataLab