Learn R Programming

promor (version 0.2.1)

aver_techreps: Compute average intensity

Description

This function computes average intensities across technical replicates for each sample.

Usage

aver_techreps(raw_df)

Value

A raw_df object of averaged intensities.

Arguments

raw_df

A raw_df object containing technical replicates.

Author

Chathurani Ranathunge

Details

aver_techreps assumes that column names in the data frame follow the "Group_UniqueSampleID_TechnicalReplicate" notation. (Use head(raw_df) to see the structure of the raw_df object.)

See Also

  • create_df

Examples

Run this code
## Use a data set containing technical replicates to create a raw_df object
raw_df <- create_df(
prot_groups = "https://raw.githubusercontent.com/caranathunge/promor_example_data/main/pg2.txt",
exp_design = "https://raw.githubusercontent.com/caranathunge/promor_example_data/main/ed2.txt",
tech_reps = TRUE
)

# Compute average intensities across technical replicates.
rawdf_ave <- aver_techreps(raw_df)

Run the code above in your browser using DataLab