Entering edit mode
3.5 years ago
aka
▴
10
Hi,
I generate a Venn Diagram and I can generate an access to intersection data with venn() like below:
num Novembre Decembre Janvier Fevrier
0000 0 0 0 0 0
0001 21 0 0 0 1
0010 60 0 0 1 0
0011 9 0 0 1 1
0100 434 0 1 0 0
0101 0 0 1 0 1
0110 0 0 1 1 0
0111 0 0 1 1 1
1000 62 1 0 0 0
1001 7 1 0 0 1
1010 9 1 0 1 0
1011 20 1 0 1 1
1100 0 1 1 0 0
1101 0 1 1 0 1
1110 0 1 1 1 0
1111 0 1 1 1 1
attr(,"intersections")
attr(,"intersections")$`Janvier:Fevrier`
[1] "Qrob_P0051380.2" "Qrob_P0057520.2" "Qrob_P0111560.2" "Qrob_P0155280.2" "Qrob_P0196590.2" "Qrob_P0344390.2" "Qrob_P0425470.2" "Qrob_P0474120.2" "Qrob_P0730350.2"
attr(,"intersections")$`Novembre:Fevrier`
[1] "Qrob_P0104640.2" "Qrob_P0223890.2" "Qrob_P0286790.2" "Qrob_P0291840.2" "Qrob_P0418650.2" "Qrob_P0556330.2" "Qrob_P0765470.2"
attr(,"intersections")$`Novembre:Janvier`
[1] "Qrob_P0051350.2" "Qrob_P0051360.2" "Qrob_P0051620.2" "Qrob_P0051730.2" "Qrob_P0103750.2" "Qrob_P0297970.2" "Qrob_P0405980.2" "Qrob_P0472310.2" "Qrob_P0478790.2"
attr(,"intersections")$`Novembre:Janvier:Fevrier`
[1] "Qrob_P0051640.2" "Qrob_P0115060.2" "Qrob_P0122530.2" "Qrob_P0131080.2" "Qrob_P0155990.2" "Qrob_P0157520.2" "Qrob_P0181110.2" "Qrob_P0190180.2" "Qrob_P0190210.2" "Qrob_P0196560.2" "Qrob_P0232110.2" "Qrob_P0302630.2"
[13] "Qrob_P0388940.2" "Qrob_P0488960.2" "Qrob_P0503590.2" "Qrob_P0503600.2" "Qrob_P0556320.2" "Qrob_P0582310.2" "Qrob_P0740100.2" "Qrob_P0768850.2"
attr(,"intersections")$Fevrier
[1] "Qrob_P0052760.2" "Qrob_P0067620.2" "Qrob_P0070060.2" "Qrob_P0135090.2" "Qrob_P0155980.2" "Qrob_P0173120.2" "Qrob_P0196570.2" "Qrob_P0242780.2" "Qrob_P0263100.2" "Qrob_P0310350.2" "Qrob_P0361200.2" "Qrob_P0370740.2"
[13] "Qrob_P0454040.2" "Qrob_P0454080.2" "Qrob_P0492330.2" "Qrob_P0533420.2" "Qrob_P0551020.2" "Qrob_P0566900.2" "Qrob_P0571060.2" "Qrob_P0642020.2" "Qrob_P0669830.2"
........
I would like to get a file for each intersection that gives me the genes of this intersections and their associated line, is there an efficient way to do this? A function, a script? I tried some methods but it's really slow and not efficience, I have a lot of data of this type to retrieve and I would like to optimize.
I can use compare() for two tables but not I have to compare 3 or 4 tables...
Thanks for your help and in advance for your answers,
Have a nice day,
Aka