beat.web.plotters.views module

beat.web.plotters.views.filter_parameters(parameter_dict, reference_keys)[source]

Remove from parameter_dict elements that cannot be found in reference_keys

beat.web.plotters.views.plot(request)[source]

Plots one or more experiment analyzer outputs following the user preference and the plotter

This view receives a single data payload with a GET or POST request containing multiple keys for experiment, analyzer and output. We’ll cycle through (with itertools.cycle()) them to recover a dictionary like this:

{
  'user/user/toolchain/1/label': {
    "analyzer": "my_analysis",
    "output" : "my_plot"
  },
  'user/user/toolchain/1/another': {
    "analyzer": "my_analysis",
    "output" : "my_plot"
  },
  'user/user/toolchain/3/xxx': {
    "analyzer": "the_greatest_analysis",
    "output" : "scatter"
  }
}

A single plotter, if passed, should reference the plotter to use. It may be omitted, in which case we use the default plotter for the first experiment in the list.

Returns

A response with a single image inside, following the plotter specifications.

beat.web.plotters.views.plot_sample(request)[source]

Plots sample data given as input plotter/plotterparameter/sample data

This view receives a single data payload with a GET or POST request containing multiple keys. We’ll cycle through (with itertools.cycle()) them to recover a dictionary like this:

{
  'user/user/toolchain/1/label': {
    "analyzer": "my_analysis",
    "output" : "my_plot"
  },
  'user/user/toolchain/1/another': {
    "analyzer": "my_analysis",
    "output" : "my_plot"
  },
  'user/user/toolchain/3/xxx': {
    "analyzer": "the_greatest_analysis",
    "output" : "scatter"
  }
}

A single plotter, if passed, should reference the plotter to use. It may be omitted, in which case we use the default plotter for the first experiment in the list.

Returns

A response with a single image inside, following the plotter specifications.

beat.web.plotters.views.plot_sample_with_params(request)[source]

Plots sample data given as input plotter/plotterparameter/sample data

This view receives a single data payload with a GET or POST request containing multiple keys. We’ll cycle through (with itertools.cycle()) them to recover a dictionary like this:

{
  'user/user/toolchain/1/label': {
    "analyzer": "my_analysis",
    "output" : "my_plot"
  },
  'user/user/toolchain/1/another': {
    "analyzer": "my_analysis",
    "output" : "my_plot"
  },
  'user/user/toolchain/3/xxx': {
    "analyzer": "the_greatest_analysis",
    "output" : "scatter"
  }
}

A single plotter, if passed, should reference the plotter to use. It may be omitted, in which case we use the default plotter for the first experiment in the list.

Returns

A response with a single image inside, following the plotter specifications.

beat.web.plotters.views.view(request, author, name, version=None)[source]

Shows the algorithm. The Web API is used to retrieve the details about the algorithm and check the accessibility.

beat.web.plotters.views.list_plotters(request)[source]

List all accessible plotters to the request user

beat.web.plotters.views.list_plotters_public(request)[source]

List all accessible plotters to the request user

beat.web.plotters.views.list_plotterparameters(request, author_name)[source]

List all accessible plotters to the request user

beat.web.plotters.views.list_plotterparameters_public(request)[source]

List all accessible plotters to the request user

beat.web.plotters.views.plotterparameter_latest(request, author, name)[source]

Get latest plotterparameter for the request user

beat.web.plotters.views.plotterparameter_for_author(request, author_name, plotterparameter_name, version)[source]
beat.web.plotters.views.diff(request, author1, name1, version1, author2, name2, version2)[source]

Shows the difference between two plotterparameters. The Web API is used to retrieve the details about the plotterparameters and check the accessibility.

beat.web.plotters.views.create_plotterparameter(request, author_name)[source]

Create a new plotterparameter to the request user

beat.web.plotters.views.create_new_version(request, author_name=None, plotterparameter_name=None, version=None)[source]

Creates a new plotterparameter or a new version of an existing plotterparameter

The user must be authenticated before it can add a new toolchain

beat.web.plotters.views.fork(request, author_name, plotterparameter_name, version)[source]

Creates a new plotterparameter by forking an existing plotterparameter

The user must be authenticated before it can add a new plotterparameter

class beat.web.plotters.views.PartialGroupView(**kwargs)[source]

Bases: django.views.generic.base.TemplateView

get_template_names()[source]

Returns a list of template names to be used for the request. Must return a list. May not be called if render_to_response is overridden.

get_context_data(**kwargs)[source]