krassowski / complex-upset

A library for creating complex UpSet plots with ggplot2 geoms
MIT License
456 stars 28 forks source link

Define one or two groups to be compared to all other groups #200

Open SebastianHesse opened 6 months ago

SebastianHesse commented 6 months ago

I am using complexUpset to compare large groups of genes for overlaps. For a specific analysis, it would be great if I could define one or two groups (eg groups of disease causing genes) that should be compare to all other groups in the dataframe (columns) .

I found that one way would be to define all intersections with: eg: intersections=list( 'Comedy', 'Drama', c('Comedy', 'Romance')) But as I have a lot of different groups (>10), this solution would create the need to define a of of different intersections.

Any advise how to solve this elegantly would be much appreciated.

Thank you!

SebastianHesse commented 6 months ago

I resolved the issue with simply defining all the comparisons of interest like this: intersections=list( c('SCN', "mrn.Up"), # 2 c('SCN', "mrn.Dn"), # 4
c('SCN', "mrn.UpDn")

Thanks for your amazing package!