The output order of the calculate.overlap function

I use the function "calculate.overlap" in the "VennDiagram" R-package. I compare four data sets as follows:

library(VennDiagram) overlap=calculate.overlap( x=list( "1"=1, "2"=2, "3"=3, "4"=4 ) ) 

The output file "overlap" consists of 15 lists. They're called:

 $a6, a12, a11... 

How do I know which list the comparison belongs to?

+5
source share
3 answers

Replacing x in overlap[[x]] with red number 1-15, you can get a complete list of genes of interest in a specific place on the Venn diagram.

In addition, you can get the number of genes using the length() function.

enter image description here

+3
source

Sorry, I need to point out that this is incorrect and may be misleading. I gave the correct answer below:

 a6 = n1234; a12 = n123[-which(n123 %in% a6)]; a11 = n124[-which(n124 %in% a6)]; a5 = n134[-which(n134 %in% a6)]; a7 = n234[-which(n234 %in% a6)]; a15 = n12[-which(n12 %in% c(a6,a11,a12))]; a4 = n13[-which(n13 %in% c(a6,a5,a12))]; a10 = n14[-which(n14 %in% c(a6,a5,a11))]; a13 = n23[-which(n23 %in% c(a6,a7,a12))]; a8 = n24[-which(n24 %in% c(a6,a7,a11))]; a2 = n34[-which(n34 %in% c(a6,a5,a7))]; a9 = A[-which(A %in% c(a4,a5,a6,a10,a11,a12,a15))]; a14 = B[-which(B %in% c(a6,a7,a8,a11,a12,a13,a15))]; a1 = C[-which(C %in% c(a2,a4,a5,a6,a7,a12,a13))]; a3 = D[-which(D %in% c(a2,a5,a6,a7,a8,a10,a11))]; 
+1
source

In case someone needs another way to do this, I explained how to use nVennR to nVennR list of all regions in another post.

0
source

All Articles