Description Usage Arguments Details Value Author(s) Examples
The gosummaries object is created based on the differentially expresed genes, each contrast defines one component.
1 2 3 4 5 |
x |
an object of class |
p.value |
p-value threshold as defined in topTable |
lfc |
log fold change threshold as defined in topTable |
adjust.method |
multiple testing adjustment method as defined in topTable |
exp |
an expression matrix, with row names corresponding to the names of the genes in clusters (Optional) |
annotation |
a |
components |
numeric vector of comparisons to annotate |
show_genes |
logical showing if GO categories or actual genes are shown in word clouds |
gconvert_target |
specifies gene ID format for genes showed in word
cloud. The name of the format is passed to |
n_genes |
maximum number of genes shown in a word cloud |
organism |
the organism that the gene lists correspond to. The format should be as follows: "hsapiens", "mmusculus", "scerevisiae", etc. |
... |
GO annotation filtering parameters as defined in
|
The usual differential expression analysis involves making several comparisons between treatments ehere each one yields an up and down regulated gene list. In a GOsummaries figure each comparison is displayed as one component with two wordclouds. If expression matrix is attached then the panel shows the expression values for each gene as boxplots, if not then number of genes is displayed
It is possible to show the gene names instead of GO annotations in the
wordclouds. The word sizes in wordclouds are defined by the limma p-values.
As the gene identifiers in expression matrices are usually rather
unintelligible then they are automatically converted into gene names using
gconvert
function. It is possible to show also the original
identifiers by setting gconvert_target
to NULL. This can be useful if
the values do not correspond to genes, but for example metabolites.
A gosummaries object.
Raivo Kolde <raivo.kolde@eesti.ee>
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 | ## Not run:
data(tissue_example)
# Do the t-test comparisons
mm = model.matrix(~ factor(tissue_example$annot$Tissue) - 1)
colnames(mm) = make.names(levels(factor(tissue_example$annot$Tissue)))
contrast = limma::makeContrasts(brain - cell.line,
hematopoietic.system - muscle,
cell.line - hematopoietic.system,
levels = colnames(mm))
fit = limma::lmFit(tissue_example$exp, mm)
fit = limma::contrasts.fit(fit, contrast)
fit = limma::eBayes(fit)
gs_limma = gosummaries(fit)
gs_limma_exp = gosummaries(fit, exp = tissue_example$exp,
annotation = tissue_example$annot)
plot(gs_limma, fontsize = 8)
plot(gs_limma, panel_height = 0, fontsize = 8)
plot(gs_limma_exp, classes = "Tissue", fontsize = 8)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.