venndia | R Documentation |
venndia takes two objects (A and B) each with up- and down-regulated genelists. To make a list containing two lists: 1) up-regulated genes, and 2) down-regulated genes. venndia is currently case-sensitive, so please provide list in all capitals.
venndia(A, B, titleA = "", titleB = "", getdata = FALSE,
getcounts = FALSE, border = NA, NoAandB = FALSE, highLow = "redGreen",
noPlot = FALSE, font = 1, backgrd = c(1, 2), ...)
A |
A geneset object, which is a list containing two vectors $UP and $DN which are lists of up-regulated and downregulated genes in a comparison. |
B |
Another geneset object for identifying overlap with geneset A. |
titleA |
A title for the left circle (dataset A) |
titleB |
A title for the right cirlce (dataset B) |
getdata |
Set to |
getcounts |
Set to |
border |
Set |
NoAandB |
Set |
highLow |
Choose the font color scheme for numbers of up- and down-regulate genes: |
noPlot |
Set |
font |
Select font size (default is 1). |
backgrd |
Select the background colors for circles by passing a vector of length 2 containing two integers from 1 to 12. Recommended: default = c(1,2), c(3,4), c(5,6), c(7,8), c(9,10), c(11,12). |
... |
Possible other parameters. |
A Venn diagram visualization and/or a geneset object containg lists of up- and down-regulated genes.
## For the two genesets to compare:
#' # 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
## Create geneset A
GeneSetA <- list()
GeneSetA$UP <- GeneSet_UP[sample(1:200, 100)] # Random set of 100 genes up
GeneSetA$DN <- GeneSet_DOWN[sample(1:200, 100)] # Random set of 100 genes down
GeneSetB <- list()
GeneSetB$UP <- GeneSet_UP[sample(1:200, 100)] # Random set of 100 genes up
GeneSetB$DN <- GeneSet_DOWN[sample(1:200, 100)] # Random set of 100 genes down
## Test the overlap
venndia(GeneSetA, GeneSetB) # Outputs a graphic
## Get the results of the overlap between A and B
venndia(GeneSetA,GeneSetB, getdata = TRUE)$AB
## Compare this overlap with a third geneset (GeneSetC).
GeneSetC <- list()
GeneSetC$UP <- GeneSet_UP[sample(1:200, 100)] # Random set of 100 genes up
GeneSetC$DN <- GeneSet_DOWN[sample(1:200, 100)] # Random set of 100 genes down
overlapAB <- venndia(GeneSetA,GeneSetB, getdata = TRUE)$AB
venndia(overlapAB, GeneSetC)
## Prettier version
venndia(overlapAB, GeneSetC, NoAandB = TRUE, border = "black")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.