Skip to contents

Round-trip partner of r6_extract_values, which keeps the fields but drops the methods. Use it to restore the column-role mapping from a serialized result artifact (e.g. SummarizedExperiment metadata or an AnnData uns entry) so consumers can call has_pvalue() and friends again.

Usage

list_to_contrast_configuration(dd)

Arguments

dd

named list of ContrastConfiguration fields

Examples

cfg <- ContrastConfiguration$new(
  subject_id = "protein_Id",
  contrast_col = "Bait",
  pvalue_col = NA_character_
)
values <- r6_extract_values(cfg)
restored <- list_to_contrast_configuration(values)
stopifnot(all.equal(r6_extract_values(restored), values))
restored$has_pvalue()
#> [1] FALSE