UpSetR icon indicating copy to clipboard operation
UpSetR copied to clipboard

By default, exclude specific intersections that have size = 0

Open g1o opened this issue 3 years ago • 0 comments

This helps when dealing with a big dataset, where you might wish to select all intersections with one Set but not others.

small code example for all 2 by 2 combinations with myTargetSet:

c2<-combn(names( MySetList ) ,2)[,grep("myTargetSet",combn(names( MySetList ),2)[1,])] list_of_lists <- apply(t(c2),1,list) )

upset(fromList(ortholist) ,nsets = 81, nintersects=100 ,queries= list(list (query = elements , params = list( "myTargetSet" ), color= "red" ,active = T) )
,intersections = c(list( list( "myTargetSet" ) ),list_of_lists) )

g1o avatar Nov 09 '21 19:11 g1o