calcFC: Calculate fold change

Description Usage Arguments Functions

Description

Calculates the fold changes between samples for a given set of comparisons. plotFC plots these fold changes as a bar graph.

Usage

1
2
3
4
calcFC(tidydf, comparisons, logdata = FALSE, RFI_col = "RFI",
  samples = TRUE, ABnames)

plotFC(fc_df, comparisons, logdata = FALSE, normalised = FALSE)

Arguments

tidydf

Tidy dataframe of RFI values and their corresponding sample and phenotype information. There should NOT be any technical replicates (samples with the same sample name).

comparisons

Dataframe with 2 columns and n rows, where n is the number of desired comparisons. The fold change to be calculated will be column 1 divided by column 2, for each comparison/row. For plotFC only the rows of the comparisons dataframe that you wish to plot should be given.

logdata

Single logical indicating: calcFC - whether the fold change should be logged (base 2), plotFC - whether the fold change has been logged.

RFI_col

Name of column containing RFI values, as string.

samples

Single logical indicating whether the comparison is of samples or ABs.

ABnames

Optional argument. Merges full antibody names to the output dataframe.

fc_df

Dataframe of fold changes generated by calcFC.

normalised

Single logical indicating whether the data have been normalised.

Functions


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