Description Usage Arguments Value Note See Also Examples
edger_dge
uses the edgeR
package to perform DGE
analysis on raw_counts
object.
1 2 3 4 5 6 7 |
x |
An object of class |
... |
Additional arguments. |
design |
A design matrix. See |
contrast |
Contrast to compute DGE for. See
|
An object of class dge
consisting of top tables from
running the corresponding edger_dge
method.
The term differential gene expression or DGE
is not
used in a restrictive manner and applies to genomic features in general,
i.e., genes, transcripts, exons etc.
rnaseq
, gather_counts
show_counts
limma_dge
construct_design
construct_contrasts
write_dge
as.dgelist
as.eset
volcano_plot
density_plot
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | path = system.file("tests", package="ganalyse")
# ----- raw ----- #
raw_path = file.path(path, "raw", "annotation.txt")
raw_obj = rnaseq(raw_path, format="raw", experiment="sample")
raw_counts = gather_counts(raw_obj, by="gene-id", threshold=1L)
raw_design = construct_design(raw_counts, ~ 0 + condition)
raw_contrasts = construct_contrasts(
design = raw_design,
treatA.vs.control = conditiontreatA-conditioncontrol,
treatB.vs.control = conditiontreatB-conditioncontrol
)
# DE genes between treatA and control
edger_dge(raw_counts, design=raw_design,
contrast=raw_contrasts[, "treatA.vs.control"])
# DE genes between treatB and control
edger_dge(raw_counts, design=raw_design,
contrast=raw_contrasts[, "treatB.vs.control"])
# DE genes between any of the treatments
edger_dge(raw_counts, design=raw_design, contrast=raw_contrasts)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.