Building a diagram:

To build a diagram, select the number of sets and then fill the lists of elements in each set, one element per line. Optionally, fill the name of each set and select its color. The diagram will be updated as the set elements are entered, in most browsers. If that does not happen, clicking on any other window region will trigger the update. Changing the number of sets will preserve the element lists.

Listing the elements in each diagram region:

To list the elements in each nonempty diagram region, click on the numeric label of a region. A window containing the list of elements in that region will pop-up. If you click over multiple regions, multiple windows will be opened.

Performing set unions:

Unions of sets may be applied to the sets either through a binary tree or through a list of unions.

With Unions by tree, a tree in Newick format has to be given as input. After typing a tree, click on the "Start Tree" button. The initial view corresponds to the leaves of the tree, where all sets are distinct. Clicking on the "Up" button will go up a level in the tree, performing the set unions at that level. The diagram shape will not change, but regions will be merged and their sizes will reflect such merging. Similarly, clicking on the "Down" button will go down a level in the tree. Click "Stop" to restore the original diagram. If the tree string given as input is malformed, then both Up and Down buttons will be disabled.

For instance, with three sets A, B and C, navigating through the tree ((A,B),C) will show first a diagram where the three sets are distinct. Clicking "Up" will show a diagram where A and B are merged. Another click on "Up" will show a tree where sets A, B and C are merged.

After the start of the unions, clicking on the "Visualize tree" button will display the tree that was given as input.

With Unions by list, a colon separated list of sets is given as input. After typing a list, click on the "Start" button. The initial view corresponds to the unions given by the first element in the list. Clicking on the ">" button will perform the next union in the list. Similarly, Clicking on the "<" button will undo the previous union in the list.

For instance, with three sets A, B and C, navigating through the list ;ab;ca will show first a diagram where the three sets are distinct. Clicking ">" will show a diagram where only A and B are merged. Another click on ">" will show a diagram where A and C are merged.

Changing colors and font size:

Set colors, color opacity and font size may be changed through the appropriate controls. The color of a set may be changed clicking on the coloured square close to the set name. Font size and color opacity may be increased or decreased clicking on the respective "+" or "-" buttons. Clicking on "Reset diagram" will restore default colors and font size. Set elements will not be affected.

Saving and loading:

To save the sets type a name for a file in the field tagged with the phrase "Write dataset name here" and click on the "Save" button. The download will start after that.

To load sets previously saved, click on the "Browse..." button right below the "Load Sets:" label, and then select the appropriate file. The upload will start after that, and the sets fill be filled with data.

Exporting:

To export the diagram in SVG vector format, PNG graphic format or text format, type a name for a file in the field tagged with the phrase "Write file name here", right below the "Export current diagram:" label, select the desired format and click on the "Export" button. The download will start after that. The text format has the elements in each nonempty diagram region.

Example of data sets:

The two data sets below were converted to the InteractiVenn's file format (.ivenn).

Prostate cancer proteomic dataset: prostate_dataset.ivenn

Reference: Kim, Y., Ignatchenko, V., Yao, C. Q., Kalatskaya, I., Nyalwidhe, J. O., Lance, R. S., … Kislinger, T. (2012, December). Identification of differentially expressed proteins in direct expressed prostatic secretions of men with organ-confined versus extracapsular prostate cancer. Molecular & Cellular Proteomics. http://doi.org/10.1074/mcp.M112.017889

Musa acuminata dataset: banana_dataset.ivenn

Reference: D’Hont, A., others, Denoeud, F., Aury, J.-M., Baurens, F.-C., Carreel, F., … Wincker, P. (2012). The banana (Musa acuminata) genome and the evolution of monocotyledonous plants. Nature, 488(7410), 213–7. http://doi.org/10.1038/nature11241

Source code:

source_code.zip