qPCR.rna.exp | R Documentation |
Allows to easily analyse qPCR RNA expression data, including: technical replicates verification, gene expression normalization to housekeeping genes and FoldChanges over reference sample computation.
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
)
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 |
max.delta.reps |
Numeric value indicating the maximum difference among replicate Ct. Default value: |
reference.sample |
Single string indicating the name of the sample to use as reference for the computation of the FoldChanges. By default |
exclude.housekeeping.FC |
Logic value to indicate whether the housekeeping genes should be excluded in the FoldChanges plots. By default |
exclude.samples |
String vector indicating the samples that should be exuded in the expression and FoldChange plots. By default |
fix.y.axis |
Logic value indicating whether the y-axis of the plots should be kept fixed among all the genes. By default |
x.labels.rotation |
Numeric value indicating the degrees of x-axis's labels rotation. By default |
text.size |
Numeric value to indicate the size of the text for the number above the bars. Default |
results.sheet.position |
Numeric value indicating the position of the results sheet in the excel file. by default |
rows.to.skip |
How many rows must be skipped before to read the excel file. By default |
file.header |
Logic value to indicate whether the results excel file contains an header. By default |
file.tail |
Logic value to indicate whether the results excel file contains extra rows at the end of the results. By default |
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 |
ignore.reps.errors |
Logic value to define whether the difference between the Ct in replicates should be ignored: all the values are kept. |
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).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.