sfaira.versions.genomes.GenomeContainer¶
- class sfaira.versions.genomes.GenomeContainer(organism: Optional[str] = None, release: Optional[str] = None)¶
Container class for a genome annotation for a specific release.
This class can be used to translate between symbols and ENSEMBL IDs for a specific assembly, to store specific gene subsets of an assembly, and to subselect genes by biotypes in an assembly.
Attributes
List of biotypes of genes in genome container.
List of ENSEMBL IDs of genes in genome container.
Dictionary-formatted map of ENSEMBL IDs to gene symbols.
Number of genes in genome container.
Dictionary-formatted map of gene symbols to ENSEMBL IDs.
List of symbols of genes in genome container.
Methods
organism
()set
([biotype, symbols, ensg])Subset by gene biotype or to gene list defined by identifiers (symbol or ensemble ID).
Translate ENSEMBL IDs to gene symbols.
Translate gene symbols to ENSEMBL IDs.