tidyData: Turn wide/matrix RFI data into tidy data

Description Usage Arguments Details Value

Description

Takes wide/matrix RFI data exported from Zeptosens where each row is an sample and each column is an antibody and turns it into tidy data.

Usage

1
tidyData(df, ABnames, Batch = "A", ave_reps = FALSE, pheno)

Arguments

df

Dataframe in the (matrix) format of the raw data.

ABnames

Dataframe containing the antibody number - full antibody name key-pairs.

Batch

Batch code of the run. Can be single string or number. A column of this code will be added to the output dataframe.

ave_reps

Single logical indicating whether technical replicates (samples with the same names) should be averaged.

pheno

Dataframe containing information on the sample phenotypes, to merge with the data using sample names.

Details

A "Batch" column is added by default so that batches can be identified if tidy dataframes from several runs are joined together.

If the exact same sample name appears multiple times, they represent technical replicates and can be averaged using 'ave_reps'.

Value

Tidy dataframe with columns containing full antibody names and phenotype information can also be merged into the base RFI dataframe.


lucyleeow/RPPA documentation built on May 5, 2019, 3:46 a.m.