dae.gene package
Submodules
dae.gene.denovo_gene_set_collection module
- class dae.gene.denovo_gene_set_collection.DenovoGeneSetCollection(study_id, study_name, config, person_set_collections)[source]
Bases:
object
Class representing a study’s denovo gene sets.
dae.gene.denovo_gene_set_collection_factory module
- class dae.gene.denovo_gene_set_collection_factory.DenovoGeneSetCollectionFactory[source]
Bases:
object
Class for creating and loading created denovo gene sets.
- classmethod build_collection(genotype_data_study)[source]
Build a denovo gene set collection for a study and save it.
dae.gene.denovo_gene_sets_db module
- class dae.gene.denovo_gene_sets_db.DenovoGeneSetsDb(gpf_instance)[source]
Bases:
object
Class to manage available de Novo gene sets.
- get_all_gene_sets(denovo_gene_set_spec, permitted_datasets=None, collection_id='denovo')[source]
Return all de Novo gene sets matching the spec for permitted DS.
dae.gene.gene_scores module
dae.gene.gene_sets_db module
Classes for handling of gene sets.
- class dae.gene.gene_sets_db.BaseGeneSetCollection[source]
Bases:
ABC
Base class for gene set collections.
- abstract get_all_gene_sets() list[dae.gene.gene_sets_db.GeneSet] [source]
Return list of all gene sets in the collection.
- class dae.gene.gene_sets_db.GeneSet(name: str, desc: str, syms: list[str])[source]
Bases:
object
Class representing a set of genes.
- count: int
- desc: str
- name: str
- syms: list[str]
- class dae.gene.gene_sets_db.GeneSetCollection(resource: GenomicResource)[source]
Bases:
GenomicResourceImplementation
,ResourceConfigValidationMixin
,InfoImplementationMixin
,BaseGeneSetCollection
Class representing a collection of gene sets in a resource.
- add_statistics_build_tasks(task_graph: TaskGraph, **kwargs: Any) list[dae.task_graph.graph.Task] [source]
Add tasks for calculating resource statistics to a task graph.
- calc_statistics_hash() bytes [source]
Compute the statistics hash.
This hash is used to decide whether the resource statistics should be recomputed.
- property files: set[str]
Return a list of resource files the implementation utilises.
- get_all_gene_sets() list[dae.gene.gene_sets_db.GeneSet] [source]
Return list of all gene sets in the collection.
- get_gene_set(gene_set_id: str) GeneSet | None [source]
Return the gene set if found; returns None if not found.
- load_gene_sets() dict[str, dae.gene.gene_sets_db.GeneSet] [source]
Build a gene set collection from a given GenomicResource.
- class dae.gene.gene_sets_db.GeneSetsDb(gene_set_collections: list[dae.gene.gene_sets_db.GeneSetCollection])[source]
Bases:
object
Class that represents a dictionary of gene set collections.
- property collections_descriptions: list[dict[str, Any]]
Collect gene set descriptions.
Iterates and creates a list of descriptions for each gene set collection
- get_all_gene_sets(collection_id: str) list[dae.gene.gene_sets_db.GeneSet] [source]
Return all the gene sets in the specified collection.
- get_gene_set(collection_id: str, gene_set_id: str) GeneSet | None [source]
Find and return a gene set in a gene set collection.
- get_gene_set_collection_ids() set[str] [source]
Return all gene set collection ids.
Including the ids of collections which have not been loaded.
- dae.gene.gene_sets_db.build_gene_set_collection_from_file(filename: str, collection_id: str | None = None, collection_format: str | None = None, web_label: str | None = None, web_format_str: str | None = None) GeneSetCollection [source]
Return a Gene Set Collection by adapting a file to a local resource.
- dae.gene.gene_sets_db.build_gene_set_collection_from_resource(resource: GenomicResource) GeneSetCollection [source]
Return a Gene Set Collection built from a resource.