wallaroo.assay
An Assay represents a record in the database. An assay contains some high level attributes such as name, status, active, etc. as well as the sub objects Baseline, Window and Summarizer which specify how the Baseline is derived, how the Windows should be created and how the analysis should be conducted.
Base constructor.
Each object requires:
- a GraphQL client - in order to fill its missing members dynamically
- an initial data blob - typically from unserialized JSON, contains at
- least the data for required members (typically the object's primary key) and optionally other data members.
Get the assay information for the given assay_id
Parameters
- client: Client object
- assay_id: int Assay Identifier
- workspace_id: Optiona[int] Workspace Identifier
- workspace_name: Optional[str] Workspace Name
Returns
pd.DataFrame
Disables the Assay. No further analysis will be conducted until the assay is enabled.
Creates a dataframe for the meta data in the baseline or window excluding the edge information.
Parameters
- assay_result: The dict of the raw asset result
Creates a dataframe specifically for the edge information in the baseline or window.
Parameters
- window_or_baseline: The dict from the assay result of either the window or baseline
The AssayAnalysis class helps handle the assay analysis logs from the Plateau logs. These logs are a json document with meta information on the assay and analysis as well as summary information on the baseline and window and information on the comparison between them.
Creates a simple dataframe with the basic stats data for a baseline.
Creates a simple dataframe to with the edge/bin data for a baseline.
Create a chart showing the bins, values and scores of an assay result.
show_scores
will also label each bin with its final weighted (if specified) score.
Parameters
- show_scores: Whether to show the scores for each bin.
Helper class primarily to easily create a dataframe from a list of AssayAnalysis objects.
Creates a basic charts of the scores for each unique iopath of a list of assay results.
Parameters
- labels: Custom labels for each unique iopath. If provided, these labels will be used in chart titles instead of raw iopath values.
- selected_labels: Labels to filter which iopaths to chart. If provided, only iopaths with labels in this list will be charted.
- nth_x_tick: Controls the density of x ticks. Every nth x tick will be used for the chart.
Creates a chart of the scores from dataframe representation of a list of assay results.
Parameters
- title: The title of the chart.
- nth_x_tick: Controls the density of x ticks. Every nth x tick will be used for the chart.
- start: The start time of the chart. Both start and end have to be provided to be used.
- end: The end time of the chart. Both start and end have to be provided to be used.
Wraps a list of assays for display in an HTML display-aware environment like Jupyter.
Inherited Members
- builtins.list
- list
- clear
- copy
- append
- insert
- extend
- pop
- remove
- index
- count
- reverse
- sort