View source: R/TAGGITontology.R
TAGGITontology | R Documentation |
Original TAGGIT paper: (Carrera et al., 2007) This function is hardcoded for use with Arabidopsis ATH1 microarray data To use with data from another organism, you will need make a few edits.
TAGGITontology(geneList, useSearchTerms = TRUE,
outputFileName = "TAGGITontologyHits.xlsx", annotationFile = "default",
taggitAGIs = "default", taggitSearchTerms = "default")
geneList |
A vector of genes as AGI identiers or Affymetrix probe_ids. |
useSearchTerms |
Set to |
outputFileName |
Path to output excel file containing lists of hits with descriptions. File is output into the current working directory as |
annotationFile |
Use default unless you wish to provide your own updated |
taggitAGIs |
Generally use default. Can also pass the path of your own taggitAGIs.tsv (tab-separated) file defining specific AGI identifiers for each TAGGIT term. |
taggitSearchTerms |
Generally use default. Can also pass the path of your own taggitSearchTerms.tsv (tab-separated) file defining TAGGIT term-specific search terms to search for within gene descriptions. |
A dataframe containing lists of hits for each TAGGIT term. Also can save an excel spreadsheet containing these hits with descriptions separated by TAGGIT term.
# Example data is provided, use the following code to load it
data("GeneSetdata") # loads GeneSet_UP and GeneSet_DOWN objects which contain example data.
## Make a list containing two vectors: 1) up-regulated genes, and 2) down-regulated gene
GeneSet <- list()
GeneSet$UP <- GeneSet_UP # A vector of upregulated genes
GeneSet$DN <- GeneSet_DOWN # A vector of down-regulated genes
## Create TAGGITontology objects
# (may take a few minutes, but the built-in progress bar will keep you informed on the progress)
# Returns dataframe for plotting and outputs an excel sheet of hits to the working directory.
GeneSet_TAGGIT_UP <- TAGGITontology(GeneSet$UP, outputFileName = "TAGGITontologyHits_UP.xlsx")
GeneSet_TAGGIT_DN <- TAGGITontology(GeneSet$DN, outputFileName = "TAGGITontologyHits_DN.xlsx")
## Plot the results of the TAGGIT analysis using ggplot2 via the TAGGITplot function
# Comparing UP and DOWN regulated genesets
TAGGITplot(GeneSet$UP, GeneSet$DN, GeneSet_TAGGIT_UP, GeneSet_TAGGIT_DN, title = "")
## Export the image: for best results export in EPS (vector) format
## For output like Figure 4 in the publication, export at 400x511 resolution
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.