Description Usage Arguments Details Value Author(s) References See Also
View source: R/metacoder_plot_go.r
Creates a metacoder network plot from gene ontologies. Figures from this function where not included in final manuscript.
1 2 3 | metacoder_plot_go(dat, output_folder = "./", output_format = "svg",
min_fdr = 0.01, type = GO.db::GOBPPARENTS, prefix = "go",
n.supertaxa = 9, num.changed = 3)
|
dat |
A data frame containing the results of differential expression analysis on
edgeR. The data frame is the result of performing hypothesis testing, for example
with the likelihood ratio test (i.e. function |
output_folder |
Charachter string indicating the directory to store the plots. |
output_format |
Format of the image to save. It must be allowed
by the |
min_fdr |
False discovery rate threshold to filter genes. Only genes with a smaller fdr and their annotations will be included. |
type |
This must be an object that specifies the parents of each annotation terms. Default is object GOBPPARENTS fromthe GO.db bioconductor package, but any other simular object can be used. |
prefix |
Character string. Prefix for file names. |
n.supertaxa |
Number of levels to extend the tree. |
num.changed |
Minimum number of genes in an annotation category fir that annotation to be included. |
The script takes a list of differentially expressed genes and their GO annotations and creates a tree representing the gene ontologies present and color codes it by the overal log(fold-change) im expression/
The data used by link{heat_tree}
function.
Code from metacoder paper with small adaptations by Sur Herrera Paredes
Foster ZSL, Sharpton TJ, Gr<c3><bc>nwald NJ (2017) Metacoder: An R package for visualization and manipulation of community taxonomic diversity data. PLoS Comput Biol 13(2): e1005404. https://doi.org/10.1371/journal.pcbi.1005404
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.