controllers Package

controllers Package

Galaxy reports controllers.

jobs Module

class galaxy.webapps.reports.controllers.jobs.Jobs(app)[source]

Bases: galaxy.web.base.controller.BaseUIController, galaxy.webapps.reports.controllers.query.ReportQueryBuilder

Class contains functions for querying data requested by user via the webapp. It exposes the functions and responds to requests with the filled .mako templates.

job_info(trans, **kwd)[source]
per_month_all(trans, **kwd)[source]

Queries the DB for all jobs. Avoids monitor jobs.

per_month_in_error(trans, **kwd)[source]

Queries the DB for user jobs in error. Filters out monitor jobs.

per_tool(trans, **kwd)[source]
per_user(trans, **kwd)[source]
specified_date_handler(trans, **kwd)[source]
specified_date_list_grid = <galaxy.webapps.reports.controllers.jobs.SpecifiedDateListGrid object>
specified_month_all(trans, **kwd)[source]

Queries the DB for all jobs in given month, defaults to current month.

specified_month_in_error(trans, **kwd)[source]

Queries the DB for the user jobs in error.

tool_per_month(trans, **kwd)[source]
user_per_month(trans, **kwd)[source]
class galaxy.webapps.reports.controllers.jobs.SpecifiedDateListGrid[source]

Bases: galaxy.web.framework.helpers.grids.Grid

class CreateTimeColumn(label, key=None, model_class=None, method=None, format=None, link=None, attach_popup=False, visible=True, nowrap=False, filterable=None, sortable=True, label_id_prefix=None, inbound=False)[source]

Bases: galaxy.web.framework.helpers.grids.DateTimeColumn

get_value(trans, grid, job)[source]
class SpecifiedDateListGrid.EmailColumn(label, key=None, model_class=None, method=None, format=None, link=None, attach_popup=False, visible=True, nowrap=False, filterable=None, sortable=True, label_id_prefix=None, inbound=False)[source]

Bases: galaxy.web.framework.helpers.grids.GridColumn

filter(trans, user, query, column_filter)[source]
class SpecifiedDateListGrid.JobIdColumn(label, key=None, model_class=None, method=None, format=None, link=None, attach_popup=False, visible=True, nowrap=False, filterable=None, sortable=True, label_id_prefix=None, inbound=False)[source]

Bases: galaxy.web.framework.helpers.grids.IntegerColumn

get_value(trans, grid, job)[source]
class SpecifiedDateListGrid.SpecifiedDateColumn(label, key=None, model_class=None, method=None, format=None, link=None, attach_popup=False, visible=True, nowrap=False, filterable=None, sortable=True, label_id_prefix=None, inbound=False)[source]

Bases: galaxy.web.framework.helpers.grids.GridColumn

filter(trans, user, query, column_filter)[source]
class SpecifiedDateListGrid.StateColumn(label, key=None, model_class=None, method=None, format=None, link=None, attach_popup=False, visible=True, nowrap=False, filterable=None, sortable=True, label_id_prefix=None, inbound=False)[source]

Bases: galaxy.web.framework.helpers.grids.TextColumn

filter(trans, user, query, column_filter)[source]
get_value(trans, grid, job)[source]
class SpecifiedDateListGrid.ToolColumn(label, key=None, model_class=None, method=None, format=None, link=None, attach_popup=False, visible=True, nowrap=False, filterable=None, sortable=True, label_id_prefix=None, inbound=False)[source]

Bases: galaxy.web.framework.helpers.grids.TextColumn

get_value(trans, grid, job)[source]
class SpecifiedDateListGrid.UserColumn(label, key=None, model_class=None, method=None, format=None, link=None, attach_popup=False, visible=True, nowrap=False, filterable=None, sortable=True, label_id_prefix=None, inbound=False)[source]

Bases: galaxy.web.framework.helpers.grids.GridColumn

get_value(trans, grid, job)[source]
SpecifiedDateListGrid.build_initial_query(trans, **kwd)[source]
SpecifiedDateListGrid.columns = [<galaxy.webapps.reports.controllers.jobs.JobIdColumn object at 0x7f85c93d4590>, <galaxy.webapps.reports.controllers.jobs.StateColumn object at 0x7f85c9d3f950>, <galaxy.webapps.reports.controllers.jobs.ToolColumn object at 0x7f85c950df90>, <galaxy.webapps.reports.controllers.jobs.CreateTimeColumn object at 0x7f85c94799d0>, <galaxy.webapps.reports.controllers.jobs.UserColumn object at 0x7f85c9479490>, <galaxy.webapps.reports.controllers.jobs.SpecifiedDateColumn object at 0x7f85c946a450>, <galaxy.webapps.reports.controllers.jobs.EmailColumn object at 0x7f85c946a110>, <galaxy.web.framework.helpers.grids.StateColumn object at 0x7f85d71df810>, <galaxy.web.framework.helpers.grids.MulticolFilterColumn object at 0x7f85d71df510>]
SpecifiedDateListGrid.default_filter = {'specified_date': 'All'}
SpecifiedDateListGrid.default_sort_key = 'id'
SpecifiedDateListGrid.model_class

alias of Job

SpecifiedDateListGrid.num_rows_per_page = 50
SpecifiedDateListGrid.preserve_state = False
SpecifiedDateListGrid.standard_filters = []
SpecifiedDateListGrid.template = '/webapps/reports/grid.mako'
SpecifiedDateListGrid.title = 'Jobs'
SpecifiedDateListGrid.use_async = False
SpecifiedDateListGrid.use_paging = True
galaxy.webapps.reports.controllers.jobs.get_job(trans, id)[source]
galaxy.webapps.reports.controllers.jobs.get_monitor_id(trans, monitor_email)[source]

A convenience method to obtain the monitor job id.

root Module

class galaxy.webapps.reports.controllers.root.Report(app)[source]

Bases: galaxy.web.base.controller.BaseUIController

index(trans, **kwd)[source]

sample_tracking Module

class galaxy.webapps.reports.controllers.sample_tracking.SampleTracking(app)[source]

Bases: galaxy.web.base.controller.BaseUIController, galaxy.webapps.reports.controllers.query.ReportQueryBuilder

per_month_all(trans, **kwd)[source]
per_user(trans, **kwd)[source]
specified_date_handler(trans, **kwd)[source]
specified_date_list_grid = <galaxy.webapps.reports.controllers.sample_tracking.SpecifiedDateListGrid object>
user_per_month(trans, **kwd)[source]
class galaxy.webapps.reports.controllers.sample_tracking.SpecifiedDateListGrid[source]

Bases: galaxy.web.framework.helpers.grids.Grid

class CreateTimeColumn(label, key=None, model_class=None, method=None, format=None, link=None, attach_popup=False, visible=True, nowrap=False, filterable=None, sortable=True, label_id_prefix=None, inbound=False)[source]

Bases: galaxy.web.framework.helpers.grids.DateTimeColumn

get_value(trans, grid, request)[source]
class SpecifiedDateListGrid.EmailColumn(label, key=None, model_class=None, method=None, format=None, link=None, attach_popup=False, visible=True, nowrap=False, filterable=None, sortable=True, label_id_prefix=None, inbound=False)[source]

Bases: galaxy.web.framework.helpers.grids.GridColumn

filter(trans, user, query, column_filter)[source]
class SpecifiedDateListGrid.RequestNameColumn(label, key=None, model_class=None, method=None, format=None, link=None, attach_popup=False, visible=True, nowrap=False, filterable=None, sortable=True, label_id_prefix=None, inbound=False)[source]

Bases: galaxy.web.framework.helpers.grids.TextColumn

get_value(trans, grid, request)[source]
class SpecifiedDateListGrid.SpecifiedDateColumn(label, key=None, model_class=None, method=None, format=None, link=None, attach_popup=False, visible=True, nowrap=False, filterable=None, sortable=True, label_id_prefix=None, inbound=False)[source]

Bases: galaxy.web.framework.helpers.grids.GridColumn

filter(trans, user, query, column_filter)[source]
class SpecifiedDateListGrid.UserColumn(label, key=None, model_class=None, method=None, format=None, link=None, attach_popup=False, visible=True, nowrap=False, filterable=None, sortable=True, label_id_prefix=None, inbound=False)[source]

Bases: galaxy.web.framework.helpers.grids.TextColumn

get_value(trans, grid, request)[source]
SpecifiedDateListGrid.build_initial_query(trans, **kwd)[source]
SpecifiedDateListGrid.columns = [<galaxy.webapps.reports.controllers.sample_tracking.RequestNameColumn object at 0x7f85c946a7d0>, <galaxy.webapps.reports.controllers.sample_tracking.CreateTimeColumn object at 0x7f85c9a78c10>, <galaxy.webapps.reports.controllers.sample_tracking.UserColumn object at 0x7f85c9d8aa10>, <galaxy.webapps.reports.controllers.sample_tracking.SpecifiedDateColumn object at 0x7f85c9a8e150>, <galaxy.webapps.reports.controllers.sample_tracking.EmailColumn object at 0x7f85c9d79dd0>, <galaxy.web.framework.helpers.grids.MulticolFilterColumn object at 0x7f85c91284d0>]
SpecifiedDateListGrid.default_filter = {'specified_date': 'All'}
SpecifiedDateListGrid.default_sort_key = 'name'
SpecifiedDateListGrid.model_class

alias of Request

SpecifiedDateListGrid.num_rows_per_page = 50
SpecifiedDateListGrid.preserve_state = False
SpecifiedDateListGrid.standard_filters = []
SpecifiedDateListGrid.template = '/webapps/reports/grid.mako'
SpecifiedDateListGrid.title = 'Sequencing Requests'
SpecifiedDateListGrid.use_async = False
SpecifiedDateListGrid.use_paging = True
galaxy.webapps.reports.controllers.sample_tracking.get_request(trans, id)[source]

system Module

class galaxy.webapps.reports.controllers.system.System(app)[source]

Bases: galaxy.web.base.controller.BaseUIController

dataset_info(trans, **kwd)[source]
deleted_datasets(trans, **kwd)[source]

The number of datasets that were deleted more than the specified number of days ago, but have not yet been purged.

deleted_histories(trans, **kwd)[source]

The number of histories that were deleted more than the specified number of days ago, but have not yet been purged. Also included is the number of datasets associated with the histories.

disk_usage(trans, **kwd)[source]
get_disk_usage(file_path)[source]
index(trans, **kwd)[source]
userless_histories(trans, **kwd)[source]

The number of userless histories and associated datasets that have not been updated for the specified number of days.

galaxy.webapps.reports.controllers.system.nice_size(size, include_bytes=False)[source]

Returns a readably formatted string with the size

users Module

class galaxy.webapps.reports.controllers.users.Users(app)[source]

Bases: galaxy.web.base.controller.BaseUIController, galaxy.webapps.reports.controllers.query.ReportQueryBuilder

last_access_date(trans, **kwd)[source]
registered_users(trans, **kwd)[source]
registered_users_per_month(trans, **kwd)[source]
specified_date(trans, **kwd)[source]
specified_month(trans, **kwd)[source]
user_disk_usage(trans, **kwd)[source]

workflows Module

class galaxy.webapps.reports.controllers.workflows.SpecifiedDateListGrid[source]

Bases: galaxy.web.framework.helpers.grids.Grid

class CreateTimeColumn(label, key=None, model_class=None, method=None, format=None, link=None, attach_popup=False, visible=True, nowrap=False, filterable=None, sortable=True, label_id_prefix=None, inbound=False)[source]

Bases: galaxy.web.framework.helpers.grids.DateTimeColumn

get_value(trans, grid, stored_workflow)[source]
class SpecifiedDateListGrid.EmailColumn(label, key=None, model_class=None, method=None, format=None, link=None, attach_popup=False, visible=True, nowrap=False, filterable=None, sortable=True, label_id_prefix=None, inbound=False)[source]

Bases: galaxy.web.framework.helpers.grids.GridColumn

filter(trans, user, query, column_filter)[source]
class SpecifiedDateListGrid.SpecifiedDateColumn(label, key=None, model_class=None, method=None, format=None, link=None, attach_popup=False, visible=True, nowrap=False, filterable=None, sortable=True, label_id_prefix=None, inbound=False)[source]

Bases: galaxy.web.framework.helpers.grids.GridColumn

filter(trans, user, query, column_filter)[source]
class SpecifiedDateListGrid.UserColumn(label, key=None, model_class=None, method=None, format=None, link=None, attach_popup=False, visible=True, nowrap=False, filterable=None, sortable=True, label_id_prefix=None, inbound=False)[source]

Bases: galaxy.web.framework.helpers.grids.TextColumn

get_value(trans, grid, stored_workflow)[source]
class SpecifiedDateListGrid.WorkflowNameColumn(label, key=None, model_class=None, method=None, format=None, link=None, attach_popup=False, visible=True, nowrap=False, filterable=None, sortable=True, label_id_prefix=None, inbound=False)[source]

Bases: galaxy.web.framework.helpers.grids.TextColumn

get_value(trans, grid, stored_workflow)[source]
SpecifiedDateListGrid.build_initial_query(trans, **kwd)[source]
SpecifiedDateListGrid.columns = [<galaxy.webapps.reports.controllers.workflows.WorkflowNameColumn object at 0x7f85c8d105d0>, <galaxy.webapps.reports.controllers.workflows.CreateTimeColumn object at 0x7f85c8d10290>, <galaxy.webapps.reports.controllers.workflows.UserColumn object at 0x7f85c923c4d0>, <galaxy.webapps.reports.controllers.workflows.SpecifiedDateColumn object at 0x7f85c8cd6690>, <galaxy.webapps.reports.controllers.workflows.EmailColumn object at 0x7f85c8cd6610>, <galaxy.web.framework.helpers.grids.MulticolFilterColumn object at 0x7f85c8cd66d0>]
SpecifiedDateListGrid.default_filter = {'specified_date': 'All'}
SpecifiedDateListGrid.default_sort_key = 'name'
SpecifiedDateListGrid.model_class

alias of StoredWorkflow

SpecifiedDateListGrid.num_rows_per_page = 50
SpecifiedDateListGrid.preserve_state = False
SpecifiedDateListGrid.standard_filters = []
SpecifiedDateListGrid.template = '/webapps/reports/grid.mako'
SpecifiedDateListGrid.title = 'Workflows'
SpecifiedDateListGrid.use_async = False
SpecifiedDateListGrid.use_paging = True
class galaxy.webapps.reports.controllers.workflows.Workflows(app)[source]

Bases: galaxy.web.base.controller.BaseUIController, galaxy.webapps.reports.controllers.query.ReportQueryBuilder

per_month_all(trans, **kwd)[source]
per_user(trans, **kwd)[source]
specified_date_handler(trans, **kwd)[source]
specified_date_list_grid = <galaxy.webapps.reports.controllers.workflows.SpecifiedDateListGrid object>
user_per_month(trans, **kwd)[source]
galaxy.webapps.reports.controllers.workflows.get_workflow(trans, id)[source]