Warning
This document is for an old release of Galaxy. You can alternatively view this page in the latest release if it exists or view the top of the latest release's documentation.
galaxy package¶
Galaxy root package – this is a namespace package.
Subpackages¶
- galaxy.actions package
- galaxy.app_unittest_utils package
- galaxy.auth package
- galaxy.authnz package
- galaxy.celery package
- galaxy.config package
- galaxy.containers package
- galaxy.datatypes package
- Subpackages
- galaxy.datatypes.converters package
- Submodules
- galaxy.datatypes.converters.bed_to_gff_converter module
- galaxy.datatypes.converters.bgzip module
- galaxy.datatypes.converters.cram_to_bam module
- galaxy.datatypes.converters.fasta_to_len module
- galaxy.datatypes.converters.fasta_to_tabular_converter module
- galaxy.datatypes.converters.fastq_to_fqtoc module
- galaxy.datatypes.converters.fastqsolexa_to_fasta_converter module
- galaxy.datatypes.converters.fastqsolexa_to_qual_converter module
- galaxy.datatypes.converters.gff_to_bed_converter module
- galaxy.datatypes.converters.gff_to_interval_index_converter module
- galaxy.datatypes.converters.interval_to_bed_converter module
- galaxy.datatypes.converters.interval_to_bedstrict_converter module
- galaxy.datatypes.converters.interval_to_fli module
- galaxy.datatypes.converters.interval_to_interval_index_converter module
- galaxy.datatypes.converters.interval_to_tabix_converter module
- galaxy.datatypes.converters.lped_to_fped_converter module
- galaxy.datatypes.converters.lped_to_pbed_converter module
- galaxy.datatypes.converters.maf_to_fasta_converter module
- galaxy.datatypes.converters.maf_to_interval_converter module
- galaxy.datatypes.converters.parquet_to_csv_converter module
- galaxy.datatypes.converters.pbed_ldreduced_converter module
- galaxy.datatypes.converters.pbed_to_lped_converter module
- galaxy.datatypes.converters.picard_interval_list_to_bed6_converter module
- galaxy.datatypes.converters.pileup_to_interval_index_converter module
- galaxy.datatypes.converters.ref_to_seq_taxonomy_converter module
- galaxy.datatypes.converters.tabular_csv module
- galaxy.datatypes.converters.tabular_to_dbnsfp module
- galaxy.datatypes.converters.vcf_to_interval_index_converter module
- galaxy.datatypes.converters.vcf_to_vcf_bgzip module
- galaxy.datatypes.converters.wiggle_to_simple_converter module
- galaxy.datatypes.dataproviders package
- Submodules
- galaxy.datatypes.dataproviders.base module
- galaxy.datatypes.dataproviders.chunk module
- galaxy.datatypes.dataproviders.column module
- galaxy.datatypes.dataproviders.dataset module
- galaxy.datatypes.dataproviders.decorators module
- galaxy.datatypes.dataproviders.exceptions module
- galaxy.datatypes.dataproviders.external module
- galaxy.datatypes.dataproviders.hierarchy module
- galaxy.datatypes.dataproviders.line module
- galaxy.datatypes.display_applications package
- galaxy.datatypes.util package
- galaxy.datatypes.converters package
- Submodules
- galaxy.datatypes.annotation module
- galaxy.datatypes.anvio module
- galaxy.datatypes.assembly module
- galaxy.datatypes.binary module
- galaxy.datatypes.blast module
- galaxy.datatypes.checkers module
- galaxy.datatypes.chrominfo module
- galaxy.datatypes.constructive_solid_geometry module
- galaxy.datatypes.coverage module
- galaxy.datatypes.data module
- galaxy.datatypes.flow module
- galaxy.datatypes.genetics module
- galaxy.datatypes.gis module
- galaxy.datatypes.goldenpath module
- galaxy.datatypes.graph module
- galaxy.datatypes.hdf5 module
- galaxy.datatypes.images module
- galaxy.datatypes.interval module
- galaxy.datatypes.isa module
- galaxy.datatypes.media module
- galaxy.datatypes.metacyto module
- galaxy.datatypes.metadata module
- galaxy.datatypes.microarrays module
- galaxy.datatypes.molecules module
- galaxy.datatypes.mothur module
- galaxy.datatypes.msa module
- galaxy.datatypes.neo4j module
- galaxy.datatypes.ngsindex module
- galaxy.datatypes.phylip module
- galaxy.datatypes.plant_tribes module
- galaxy.datatypes.proteomics module
- galaxy.datatypes.qualityscore module
- galaxy.datatypes.registry module
- galaxy.datatypes.sequence module
- galaxy.datatypes.sniff module
- galaxy.datatypes.spaln module
- galaxy.datatypes.speech module
- galaxy.datatypes.tabular module
- galaxy.datatypes.text module
- galaxy.datatypes.tracks module
- galaxy.datatypes.triples module
- galaxy.datatypes.upload_util module
- galaxy.datatypes.xml module
- Subpackages
- galaxy.dependencies package
- galaxy.exceptions package
- galaxy.files package
- Subpackages
- galaxy.files.sources package
- Submodules
- galaxy.files.sources.anvil module
- galaxy.files.sources.basespace module
- galaxy.files.sources.dropbox module
- galaxy.files.sources.ftp module
- galaxy.files.sources.galaxy module
- galaxy.files.sources.googlecloudstorage module
- galaxy.files.sources.googledrive module
- galaxy.files.sources.onedata module
- galaxy.files.sources.posix module
- galaxy.files.sources.s3 module
- galaxy.files.sources.s3fs module
- galaxy.files.sources.ssh module
- galaxy.files.sources.webdav module
- galaxy.files.unittest_utils package
- galaxy.files.sources package
- Subpackages
- galaxy.forms package
- galaxy.job_execution package
- galaxy.job_metrics package
- Subpackages
- galaxy.job_metrics.collectl package
- galaxy.job_metrics.instrumenters package
- Submodules
- galaxy.job_metrics.instrumenters.cgroup module
- galaxy.job_metrics.instrumenters.collectl module
- galaxy.job_metrics.instrumenters.core module
- galaxy.job_metrics.instrumenters.cpuinfo module
- galaxy.job_metrics.instrumenters.env module
- galaxy.job_metrics.instrumenters.hostname module
- galaxy.job_metrics.instrumenters.meminfo module
- galaxy.job_metrics.instrumenters.uname module
- Submodules
- galaxy.job_metrics.formatting module
- Subpackages
- galaxy.jobs package
- Subpackages
- galaxy.jobs.rules package
- galaxy.jobs.runners package
- Subpackages
- Submodules
- galaxy.jobs.runners.chronos module
- galaxy.jobs.runners.cli module
- galaxy.jobs.runners.condor module
- galaxy.jobs.runners.drmaa module
- galaxy.jobs.runners.godocker module
- galaxy.jobs.runners.kubernetes module
- galaxy.jobs.runners.local module
- galaxy.jobs.runners.pbs module
- galaxy.jobs.runners.pulsar module
- galaxy.jobs.runners.slurm module
- galaxy.jobs.runners.state_handler_factory module
- galaxy.jobs.runners.tasks module
- galaxy.jobs.runners.univa module
- galaxy.jobs.splitters package
- Submodules
- galaxy.jobs.command_factory module
- galaxy.jobs.dynamic_tool_destination module
- galaxy.jobs.handler module
- galaxy.jobs.manager module
- galaxy.jobs.mapper module
- galaxy.jobs.rule_helper module
- galaxy.jobs.stock_rules module
- Subpackages
- galaxy.managers package
- Submodules
- galaxy.managers.annotatable module
- galaxy.managers.api_keys module
- galaxy.managers.base module
- galaxy.managers.citations module
- galaxy.managers.cloud module
- galaxy.managers.cloudauthzs module
- galaxy.managers.collections module
- galaxy.managers.collections_util module
- galaxy.managers.configuration module
- galaxy.managers.context module
- galaxy.managers.datasets module
- galaxy.managers.datatypes module
- galaxy.managers.deletable module
- galaxy.managers.display_applications module
- galaxy.managers.executables module
- galaxy.managers.folders module
- galaxy.managers.genomes module
- galaxy.managers.group_roles module
- galaxy.managers.group_users module
- galaxy.managers.groups module
- galaxy.managers.hdas module
- galaxy.managers.hdcas module
- galaxy.managers.histories module
- galaxy.managers.history_contents module
- galaxy.managers.interactivetool module
- galaxy.managers.jobs module
- galaxy.managers.lddas module
- galaxy.managers.libraries module
- galaxy.managers.library_datasets module
- galaxy.managers.licenses module
- galaxy.managers.markdown_parse module
- galaxy.managers.markdown_util module
- galaxy.managers.metrics module
- galaxy.managers.pages module
- galaxy.managers.quotas module
- galaxy.managers.ratable module
- galaxy.managers.rbac_secured module
- galaxy.managers.remote_files module
- galaxy.managers.roles module
- galaxy.managers.secured module
- galaxy.managers.session module
- galaxy.managers.sharable module
- galaxy.managers.taggable module
- galaxy.managers.tags module
- galaxy.managers.tool_data module
- galaxy.managers.tools module
- galaxy.managers.users module
- galaxy.managers.visualizations module
- galaxy.managers.workflows module
- galaxy.metadata package
- galaxy.model package
- Subpackages
- galaxy.model.dataset_collections package
- Subpackages
- Submodules
- galaxy.model.dataset_collections.builder module
- galaxy.model.dataset_collections.matching module
- galaxy.model.dataset_collections.registry module
- galaxy.model.dataset_collections.structure module
- galaxy.model.dataset_collections.subcollections module
- galaxy.model.dataset_collections.type_description module
- galaxy.model.migrate package
- galaxy.model.orm package
- galaxy.model.store package
- galaxy.model.tool_shed_install package
- galaxy.model.unittest_utils package
- galaxy.model.view package
- galaxy.model.dataset_collections package
- Submodules
- galaxy.model.base module
- galaxy.model.custom_types module
- galaxy.model.database_heartbeat module
- galaxy.model.database_utils module
- galaxy.model.item_attrs module
- galaxy.model.mapping module
- galaxy.model.metadata module
- galaxy.model.none_like module
- galaxy.model.scoped_session module
- galaxy.model.search module
- galaxy.model.security module
- galaxy.model.tags module
- Subpackages
- galaxy.objectstore package
- galaxy.quota package
- galaxy.schema package
- galaxy.security package
- galaxy.selenium package
- Subpackages
- Submodules
- galaxy.selenium.cli module
- galaxy.selenium.components module
- galaxy.selenium.context module
- galaxy.selenium.data module
- galaxy.selenium.driver_factory module
- galaxy.selenium.has_driver module
- galaxy.selenium.jupyter_context module
- galaxy.selenium.navigates_galaxy module
- galaxy.selenium.sizzle module
- galaxy.selenium.smart_components module
- galaxy.tool_shed package
- Subpackages
- galaxy.tool_shed.galaxy_install package
- galaxy.tool_shed.metadata package
- galaxy.tool_shed.tools package
- galaxy.tool_shed.util package
- Submodules
- galaxy.tool_shed.util.basic_util module
- galaxy.tool_shed.util.container_util module
- galaxy.tool_shed.util.hg_util module
- galaxy.tool_shed.util.metadata_util module
- galaxy.tool_shed.util.repository_util module
- galaxy.tool_shed.util.shed_util_common module
- galaxy.tool_shed.util.tool_dependency_util module
- galaxy.tool_shed.util.tool_util module
- Submodules
- galaxy.tool_shed.repository_type module
- galaxy.tool_shed.tool_shed_registry module
- Subpackages
- galaxy.tool_util package
- Subpackages
- galaxy.tool_util.biotools package
- galaxy.tool_util.client package
- galaxy.tool_util.cwl package
- galaxy.tool_util.deps package
- Subpackages
- Submodules
- galaxy.tool_util.deps.brew_exts module
- galaxy.tool_util.deps.brew_util module
- galaxy.tool_util.deps.commands module
- galaxy.tool_util.deps.conda_compat module
- galaxy.tool_util.deps.conda_util module
- galaxy.tool_util.deps.container_classes module
- galaxy.tool_util.deps.containers module
- galaxy.tool_util.deps.dependencies module
- galaxy.tool_util.deps.docker_util module
- galaxy.tool_util.deps.dockerfiles module
- galaxy.tool_util.deps.installable module
- galaxy.tool_util.deps.requirements module
- galaxy.tool_util.deps.singularity_util module
- galaxy.tool_util.deps.views module
- galaxy.tool_util.linters package
- Submodules
- galaxy.tool_util.linters.citations module
- galaxy.tool_util.linters.command module
- galaxy.tool_util.linters.cwl module
- galaxy.tool_util.linters.general module
- galaxy.tool_util.linters.help module
- galaxy.tool_util.linters.inputs module
- galaxy.tool_util.linters.outputs module
- galaxy.tool_util.linters.stdio module
- galaxy.tool_util.linters.tests module
- galaxy.tool_util.linters.xml_order module
- galaxy.tool_util.locations package
- galaxy.tool_util.parser package
- Submodules
- galaxy.tool_util.parser.cwl module
- galaxy.tool_util.parser.factory module
- galaxy.tool_util.parser.interface module
- galaxy.tool_util.parser.output_actions module
- galaxy.tool_util.parser.output_collection_def module
- galaxy.tool_util.parser.output_objects module
- galaxy.tool_util.parser.stdio module
- galaxy.tool_util.parser.util module
- galaxy.tool_util.parser.xml module
- galaxy.tool_util.parser.yaml module
- galaxy.tool_util.toolbox package
- galaxy.tool_util.unittest_utils package
- galaxy.tool_util.verify package
- Submodules
- galaxy.tool_util.edam_util module
- galaxy.tool_util.fetcher module
- galaxy.tool_util.lint module
- galaxy.tool_util.loader module
- galaxy.tool_util.loader_directory module
- galaxy.tool_util.output_checker module
- galaxy.tool_util.provided_metadata module
- Subpackages
- galaxy.tools package
- Subpackages
- galaxy.tools.actions package
- galaxy.tools.data package
- galaxy.tools.data_manager package
- galaxy.tools.error_reports package
- galaxy.tools.expressions package
- galaxy.tools.filters package
- galaxy.tools.imp_exp package
- galaxy.tools.parameters package
- Submodules
- galaxy.tools.parameters.basic module
- galaxy.tools.parameters.dataset_matcher module
- galaxy.tools.parameters.dynamic_options module
- galaxy.tools.parameters.grouping module
- galaxy.tools.parameters.history_query module
- galaxy.tools.parameters.input_translation module
- galaxy.tools.parameters.meta module
- galaxy.tools.parameters.sanitize module
- galaxy.tools.parameters.validation module
- galaxy.tools.parameters.wrapped module
- galaxy.tools.parameters.wrapped_json module
- galaxy.tools.search package
- galaxy.tools.util package
- Submodules
- galaxy.tools.biotools module
- galaxy.tools.cache module
- galaxy.tools.data_fetch module
- galaxy.tools.errors module
- galaxy.tools.evaluation module
- galaxy.tools.exception_handling module
- galaxy.tools.execute module
- galaxy.tools.recommendations module
- galaxy.tools.remote_tool_eval module
- galaxy.tools.repositories module
- galaxy.tools.special_tools module
- galaxy.tools.test module
- galaxy.tools.wrappers module
- Subpackages
- galaxy.tours package
- galaxy.util package
- Subpackages
- Submodules
- galaxy.util.aliaspickler module
- galaxy.util.bool_expressions module
- galaxy.util.bunch module
- galaxy.util.bytesize module
- galaxy.util.checkers module
- galaxy.util.commands module
- galaxy.util.compression_utils module
- galaxy.util.dbkeys module
- galaxy.util.dictifiable module
- galaxy.util.dynamic module
- galaxy.util.expressions module
- galaxy.util.facts module
- galaxy.util.filelock module
- galaxy.util.form_builder module
- galaxy.util.hash_util module
- galaxy.util.heartbeat module
- galaxy.util.image_util module
- galaxy.util.inflection module
- galaxy.util.json module
- galaxy.util.jstree module
- galaxy.util.lazy_process module
- galaxy.util.monitors module
- galaxy.util.odict module
- galaxy.util.oset module
- galaxy.util.permutations module
- galaxy.util.plugin_config module
- galaxy.util.properties module
- galaxy.util.renamed_temporary_file module
- galaxy.util.resources module
- galaxy.util.rules_dsl module
- galaxy.util.sanitize_html module
- galaxy.util.script module
- galaxy.util.search module
- galaxy.util.simplegraph module
- galaxy.util.sleeper module
- galaxy.util.sockets module
- galaxy.util.specs module
- galaxy.util.sqlite module
- galaxy.util.submodules module
- galaxy.util.task module
- galaxy.util.template module
- galaxy.util.tool_version module
- galaxy.util.topsort module
- galaxy.util.ucsc module
- galaxy.util.validation module
- galaxy.util.watcher module
- galaxy.util.web_compat module
- galaxy.util.xml_macros module
- galaxy.util.yaml_util module
- galaxy.util.zipstream module
- galaxy.visualization package
- Subpackages
- galaxy.visualization.data_providers package
- galaxy.visualization.genome package
- galaxy.visualization.plugins package
- Submodules
- galaxy.visualization.plugins.config_parser module
- galaxy.visualization.plugins.interactive_environments module
- galaxy.visualization.plugins.plugin module
- galaxy.visualization.plugins.registry module
- galaxy.visualization.plugins.resource_parser module
- galaxy.visualization.plugins.utils module
- galaxy.visualization.tracks package
- Submodules
- galaxy.visualization.genomes module
- Subpackages
- galaxy.web package
- galaxy.web_stack package
- galaxy.webapps package
- galaxy.webhooks package
- galaxy.work package
- galaxy.workflow package
Submodules¶
galaxy.app module¶
- class galaxy.app.HaltableContainer[source]¶
Bases:
galaxy.di.Container
- class galaxy.app.ConfiguresGalaxyMixin[source]¶
Bases:
object
Shared code for configuring Galaxy-like app objects.
- tool_cache: galaxy.tools.cache.ToolCache¶
- job_config: galaxy.jobs.JobConfiguration¶
- toolbox: galaxy.tools.ToolBox¶
- toolbox_search: galaxy.tools.search.ToolBoxSearch¶
- container_finder: galaxy.tool_util.deps.containers.ContainerFinder¶
- property tool_dependency_dir¶
- class galaxy.app.MinimalGalaxyApplication(fsmon=False, **kwargs)[source]¶
Bases:
galaxy.structured_app.BasicSharedApp
,galaxy.app.ConfiguresGalaxyMixin
,galaxy.app.HaltableContainer
,galaxy.app.SentryClientMixin
Encapsulates the state of a minimal Galaxy application
- __init__(fsmon=False, **kwargs) None [source]¶
- Parameters
container – Optional container if provided the existing definitions will be copied
:param log_undefined_deps indicates if a log message should be emmited when an undefined dep is loaded
- application_stack: galaxy.web_stack.ApplicationStack¶
- auth_manager: galaxy.auth.AuthManager¶
- toolbox: Any¶
- security_agent: Any¶
- quota_agent: galaxy.quota.QuotaAgent¶
- class galaxy.app.GalaxyManagerApplication(configure_logging=True, **kwargs)[source]¶
Bases:
galaxy.structured_app.MinimalManagerApp
,galaxy.app.MinimalGalaxyApplication
Extends the MinimalGalaxyApplication with most managers that are not tied to a web or job handling context.
- __init__(configure_logging=True, **kwargs)[source]¶
- Parameters
container – Optional container if provided the existing definitions will be copied
:param log_undefined_deps indicates if a log message should be emmited when an undefined dep is loaded
- job_config: JobConfiguration¶
- user_manager: Any¶
- hda_manager: Any¶
- history_manager: Any¶
- dataset_collection_manager: Any¶
- workflow_manager: Any¶
- workflow_contents_manager: Any¶
- library_folder_manager: Any¶
- library_manager: Any¶
- role_manager: Any¶
- job_manager: Any¶
- file_sources: galaxy.files.ConfiguredFileSources¶
- installed_repository_manager: Any¶
- genome_builds: galaxy.util.dbkeys.GenomeBuilds¶
- class galaxy.app.UniverseApplication(**kwargs)[source]¶
Bases:
galaxy.structured_app.StructuredApp
,galaxy.app.GalaxyManagerApplication
Encapsulates the state of a Universe application
- __init__(**kwargs) None [source]¶
- Parameters
container – Optional container if provided the existing definitions will be copied
:param log_undefined_deps indicates if a log message should be emmited when an undefined dep is loaded
- amqp_internal_connection_obj: Optional[kombu.connection.Connection]¶
- queue_worker: Any¶
- dependency_resolvers_view: galaxy.tool_util.deps.views.DependencyResolversView¶
- test_data_resolver: galaxy.tool_util.verify.test_data.TestDataResolver¶
- dynamic_tool_manager: Any¶
- api_keys_manager: Any¶
- genomes: Any¶
- data_provider_registry: Any¶
- error_reports: Any¶
- tool_cache: Any¶
- watchers: Any¶
- visualizations_registry: Any¶
- webhooks_registry: galaxy.webhooks.WebhooksRegistry¶
- security_agent: galaxy.model.security.GalaxyRBACAgent¶
- host_security_agent: galaxy.model.security.HostAgent¶
- workflow_scheduling_manager: Any¶
- trs_proxy: galaxy.workflow.trs_proxy.TrsProxy¶
- interactivetool_manager: Any¶
- tool_shed_repository_cache: Optional[Any]¶
- tag_handler: galaxy.model.tags.GalaxyTagHandler¶
- file_sources: galaxy.files.ConfiguredFileSources¶
- genome_builds: galaxy.util.dbkeys.GenomeBuilds¶
- job_metrics: galaxy.job_metrics.JobMetrics¶
- install_model: galaxy.model.base.ModelMapping¶
- vault: galaxy.security.vault.Vault¶
- history_manager: Any¶
- hda_manager: Any¶
- workflow_manager: WorkflowsManager¶
- workflow_contents_manager: Any¶
- library_folder_manager: Any¶
- library_manager: Any¶
- role_manager: Any¶
- tool_data_tables: ToolDataTableManager¶
- installed_repository_manager: Any¶
- job_config: JobConfiguration¶
- job_manager: Any¶
- user_manager: Any¶
galaxy.config_watchers module¶
- class galaxy.config_watchers.ConfigWatchers(app: galaxy.structured_app.StructuredApp)[source]¶
Bases:
object
Contains ToolConfWatcher, ToolWatcher and ToolDataWatcher objects.
- __init__(app: galaxy.structured_app.StructuredApp)[source]¶
- property watchers¶
- property data_manager_configs¶
- property tool_data_paths¶
- property tool_config_paths¶
- property job_rules_paths¶
galaxy.di module¶
Dependency injection framework for Galaxy-type apps.
- class galaxy.di.Container(container: Optional[lagom.container.Container] = None, log_undefined_deps: Union[bool, logging.Logger] = False)[source]¶
Bases:
lagom.container.Container
Abstraction around lagom to provide a dependency injection context.
Abstractions used by Galaxy should come through this interface so we can swap out the backend as needed. For instance https://punq.readthedocs.io/en/latest/ containers look very nice and would allow us to also inject by name (e.g. for config variables for instance).
- resolve_or_none(dep_type: Type[galaxy.di.T]) Optional[galaxy.di.T] [source]¶
Resolve the dependent type or just return None.
If resolution is impossible assume caller has a backup plan for constructing the desired object. Used to construct controllers that may or may not be resolvable (some have upgraded but legacy framework still works).
galaxy.main module¶
Entry point for starting Galaxy without starting as part of a web server.
Example Usage: Start a job/workflow handler without a web server and with a given name using.
galaxy-main –server-name handler0
Start as a daemon with (requires daemonized - install with ‘pip install daemonize’):
galaxy-main -d –daemon-log-file=handler0-daemon.log –pid-file handler0.pid –server-name handler0
In daemon mode logging of Galaxy (as opposed to this script) is configured via a loggers section in Galaxy’s ini file - this can be overridden with sensible defaults logging to a single file with the following:
galaxy-main -d –server-name handler0 –daemon-log-file=handler0-daemon.log –pid-file handler0.pid –log-file handler0.log
This can also be used to start Galaxy as a uWSGI mule, e.g. for job handling:
uwsgi … –py-call-osafterfork –mule=lib/galaxy/main.py –mule=lib/galaxy/main.py –farm=job-handlers:1,2
The –py-call-osafterfork allows for proper shutdown on SIGTERM/SIGINT.
- galaxy.main.load_galaxy_app(config_builder, config_env=False, log=None, attach_to_pools=None, **kwds)[source]¶
galaxy.main_config module¶
Utilities for finding Galaxy’s configuration file.
This is for use by web framework code and scripts (e.g. scripts/galaxy_main.py).
- class galaxy.main_config.WebappSetupProps(app_name: str, default_section_name: str, env_config_file: str, env_config_section: Optional[str] = None, check_galaxy_root: bool = False)[source]¶
Bases:
tuple
Basic properties to provide information about the App and the environment variables used to resolve the App configuration.
- property app_name¶
Alias for field number 0
- property default_section_name¶
Alias for field number 1
- property env_config_file¶
Alias for field number 2
- property env_config_section¶
Alias for field number 3
- property check_galaxy_root¶
Alias for field number 4
- class galaxy.main_config.WebappConfig(global_conf: dict, load_app_kwds: dict, wsgi_preflight: bool = False)[source]¶
Bases:
tuple
The resolved configuration values for a Webapp.
- property global_conf¶
Alias for field number 0
- property load_app_kwds¶
Alias for field number 1
- property wsgi_preflight¶
Alias for field number 2
- class galaxy.main_config.WebappConfigResolver(props: galaxy.main_config.WebappSetupProps)[source]¶
Bases:
object
- __init__(props: galaxy.main_config.WebappSetupProps) None [source]¶
- resolve_config() galaxy.main_config.WebappConfig [source]¶
galaxy.queue_worker module¶
Galaxy control queue and worker. This is used to handle ‘app’ control like reloading the toolbox, etc., across multiple processes.
- galaxy.queue_worker.send_local_control_task(app, task, get_response=False, kwargs=None)[source]¶
This sends a message to the process-local control worker, which is useful for one-time asynchronous tasks like recalculating user disk usage.
- galaxy.queue_worker.send_control_task(app, task, noop_self=False, get_response=False, routing_key='control.*', kwargs=None)[source]¶
This sends a control task out to all processes, useful for things like reloading a data table, which needs to happen individually in all processes. Set noop_self to True to not run task for current process. Set get_response to True to wait for and return the task results as a list.
- class galaxy.queue_worker.ControlTask(queue_worker)[source]¶
Bases:
object
- property connection¶
- property control_queues¶
- property exchange¶
- property declare_queues¶
- galaxy.queue_worker.create_panel_section(app, **kwargs)[source]¶
Updates in memory toolbox dictionary.
- class galaxy.queue_worker.GalaxyQueueWorker(app, task_mapping=None)[source]¶
Bases:
kombu.mixins.ConsumerProducerMixin
,threading.Thread
This is a flexible worker for galaxy’s queues. Each process, web or handler, will have one of these used for dispatching so called ‘control’ tasks.
- send_control_task(task, noop_self=False, get_response=False, routing_key='control.*', kwargs=None)[source]¶
- property declare_queues¶
galaxy.queues module¶
All message queues used by Galaxy
- galaxy.queues.all_control_queues_for_declare(application_stack)[source]¶
For in-memory routing (used by sqlalchemy-based transports), we need to be able to build the entire routing table in producers.
galaxy.structured_app module¶
Typed description of Galaxy’s app object.
- class galaxy.structured_app.BasicApp(container: Optional[lagom.container.Container] = None, log_undefined_deps: Union[bool, logging.Logger] = False)[source]¶
Bases:
galaxy.di.Container
- config: Any¶
- datatypes_registry: galaxy.datatypes.registry.Registry¶
Bases:
galaxy.structured_app.BasicApp
Stripped down version of the
app
shared between Galaxy and ToolShed.Code that is shared between Galaxy and the Tool Shed should be annotated as using BasicSharedApp instead of StructuredApp below.
- class galaxy.structured_app.MinimalToolApp(container: Optional[lagom.container.Container] = None, log_undefined_deps: Union[bool, logging.Logger] = False)[source]¶
Bases:
galaxy.structured_app.BasicApp
- sa_session: Union[galaxy.model.scoped_session.galaxy_scoped_session, galaxy.model.store.SessionlessContext]¶
- datatypes_registry: galaxy.datatypes.registry.Registry¶
- object_store: galaxy.objectstore.ObjectStore¶
- tool_data_table_manager: ToolDataTableManager¶
- file_sources: galaxy.files.ConfiguredFileSources¶
- class galaxy.structured_app.MinimalApp(container: Optional[lagom.container.Container] = None, log_undefined_deps: Union[bool, logging.Logger] = False)[source]¶
Bases:
galaxy.structured_app.BasicSharedApp
- tag_handler: galaxy.model.tags.GalaxyTagHandler¶
- install_model: galaxy.model.base.ModelMapping¶
- security_agent: galaxy.model.security.GalaxyRBACAgent¶
- host_security_agent: galaxy.model.security.HostAgent¶
- object_store: galaxy.objectstore.ObjectStore¶
- class galaxy.structured_app.MinimalManagerApp(container: Optional[lagom.container.Container] = None, log_undefined_deps: Union[bool, logging.Logger] = False)[source]¶
Bases:
galaxy.structured_app.MinimalApp
- file_sources: galaxy.files.ConfiguredFileSources¶
- genome_builds: galaxy.util.dbkeys.GenomeBuilds¶
- dataset_collection_manager: Any¶
- history_manager: Any¶
- hda_manager: Any¶
- workflow_manager: Any¶
- workflow_contents_manager: Any¶
- library_folder_manager: Any¶
- library_manager: Any¶
- role_manager: Any¶
- installed_repository_manager: Any¶
- user_manager: Any¶
- job_config: JobConfiguration¶
- job_manager: Any¶
- class galaxy.structured_app.StructuredApp(container: Optional[lagom.container.Container] = None, log_undefined_deps: Union[bool, logging.Logger] = False)[source]¶
Bases:
galaxy.structured_app.MinimalManagerApp
Interface defining typed description of the Galaxy UniverseApplication.
Ideally nothing that depends on StructuredApp should require StructuredApp so we can have a clean import dag. This will require setting up a lot more distinction between interfaces and implementations in Galaxy though. In the meantime, for imports that would bring in StructuredApp if properly type (cyclical imports), we’re just setting the class attributes to Any.
- tag_handler: galaxy.model.tags.GalaxyTagHandler¶
- amqp_internal_connection_obj: Optional[kombu.connection.Connection]¶
- dependency_resolvers_view: galaxy.tool_util.deps.views.DependencyResolversView¶
- test_data_resolver: galaxy.tool_util.verify.test_data.TestDataResolver¶
- file_sources: galaxy.files.ConfiguredFileSources¶
- genome_builds: galaxy.util.dbkeys.GenomeBuilds¶
- job_metrics: galaxy.job_metrics.JobMetrics¶
- install_model: galaxy.model.base.ModelMapping¶
- security_agent: galaxy.model.security.GalaxyRBACAgent¶
- host_security_agent: galaxy.model.security.HostAgent¶
- trs_proxy: galaxy.workflow.trs_proxy.TrsProxy¶
- vault: galaxy.security.vault.Vault¶
- webhooks_registry: galaxy.webhooks.WebhooksRegistry¶
- queue_worker: Any¶
- history_manager: Any¶
- hda_manager: Any¶
- workflow_manager: WorkflowsManager¶
- workflow_contents_manager: Any¶
- library_folder_manager: Any¶
- library_manager: Any¶
- role_manager: Any¶
- dynamic_tool_manager: Any¶
- data_provider_registry: Any¶
- tool_data_tables: ToolDataTableManager¶
- genomes: Any¶
- error_reports: Any¶
- tool_cache: Any¶
- tool_shed_repository_cache: Optional[Any]¶
- watchers: Any¶
- installed_repository_manager: Any¶
- workflow_scheduling_manager: Any¶
- interactivetool_manager: Any¶
- job_config: JobConfiguration¶
- job_manager: Any¶
- user_manager: Any¶
- api_keys_manager: Any¶
- visualizations_registry: Any¶