as_data_frame_analyte {beadplexr}R Documentation

Cast list of analytes to data.frame

Description

A well structured list, such at those loaded by load_panel(), is cast to a data.frame.

Usage

as_data_frame_analyte(
  .analytes,
  .id_bead = "Bead group",
  .id_analyte = "Analyte ID"
)

Arguments

.analytes

The named list to be cast. It usually is loaded using load_panel(). See Details for expected structure.

.id_bead, .id_analyte

The name of the column to hold the bead group and the analyte ID, respectively.

Details

Each analyte in the list passed to the function is expected to be a named list with named elements name and concentration. The name of the list with the analyte specific information is the analyte ID.

Because of the particular setup of the LEGENDplex assay with two bead groups, the analytes are expected to be wrapped in another list.

Value

A data-frame

Examples

.analytes <-  list(A = list(
                A1 = list(name = "name_a1", concentration = 500),
                A2 = list(name = "name_a2", concentration = 50000)))

as_data_frame_analyte(.analytes)

[Package beadplexr version 0.4.0 Index]