This function takes results obtained from differential analysis
pipelines found in limma
, DESeq2
, or edgeR
and formats
them for the BART app.
The expression data y
and lm.Fit
objects are used to obtain
the residual matrix from the fitted model. These parameters are only needed
when method = "limma" and data.type = "rnaseq" or "microarray" and can
otherwise be left as NULL. It is important to remember that y
should
be the expression data used for modeling (e.g. voom transformed data). The
residual matrix is stored as an element of the returned list and can be
used in downstream gene set analysis using runQgen
(Please
visit for more details).
The object
parameter takes as input model result objects returned by
functions in limma, DESeq2, or edgeR. When method = "limma", the expected
input is the single object returned by eBayes
since it
is able to store results across multiple comparisons. When method =
"deseq2" or "edgeR", the result object(s) returned by
results
, glmLRT
, or
glmQLFTest
must be wrapped in a list in which each
element is an object containing the results for a single comparison.
The comp.names
parameter is a character vector of comparison names
that is particularly useful when method = "deseq2" or "edgeR" since
comparison names are not extracted from the result objects generated by
either of those pipelines. When using limma, the comparison names can also
be defined in makeContrasts
. It is important that the
names are written in the correct order. For example, if object = list(AvsB,
CvsD), where AvsB and CvsD are result objects for the comparisons "group A
vs group B" and "group C vs group D" respectively, then comp.names =
c("CvsD", "AvsB") would incorrectly assign the name "CvsD" to the
comparison "group A vs group B" and vice versa. The var.symbols
parameter is typically used to provide a character vector of gene symbols.
The vector provided must be the same length and in the same order as the
row names of the data used for modeling.
The gene.sets
parameter is a list in which each element is a
character vector of gene names comprising a gene set. The gene names must
match the rownames of the data used for modeling. The gene sets are used to
create modular maps for each comparison in the DGE section of BART. The
annotations
parameter is a data frame consisting of two columns. The
first column consists of gene set names and the second column consists of
additional descriptions for the gene sets.