SequenceAnalyzeResult#

Module: exa.core.sequence.result

class SequenceAnalyzeResult(execution_result, dataset=<factory>, observations=<factory>, plots=<factory>, experiment_template=None, sequence_template=None, error=None, error_traceback=None, _all_errors=None)#

Bases: SequenceAnalyzeResultData

The analyzed end result of a Sequence.

Analogous to the AnalyzeResult of Experiments. Contains the dataset, observations, and plots from the sequence-level analysis, as well as the execution result where it was all derived from.

Can summarize the results as a report.

Attributes

execution_result

Results of the whole sequence, including analysis of the individual experiments.

dataset

Dataset representing the whole sequence.

observations

Observations made by analyzing the whole sequence.

plots

Generators for plotters.

Methods

plot

Generate and show a selected plot from SequenceAnalyzeResultData.plots.

plot_all

Generate and show all plots from SequenceAnalyzeResultData.plots.

render_report

Generate a report that displays the observations and plots from the analysis.

Parameters:
render_report(target='notebook', **kwargs)#

Generate a report that displays the observations and plots from the analysis.

Parameters:
  • target (Literal['notebook', 'str'] | ~pathlib.Path) – The target format as string or a file path. Accepted values: “notebook”, “str” or Path instance. For “notebook”, the output is a HTML document that is displayed in a Jupyter notebook. Target “str” returns HTML format in a string, and path instances saves document to a file.

  • kwargs – Extra options passed to the template.

Returns:

Rendered string or None if the report is rendered in notebook as a side effect.

Return type:

str | None

plot(key='default', **kwargs)#

Generate and show a selected plot from SequenceAnalyzeResultData.plots.

Parameters:
  • key (str) – Selects which plot to show. If “default” and no “default” key exists, returns the first one.

  • kwargs – passed to the selected plot-generating function.

Returns:

The generated Figure.

Raises:
  • ValidationError – if no plots exist in plots.

  • KeyError – if key does not exist in plots.

Return type:

Figure

plot_all(keys=None, **kwargs)#

Generate and show all plots from SequenceAnalyzeResultData.plots.

Parameters:
  • keys (list[str] | None) – List of plots to show. If None, all the plots will be shown.

  • kwargs – passed to the selected plot-generating function.

Returns:

The generated Figures.

Raises:
  • ValidationError – if no plots exist in plots.

  • KeyError – if key does not exist in plots.

Return type:

list[Figure]

Inheritance

Inheritance diagram of exa.core.sequence.result.SequenceAnalyzeResult