olink_norm_input_cross_product: Check if bridge or cross-platform normalization

View source: R/olink_normalization_utils.R

olink_norm_input_cross_productR Documentation

Description

A function to check whether we are to perform simple bridge normalization, or cross-platform (Olink Explore 3072 - Olink Explore HT/Olink Reveal) normalization.

The function uses the internal dataset eHT_e3072_mapping to determine the product source of each dataset. If both datasets originate from the same Olink product, then it will return bridge. If the datasets to be normalized originate from Olink Explore HT and Olink Explore 3072 or Olink Reveal and Olink Explore 3072, it will return norm_cross_product. In any other case an error is thrown.

Usage

olink_norm_input_cross_product(
  lst_df,
  lst_cols,
  reference_project,
  product_ids,
  ref_ids
)

Arguments

lst_df

Named list of datasets to be normalized.

lst_cols

Named list of vectors with the required column names for each dataset in lst_df.

reference_project

Project name of reference_project. Should be one of df1_project_nr or df2_project_nr. Indicates the project to which the other project is adjusted to.

product_ids

Named character vector with the Olink product name that each input dataset matches to.

ref_ids

Named character vector with df1_project_nr and df2_project_nr marked as "ref" and "not_ref".

Value

Character string indicating the type of normalization to be performed. One of bridge, subset, ref_median or norm_cross_product. # nolint And the updated list of datasets in case of cross-platform normalization.

Author(s)

Klev Diamanti


OlinkAnalyze documentation built on April 4, 2025, 3:26 a.m.