Venn2Plot.csv: Venn diagrams for two lists of genes.

Description Usage Arguments Details Value Author(s)

View source: R/Venn2Plot.csv.R

Description

Function to make Venn diagrams from two tables containing the columns with array ids or gene symbols, ideally both of them. Results are shown in a plot, and the lists of genes corresponding to each region can be obtained with mkExcel (Excel format) and mkCSV (csv format) options.

Usage

1
Venn2Plot.csv(listG1, listG2, listNames, filename, data4T = NULL, symbols = TRUE, img.fmt = "pdf", mkExcel = TRUE, mkCSV = FALSE, colnmes = c("AffyID", "Symbol"))

Arguments

listG1

First list of genes to compare in the Venn diagram. It has to be a data.frame with columns "AffyID" or "Symbol", ideally both of them.

listG2

Second list of genes to compare in the Venn diagram. It has to be a data.frame with columns "AffyID" or "Symbol", ideally both of them.

listNames

Vector with the names of listG1 and listG2.

filename

Name of the output files.

data4T

Table with the structure of data4Tyers with columns named scaled at the begining.

symbols

Logical. Use symbols instead of AffyID to make plots.

mkExcel

Logical. If TRUE makes an .xlsx file with the lists of genes corresponding to each region.

mkCSV

Logical. If TRUE makes a .csv file for the genes corresponding to each region.

colnmes

Column names corresponding to the array IDs and gene symbols in the data frame data4T.

img.fmt

Default "pdf", if "png" the Venn plot is generated in .png image format.

Details

If the option symbols is TRUE a column with the array ids has to be also provided to the function lists in order to create the .csv and .xlsx files and the data4T data frame has to have several columns with the name scaled at the beginning of the table.

Value

Venn diagram plot in .pdf format. If the option mkExcel is TRUE an .xlsx file is created where each sheet is a region of the venn diagram. If the option mkCSV is TRUE several .csv files are created corresponding to each region of the venn diagram.

Author(s)

Magdalena Arnal Segura <marnal@imim.es>


machalen/VennPlots documentation built on Sept. 13, 2020, 3:53 p.m.