How to compare multiple sets using UpsetR

Why UpSet

Everyday I face the problems that need to understand the relationships between sets. Ven diagram always a great job if the number of sets is limited (like up to 4)but it gets clumsy when the number of sets increases. A Venn diagram with multiple sets is difficult to interpret and easy to be lost. So UpSet is another "visualization technique for the quantitative analysis of sets, their intersections, and aggregates of intersections".

How to use UpSet

The source code of Python implementation of UpSet can be downloaded from HERE while R version is HERE. The web version of UpSet can be used from HERE or HERE. Obviously web versions are easy to use for any project but unfortunately, our taste doesn't match always. I just modified two main functions which draw the main plots. New functions give more flexibility to the plot such as
  1. can automatically calculate the number of unique colours for each comparison.
  2. colours of numbers can be changed and it doesn't have to be the same as bar color.
  3.  fonts are also changeable. 


We need following R libraries to run the script
  1. UpSetR 
  2. ggplot2 
  3. grid 
  4. RColorBrewer 
  5. extrafont


All files can be downloaded from here


UpsetR_modified - This repository contains the R script the make plot using UpsetR library. Two functions were modified to make the package more flexible.
Extract Part of a FASTA Sequences with Position by python script HERE

How to make a group bar graph with error bars and split y axis

I would like to draw a group bar graph with error bars and split y axis to show both smaller and larger values in same plot. Although plotrix has function to do that but I don't know how to moifiy their aweful looking graphs. I got a good solution HERE. I just modified it as per my taste and requirement. It need gplots, extrafont and RColorBrewer and produce a high resolution beautiful chart.
How to perform Non-metric multidimensional scaling (NMDS) analysis

How to make a Heatmap with multiple annotation

How to download expression data set from NCBI GEO