View source: R/ontology_plots.R
cluster_trees | R Documentation |
TopGO's ontology trees can be very illustrative. This function shoe-horns clusterProfiler data into the format expected by topGO and uses it to make those trees.
cluster_trees(
de_genes,
cpdata,
goid_map = "id2go.map",
go_db = NULL,
score_limit = 0.2,
overwrite = FALSE,
selector = "topDiffGenes",
pval_column = "adj.P.Val"
)
de_genes |
List of genes deemed 'interesting'. |
cpdata |
Data from simple_clusterprofiler(). |
goid_map |
Mapping file of IDs to GO ontologies. |
go_db |
Dataframe of mappings used to build goid_map. |
score_limit |
Scoring limit above which to ignore genes. |
overwrite |
Overwrite an existing goid mapping file? |
selector |
Name of a function for applying scores to the trees. |
pval_column |
Name of the column in the GO table from which to extract scores. |
plots! Trees! oh my!
[Ramigo] [topGO::showSigOfNotes()]
## Not run:
cluster_data <- simple_clusterprofiler(genes, stuff)
ctrees <- cluster_trees(genes, cluster_data)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.