megaqc.api package

Submodules

megaqc.api.constants module

megaqc.api.utils module

megaqc.api.utils.aggregate_new_parameters(user, filters=None, short=True)[source]
megaqc.api.utils.build_filter(query, filters, source_table)[source]
megaqc.api.utils.config_translate(plot_type, config, series_nb, plotly_layout=Layout())[source]
megaqc.api.utils.delete_report_data(report_id)[source]
megaqc.api.utils.generate_comparison_plot(plot_data, data_keys, field_names=None, pointsize=10, joinmarkers=False)[source]
megaqc.api.utils.generate_distribution_plot(plot_data, nbins=20, ptype='boxplot')[source]
megaqc.api.utils.generate_hash(d)[source]
megaqc.api.utils.generate_report_plot(plot_type, sample_names)[source]
megaqc.api.utils.generate_trend_plot(plot_data)[source]
megaqc.api.utils.get_dashboard_data(user, dashboard_id)[source]

Fetch a dashboard by ID and return the data.

megaqc.api.utils.get_dashboards(user)[source]

Return list of saved dashboards for the user.

megaqc.api.utils.get_favourite_plot_data(user, favourite_id)[source]

Fetch a plot favourite by ID and return the HTML to generate the plot.

megaqc.api.utils.get_filter_from_data(data)[source]
megaqc.api.utils.get_plot_favourites(user)[source]

Return a list of the plot favourites for the given user.

megaqc.api.utils.get_plot_types(user, filters=None)[source]
megaqc.api.utils.get_queued_uploads(count=False, filter_cats=None)[source]
megaqc.api.utils.get_report_metadata_fields(filters=None)[source]
megaqc.api.utils.get_reports_data(count=False, user_id=None, filters=None)[source]
megaqc.api.utils.get_sample_fields_values(keys, filters=None, num_fieldids=False)[source]
megaqc.api.utils.get_sample_metadata_fields(filters=None)[source]
megaqc.api.utils.get_samples(filters=None, count=False, ids=False)[source]
megaqc.api.utils.get_timeline_sample_data(filters, fields)[source]
megaqc.api.utils.get_user_filters(user)[source]
megaqc.api.utils.handle_report_data(user, report_data)[source]
megaqc.api.utils.save_dashboard_data(user, title, data, is_public=False, dashboard_id=None)[source]

Save a dashboard.

megaqc.api.utils.save_plot_favourite_data(user, plot_type, data, title, description=None)[source]

Save a new plot favourite to the database.

megaqc.api.utils.store_report_data(user, report_data, uploaded_file)[source]
megaqc.api.utils.update_fav_report_plot_type(method, user, plot_info)[source]
megaqc.api.utils.update_fav_sample_field(method, user, sample_field_id)[source]
megaqc.api.utils.update_user_filter(user, method, filter_id, filter_object=None)[source]

megaqc.api.views module

Public section, including homepage and signup.

megaqc.api.views.admin_add_users(user, *args, **kwargs)[source]
megaqc.api.views.admin_delete_users(user, *args, **kwargs)[source]
megaqc.api.views.admin_update_users(user, *args, **kwargs)[source]
megaqc.api.views.check_admin(function)[source]
megaqc.api.views.check_user(function)[source]
megaqc.api.views.count_queued_uploads()[source]
megaqc.api.views.count_samples(user, *args, **kwargs)[source]
megaqc.api.views.delete_dashboard(user, *args, **kwargs)[source]
megaqc.api.views.delete_plot_favourite(user, *args, **kwargs)[source]
megaqc.api.views.delete_report(user, *args, **kwargs)[source]
megaqc.api.views.get_comparison_plot(user, *args, **kwargs)[source]
megaqc.api.views.get_dashboard(user, *args, **kwargs)[source]
megaqc.api.views.get_distribution_plot(user, *args, **kwargs)[source]
megaqc.api.views.get_favourite_plot(user, *args, **kwargs)[source]
megaqc.api.views.get_filters(user, *args, **kwargs)[source]
megaqc.api.views.get_report_plot(user, *args, **kwargs)[source]
megaqc.api.views.get_reports(user, *args, **kwargs)[source]
megaqc.api.views.get_sample_data(user, *args, **kwargs)[source]
megaqc.api.views.get_sample_meta_fields(user, *args, **kwargs)[source]
megaqc.api.views.get_samples_per_report(user, *args, **kwargs)[source]
megaqc.api.views.get_trend_plot(user, *args, **kwargs)[source]
megaqc.api.views.handle_multiqc_data(user, *args, **kwargs)[source]
megaqc.api.views.queue_multiqc_data(user, *args, **kwargs)[source]
megaqc.api.views.report_filter_fields(user, *args, **kwargs)[source]
megaqc.api.views.reset_password(user, *args, **kwargs)[source]
megaqc.api.views.save_dashboard(user, *args, **kwargs)[source]
megaqc.api.views.save_filters(user, *args, **kwargs)[source]
megaqc.api.views.save_plot_favourite(user, *args, **kwargs)[source]
megaqc.api.views.set_password(user, *args, **kwargs)[source]
megaqc.api.views.test(user, *args, **kwargs)[source]
megaqc.api.views.test_post(user, *args, **kwargs)[source]
megaqc.api.views.timeline_sample_data(user, *args, **kwargs)[source]
megaqc.api.views.update_favourite_plot(user, *args, **kwargs)[source]
megaqc.api.views.update_filters(user, *args, **kwargs)[source]

Module contents

The user module.