Gene sets (
This module can load either gene sets distributed with Orange or custom gene sets in the GMT file format.
The available gene set collection can be listed with
collections loads gene sets. Gene sets provided with Orange are
organized hierarchically. Although the
GO hierarchy includes subsets,
all of them can be loaded with (the organism here is a mouse):
To open multiple gene set collections at once, for example, KEGG and GO, try:
orangecontrib.bio.geneset.collections((("KEGG",), "10090"), (("GO",), "10090"))
You could also open a file with gene sets. The following line would open
specific.gmt from the current working directory:
The above examples combined:
orangecontrib.bio.geneset.collections((("KEGG",), "10090"), (("GO",), "10090"), "specific.gmt")
Furthermore, all gene sets for a specific organism can be opened with an empty hierarchy:
Loading gene sets¶
Return gene sets available in the local and ServerFiles repositories. It returns a list of tuples of (hierarchy, organism, available_locally)
Results can be filtered with the following parameters.
- org (str) – Organism tax id.
- local (bool) – Available locally.
Load gene sets from various sources: GMT file, GO, KEGG, and others. Return an instance of
Each arguments specifies a gene set and can be either:
- a filename of a GMT file,
- a tuple (hierarchy, organism) (for example
(("KEGG",), "10090")), or
- an instance of
A collection of gene sets: contains
Return a common hierarchy.
Return a common organism.
Return all hierarchies.
Sets hierarchy for all gene sets.
Return gene sets in old dictionary format.
GeneSet(genes=, name=None, id=None, description=None, link=None, organism=None, hierarchy=None, pair=None)¶
A single set of genes.
Return a gene set name with hieararchy.
Gene set description.
A set of genes. Genes are strings.
Hierarchy should be formated as a tuple, for example
Short gene set ID.
Link to further information about this gene set.
Gene set name.
Organism as a NCBI taxonomy ID.
For backward compatibility. Return a gene set as a tuple (id, list of genes).
Registers given genesets locally. The gene set is registered by the common hierarchy or organism (None if organisms are different). :param GeneSets genesets: :param serverFiles: If serverFiles is an authenticated ServerFiles connection,the input gene sets are uploaded to the repository.