qc_density_plot | R Documentation |
This function creates a density plot between all samples in the expression matrix. Metadata columns are used to group samples.
qc_density_plot(expression.matrix, metadata, annotation.id)
expression.matrix |
the expression matrix; rows correspond to genes and
columns correspond to samples; usually preprocessed by
|
metadata |
a data frame containing metadata for the samples contained
in the expression.matrix; must contain at minimum two columns:
the first column must contain the column names of the expression.matrix,
while the last column is assumed to contain the experimental conditions
that will be tested for differential expression; a list (of the same
length as modality) can be provided if #' |
annotation.id |
name of metadata column on which to group samples |
The density plot as a ggplot object.
expression.matrix.preproc <- as.matrix(read.csv( system.file("extdata", "expression_matrix_preprocessed.csv", package = "bulkAnalyseR"), row.names = 1 ))[1:500,] metadata <- data.frame( srr = colnames(expression.matrix.preproc), timepoint = rep(c("0h", "12h", "36h"), each = 2) ) print(qc_density_plot(expression.matrix.preproc, metadata, 'timepoint'))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.