dae.gpf_instance_plugin package
Submodules
dae.gpf_instance_plugin.gpf_instance_context_plugin module
- class dae.gpf_instance_plugin.gpf_instance_context_plugin.GPFInstanceContextProvider[source]
Bases:
GenomicContextProviderDefines GPFInstance genomic context provider.
- add_argparser_arguments(parser: ArgumentParser) None[source]
Add command line arguments to the argument parser.
- init(**kwargs: Any) GenomicContext | None[source]
Initialize the GPF instance genomic context.
- class dae.gpf_instance_plugin.gpf_instance_context_plugin.GPFInstanceGenomicContext(gpf_instance: Any)[source]
Bases:
GenomicContextDefines GPFInstance genomic context.
- get_context_keys() set[str][source]
Report all keys exposed by this context.
Returns
- set[str]
The complete collection of keys under which objects can be retrieved. May be empty if the context holds no resources.
- get_context_object(key: str) Any | None[source]
Retrieve a context object by its key.
Parameters
- key
The string identifier for the desired resource.
Returns
- Any | None
The stored object if the key is present, otherwise
None.
Notes
Implementations must return
Nonewhen the key is absent rather than raisingKeyError. This convention allows callers to safely query for optional resources.