qPCR.rna.exp: qPCR RNA expression analyses tool.

View source: R/qPCR.rna.exp.R

qPCR.rna.expR Documentation

qPCR RNA expression analyses tool.

Description

Allows to easily analyse qPCR RNA expression data, including: technical replicates verification, gene expression normalization to housekeeping genes and FoldChanges over reference sample computation.

Usage

qPCR.rna.exp(
  results.file,
  housekeeping.genes = NULL,
  max.delta.reps = 0.5,
  reference.sample = NULL,
  exclude.housekeeping.FC = TRUE,
  exclude.samples = NULL,
  fix.y.axis = FALSE,
  x.labels.rotation = 45,
  text.size = 3,
  results.sheet.position = 3,
  rows.to.skip = 44,
  file.header = TRUE,
  file.tail = TRUE,
  samples.order = NULL,
  ignore.reps.errors = FALSE
)

Arguments

results.file

String indicating the full path to the results excel file or a data.frame containing at least the following columns: 'Sample Name', 'Target Name', 'CT'.

housekeeping.genes

String vector with the list of genes that have to be used as target genes. By default NULL: an error message is printed.

max.delta.reps

Numeric value indicating the maximum difference among replicate Ct. Default value: 0.5.

reference.sample

Single string indicating the name of the sample to use as reference for the computation of the FoldChanges. By default NULL: the first sample in the order is used as reference.

exclude.housekeeping.FC

Logic value to indicate whether the housekeeping genes should be excluded in the FoldChanges plots. By default TRUE.

exclude.samples

String vector indicating the samples that should be exuded in the expression and FoldChange plots. By default NULL.

fix.y.axis

Logic value indicating whether the y-axis of the plots should be kept fixed among all the genes. By default FALSE.

x.labels.rotation

Numeric value indicating the degrees of x-axis's labels rotation. By default 45.

text.size

Numeric value to indicate the size of the text for the number above the bars. Default 3.

results.sheet.position

Numeric value indicating the position of the results sheet in the excel file. by default 3.

rows.to.skip

How many rows must be skipped before to read the excel file. By default 44.

file.header

Logic value to indicate whether the results excel file contains an header. By default TRUE.

file.tail

Logic value to indicate whether the results excel file contains extra rows at the end of the results. By default TRUE.

samples.order

A string vector indicating all the samples in order. This order will be used to order the samples in the plots. By default NULL: the reference sample will be the first, the other will be kept in the order available in the results table.

ignore.reps.errors

Logic value to define whether the difference between the Ct in replicates should be ignored: all the values are kept.

Value

The function returns a list containing:

  • original.table: a data.frame containing the original results table;

  • reshaped.table: a data.frame with the original results reorganized for the analyses;

  • reshaped.table.cleaned: the reshaped data.frame upon filtering of the CT values (if required);

  • reps.validation.plot: a plot representing a table with the differences two-by-two of the technical replicates (facet_wrapped by gene) where the cells have a red background if the difference is greater than the 'max.delta.reps' value;

  • analyzed.data: a named list of data.frames, one for each housekeeping gene and one for the foldChange mean of all housekeeping normalization, containing the normalized expression scores and the FoldChanges over the reference sample;

  • expression.plots: a named list of plots, one for each housekeeping gene, showing the gene expression histograms (facet_wrapped by gene);

  • foldChange.plots: a named list of plots, one for each housekeeping gene and one for the foldChange mean of all housekeeping normalization, showing the FoldChange expression over the reference Sample (facet_wrapped by gene).


sebastian-gregoricchio/Rseb documentation built on Sept. 4, 2024, 1:59 p.m.