This function takes as input some of the inputs of the Olink normalization function and checks the validity of the input.
olink_norm_input_validate(
df1,
df2,
overlapping_samples_df1,
overlapping_samples_df2,
reference_medians
)
Scalar character from olink_norm_modes if normalization can be determined from the input, otherwise see details.
First dataset to be used in normalization (required).
Second dataset to be used in normalization.
Samples to be used for adjustment factor calculation in df1 (required).
Samples to be used for adjustment factor calculation in df2.
Dataset with columns "OlinkID" and "Reference_NPX". Used for reference median normalization.
Klev Diamanti
Depending on the input the function will return:
Error: if the required components are lacking from the input or if the normalization cannot be performed.
Warning: if the normalization can be determined but extra inputs are provided. This will be followed by a message and the type of normalization to be performed.
Message: Information about the type of normalization to be performed.
Note that input are passed directly from the main
olink_normalization
function.